./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor457627481 <...> Warning: Permanently added '10.128.0.226' (ED25519) to the list of known hosts. execve("./syz-executor457627481", ["./syz-executor457627481"], 0x7fff23073e90 /* 10 vars */) = 0 brk(NULL) = 0x55555e521000 brk(0x55555e521d00) = 0x55555e521d00 arch_prctl(ARCH_SET_FS, 0x55555e521380) = 0 set_tid_address(0x55555e521650) = 5828 set_robust_list(0x55555e521660, 24) = 0 rseq(0x55555e521ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor457627481", 4096) = 27 getrandom("\xc4\xd9\xc1\x89\x27\xc9\xe1\x85", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555e521d00 brk(0x55555e542d00) = 0x55555e542d00 brk(0x55555e543000) = 0x55555e543000 mprotect(0x7fb2324b5000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5829 attached , child_tidptr=0x55555e521650) = 5829 [pid 5829] set_robust_list(0x55555e521660, 24) = 0 [pid 5829] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5829] setpgid(0, 0) = 0 [pid 5829] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5829] write(3, "1000", 4) = 4 [pid 5829] close(3) = 0 executing program [pid 5829] write(1, "executing program\n", 18) = 18 [pid 5829] memfd_create("syzkaller", 0) = 3 [pid 5829] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb229e00000 [pid 5829] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 2097152) = 2097152 [pid 5829] munmap(0x7fb229e00000, 138412032) = 0 [pid 5829] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5829] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5829] close(3) = 0 [pid 5829] close(4) = 0 [pid 5829] mkdir("./file0", 0777) = 0 [ 70.007425][ T5829] loop0: detected capacity change from 0 to 4096 [ 70.040522][ T5829] ======================================================= [ 70.040522][ T5829] WARNING: The mand mount option has been deprecated and [pid 5829] mount("/dev/loop0", "./file0", "nilfs2", MS_NOSUID|MS_SYNCHRONOUS|MS_MANDLOCK|MS_POSIXACL|MS_RELATIME|MS_STRICTATIME|MS_LAZYTIME, "barrier,nodiscard,norecovery,order=strict,nobarrier,order=strict,nodiscard,order=relaxed,,") = 0 [pid 5829] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5829] chdir("./file0") = 0 [pid 5829] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) [ 70.040522][ T5829] and is ignored by this kernel. Remove the mand [ 70.040522][ T5829] option from the mount to silence this warning. [ 70.040522][ T5829] ======================================================= [ 70.086653][ T5831] NILFS (loop0): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds [ 70.130864][ T5829] ================================================================== [ 70.138941][ T5829] BUG: KASAN: use-after-free in nilfs_find_entry+0x29c/0x660 [ 70.146331][ T5829] Read of size 2 at addr ffff8880740e0008 by task syz-executor457/5829 [ 70.154554][ T5829] [ 70.156881][ T5829] CPU: 0 UID: 0 PID: 5829 Comm: syz-executor457 Not tainted 6.12.0-rc7-syzkaller-00192-gb5a24181e461 #0 [ 70.167974][ T5829] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 [ 70.178033][ T5829] Call Trace: [ 70.181309][ T5829] [ 70.184264][ T5829] dump_stack_lvl+0x241/0x360 [ 70.188957][ T5829] ? __pfx_dump_stack_lvl+0x10/0x10 [ 70.194180][ T5829] ? __pfx__printk+0x10/0x10 [ 70.198762][ T5829] ? _printk+0xd5/0x120 [ 70.202908][ T5829] ? __virt_addr_valid+0x183/0x530 [ 70.208007][ T5829] ? __virt_addr_valid+0x183/0x530 [ 70.213105][ T5829] print_report+0x169/0x550 [ 70.217610][ T5829] ? __virt_addr_valid+0x183/0x530 [ 70.222739][ T5829] ? __virt_addr_valid+0x183/0x530 [ 70.227848][ T5829] ? __virt_addr_valid+0x45f/0x530 [ 70.232954][ T5829] ? __phys_addr+0xba/0x170 [ 70.237456][ T5829] ? nilfs_find_entry+0x29c/0x660 [ 70.242498][ T5829] kasan_report+0x143/0x180 [ 70.247013][ T5829] ? nilfs_find_entry+0x29c/0x660 [ 70.252030][ T5829] nilfs_find_entry+0x29c/0x660 [ 70.256885][ T5829] nilfs_inode_by_name+0xad/0x240 [ 70.261905][ T5829] ? __pfx_nilfs_inode_by_name+0x10/0x10 [ 70.267528][ T5829] ? __pfx_smack_inode_permission+0x10/0x10 [ 70.273436][ T5829] nilfs_lookup+0xed/0x210 [ 70.277847][ T5829] ? generic_permission+0x1e0/0x550 [ 70.283031][ T5829] ? __pfx_nilfs_lookup+0x10/0x10 [ 70.288049][ T5829] ? bpf_lsm_inode_create+0x9/0x10 [ 70.293148][ T5829] ? security_inode_create+0xbe/0x340 [ 70.298537][ T5829] ? __pfx_nilfs_lookup+0x10/0x10 [ 70.303546][ T5829] path_openat+0x11a7/0x3590 [ 70.308134][ T5829] ? __pfx_path_openat+0x10/0x10 [ 70.313068][ T5829] do_filp_open+0x235/0x490 [ 70.317565][ T5829] ? __pfx_do_filp_open+0x10/0x10 [ 70.322578][ T5829] ? _raw_spin_unlock+0x28/0x50 [ 70.327415][ T5829] ? alloc_fd+0x5a1/0x640 [ 70.331733][ T5829] do_sys_openat2+0x13e/0x1d0 [ 70.336394][ T5829] ? __pfx_do_sys_openat2+0x10/0x10 [ 70.341576][ T5829] ? lockdep_hardirqs_on+0x99/0x150 [ 70.346758][ T5829] ? _raw_spin_unlock_irq+0x2e/0x50 [ 70.351942][ T5829] ? ptrace_notify+0x279/0x380 [ 70.356696][ T5829] __x64_sys_openat+0x247/0x2a0 [ 70.361535][ T5829] ? __pfx___x64_sys_openat+0x10/0x10 [ 70.366888][ T5829] ? do_syscall_64+0x100/0x230 [ 70.371639][ T5829] do_syscall_64+0xf3/0x230 [ 70.376130][ T5829] ? clear_bhb_loop+0x35/0x90 [ 70.380791][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 70.386669][ T5829] RIP: 0033:0x7fb232441b99 [ 70.391087][ T5829] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 17 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 70.410696][ T5829] RSP: 002b:00007fffd2c9ed58 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 70.419100][ T5829] RAX: ffffffffffffffda RBX: 6569727261626f6e RCX: 00007fb232441b99 [ 70.427066][ T5829] RDX: 000000000000275a RSI: 0000000020000080 RDI: 00000000ffffff9c [ 70.435034][ T5829] RBP: 00007fb2324b55f0 R08: 0000000000000ee3 R09: 000055555e5224c0 [ 70.442993][ T5829] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffd2c9ed80 [ 70.450950][ T5829] R13: 00007fffd2c9efa8 R14: 431bde82d7b634db R15: 00007fb23248a03b [ 70.458915][ T5829] [ 70.461938][ T5829] [ 70.464243][ T5829] The buggy address belongs to the physical page: [ 70.470644][ T5829] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x7f65e8bca pfn:0x740e0 [ 70.480108][ T5829] flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) [ 70.487217][ T5829] raw: 00fff00000000000 ffffea0001d03848 ffffea0001ce13c8 0000000000000000 [ 70.495796][ T5829] raw: 00000007f65e8bca 0000000000000000 00000000ffffffff 0000000000000000 [ 70.504392][ T5829] page dumped because: kasan: bad access detected [ 70.510812][ T5829] page_owner tracks the page as freed [ 70.516164][ T5829] page last allocated via order 0, migratetype Movable, gfp_mask 0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), pid 5811, tgid 5811 (sshd), ts 51909468629, free_ts 51967550974 [ 70.534122][ T5829] post_alloc_hook+0x1f3/0x230 [ 70.538885][ T5829] get_page_from_freelist+0x363e/0x3790 [ 70.544425][ T5829] __alloc_pages_noprof+0x292/0x710 [ 70.549616][ T5829] alloc_pages_mpol_noprof+0x3e8/0x680 [ 70.555061][ T5829] vma_alloc_folio_noprof+0x12e/0x230 [ 70.560419][ T5829] folio_prealloc+0x31/0x170 [ 70.565021][ T5829] handle_pte_fault+0x24dd/0x6820 [ 70.570046][ T5829] handle_mm_fault+0x1053/0x1ad0 [ 70.574973][ T5829] exc_page_fault+0x459/0x8c0 [ 70.579643][ T5829] asm_exc_page_fault+0x26/0x30 [ 70.584484][ T5829] page last free pid 5811 tgid 5811 stack trace: [ 70.590800][ T5829] free_unref_folios+0xf21/0x1a10 [ 70.595829][ T5829] folios_put_refs+0x76c/0x860 [ 70.600573][ T5829] free_pages_and_swap_cache+0x2ea/0x690 [ 70.606189][ T5829] tlb_flush_mmu+0x3a3/0x680 [ 70.610763][ T5829] tlb_finish_mmu+0xd4/0x200 [ 70.615346][ T5829] vms_clear_ptes+0x437/0x530 [ 70.620051][ T5829] vms_complete_munmap_vmas+0x214/0x8f0 [ 70.625593][ T5829] do_vmi_align_munmap+0x5ef/0x6f0 [ 70.630732][ T5829] do_vmi_munmap+0x24e/0x2d0 [ 70.635325][ T5829] __vm_munmap+0x24c/0x480 [ 70.639754][ T5829] __x64_sys_munmap+0x60/0x70 [ 70.644415][ T5829] do_syscall_64+0xf3/0x230 [ 70.648905][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 70.654787][ T5829] [ 70.657095][ T5829] Memory state around the buggy address: [ 70.662712][ T5829] ffff8880740dff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 70.670759][ T5829] ffff8880740dff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 70.678802][ T5829] >ffff8880740e0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 70.686844][ T5829] ^ [ 70.691162][ T5829] ffff8880740e0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 70.699215][ T5829] ffff8880740e0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 70.707259][ T5829] ================================================================== [ 70.715775][ T5829] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 70.722987][ T5829] CPU: 0 UID: 0 PID: 5829 Comm: syz-executor457 Not tainted 6.12.0-rc7-syzkaller-00192-gb5a24181e461 #0 [ 70.734101][ T5829] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 [ 70.744152][ T5829] Call Trace: [ 70.747428][ T5829] [ 70.750368][ T5829] dump_stack_lvl+0x241/0x360 [ 70.755057][ T5829] ? __pfx_dump_stack_lvl+0x10/0x10 [ 70.760259][ T5829] ? __pfx__printk+0x10/0x10 [ 70.764846][ T5829] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 70.770825][ T5829] ? vscnprintf+0x5d/0x90 [ 70.775157][ T5829] panic+0x349/0x880 [ 70.779048][ T5829] ? check_panic_on_warn+0x21/0xb0 [ 70.784158][ T5829] ? __pfx_panic+0x10/0x10 [ 70.788570][ T5829] ? _raw_spin_unlock_irqrestore+0x130/0x140 [ 70.794539][ T5829] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 70.800858][ T5829] check_panic_on_warn+0x86/0xb0 [ 70.805787][ T5829] ? nilfs_find_entry+0x29c/0x660 [ 70.810802][ T5829] end_report+0x77/0x160 [ 70.815043][ T5829] kasan_report+0x154/0x180 [ 70.819559][ T5829] ? nilfs_find_entry+0x29c/0x660 [ 70.824575][ T5829] nilfs_find_entry+0x29c/0x660 [ 70.829418][ T5829] nilfs_inode_by_name+0xad/0x240 [ 70.834432][ T5829] ? __pfx_nilfs_inode_by_name+0x10/0x10 [ 70.840056][ T5829] ? __pfx_smack_inode_permission+0x10/0x10 [ 70.845944][ T5829] nilfs_lookup+0xed/0x210 [ 70.850360][ T5829] ? generic_permission+0x1e0/0x550 [ 70.855546][ T5829] ? __pfx_nilfs_lookup+0x10/0x10 [ 70.860564][ T5829] ? bpf_lsm_inode_create+0x9/0x10 [ 70.865668][ T5829] ? security_inode_create+0xbe/0x340 [ 70.871031][ T5829] ? __pfx_nilfs_lookup+0x10/0x10 [ 70.876070][ T5829] path_openat+0x11a7/0x3590 [ 70.880680][ T5829] ? __pfx_path_openat+0x10/0x10 [ 70.885616][ T5829] do_filp_open+0x235/0x490 [ 70.890112][ T5829] ? __pfx_do_filp_open+0x10/0x10 [ 70.895134][ T5829] ? _raw_spin_unlock+0x28/0x50 [ 70.899983][ T5829] ? alloc_fd+0x5a1/0x640 [ 70.904306][ T5829] do_sys_openat2+0x13e/0x1d0 [ 70.908976][ T5829] ? __pfx_do_sys_openat2+0x10/0x10 [ 70.914170][ T5829] ? lockdep_hardirqs_on+0x99/0x150 [ 70.919362][ T5829] ? _raw_spin_unlock_irq+0x2e/0x50 [ 70.924552][ T5829] ? ptrace_notify+0x279/0x380 [ 70.929306][ T5829] __x64_sys_openat+0x247/0x2a0 [ 70.934147][ T5829] ? __pfx___x64_sys_openat+0x10/0x10 [ 70.939544][ T5829] ? do_syscall_64+0x100/0x230 [ 70.944300][ T5829] do_syscall_64+0xf3/0x230 [ 70.948798][ T5829] ? clear_bhb_loop+0x35/0x90 [ 70.953466][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 70.959348][ T5829] RIP: 0033:0x7fb232441b99 [ 70.963755][ T5829] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 17 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 70.983354][ T5829] RSP: 002b:00007fffd2c9ed58 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 70.991760][ T5829] RAX: ffffffffffffffda RBX: 6569727261626f6e RCX: 00007fb232441b99 [ 70.999718][ T5829] RDX: 000000000000275a RSI: 0000000020000080 RDI: 00000000ffffff9c [ 71.007677][ T5829] RBP: 00007fb2324b55f0 R08: 0000000000000ee3 R09: 000055555e5224c0 [ 71.015638][ T5829] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffd2c9ed80 [ 71.023595][ T5829] R13: 00007fffd2c9efa8 R14: 431bde82d7b634db R15: 00007fb23248a03b [ 71.031561][ T5829] [ 71.034810][ T5829] Kernel Offset: disabled [ 71.039124][ T5829] Rebooting in 86400 seconds..