./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2980696 <...> Warning: Permanently added '10.128.0.41' (ED25519) to the list of known hosts. execve("./syz-executor2980696", ["./syz-executor2980696"], 0x7ffc739e4ad0 /* 10 vars */) = 0 brk(NULL) = 0x555576b5c000 brk(0x555576b5cd00) = 0x555576b5cd00 arch_prctl(ARCH_SET_FS, 0x555576b5c380) = 0 set_tid_address(0x555576b5c650) = 5827 set_robust_list(0x555576b5c660, 24) = 0 rseq(0x555576b5cca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2980696", 4096) = 25 getrandom("\x34\xac\x9e\xc3\xd0\xf9\x65\xa7", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555576b5cd00 brk(0x555576b7dd00) = 0x555576b7dd00 brk(0x555576b7e000) = 0x555576b7e000 mprotect(0x7f675ec1f000, 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 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5828 attached , child_tidptr=0x555576b5c650) = 5828 [pid 5827] openat(AT_FDCWD, "/sys/kernel/debug/x86/nmi_longest_ns", O_WRONLY|O_CLOEXEC [pid 5828] set_robust_list(0x555576b5c660, 24 [pid 5827] <... openat resumed>) = 3 [pid 5828] <... set_robust_list resumed>) = 0 [pid 5827] write(3, "10000000000", 11) = 11 [pid 5827] close(3) = 0 [pid 5827] openat(AT_FDCWD, "/proc/sys/kernel/hung_task_check_interval_secs", O_WRONLY|O_CLOEXEC) = 3 [pid 5827] write(3, "20", 2) = 2 [pid 5827] close(3) = 0 [pid 5827] openat(AT_FDCWD, "/proc/sys/net/core/bpf_jit_kallsyms", O_WRONLY|O_CLOEXEC) = 3 [pid 5827] write(3, "1", 1) = 1 [pid 5827] close(3) = 0 [pid 5827] openat(AT_FDCWD, "/proc/sys/net/core/bpf_jit_harden", O_WRONLY|O_CLOEXEC) = 3 [pid 5827] write(3, "0", 1) = 1 [pid 5827] close(3) = 0 [pid 5827] openat(AT_FDCWD, "/proc/sys/kernel/kptr_restrict", O_WRONLY|O_CLOEXEC) = 3 [pid 5827] write(3, "0", 1) = 1 [pid 5827] close(3) = 0 [pid 5827] openat(AT_FDCWD, "/proc/sys/kernel/softlockup_all_cpu_backtrace", O_WRONLY|O_CLOEXEC) = 3 [pid 5827] write(3, "1", 1) = 1 [pid 5827] close(3) = 0 [pid 5827] openat(AT_FDCWD, "/proc/sys/fs/mount-max", O_WRONLY|O_CLOEXEC) = 3 [pid 5827] write(3, "100", 3) = 3 [pid 5827] close(3) = 0 [pid 5827] openat(AT_FDCWD, "/proc/sys/vm/oom_dump_tasks", O_WRONLY|O_CLOEXEC) = 3 [pid 5827] write(3, "0", 1) = 1 [pid 5827] close(3) = 0 [pid 5827] openat(AT_FDCWD, "/proc/sys/debug/exception-trace", O_WRONLY|O_CLOEXEC) = 3 [pid 5827] write(3, "0", 1) = 1 [pid 5827] close(3) = 0 [pid 5827] openat(AT_FDCWD, "/proc/sys/kernel/printk", O_WRONLY|O_CLOEXEC) = 3 [pid 5827] write(3, "7 4 1 3", 7) = 7 [pid 5827] close(3) = 0 [pid 5827] openat(AT_FDCWD, "/proc/sys/kernel/keys/gc_delay", O_WRONLY|O_CLOEXEC) = 3 [pid 5827] write(3, "1", 1) = 1 [pid 5827] close(3) = 0 [pid 5827] openat(AT_FDCWD, "/proc/sys/vm/oom_kill_allocating_task", O_WRONLY|O_CLOEXEC) = 3 [pid 5827] write(3, "1", 1) = 1 [pid 5827] close(3) = 0 [pid 5827] openat(AT_FDCWD, "/proc/sys/kernel/ctrl-alt-del", O_WRONLY|O_CLOEXEC) = 3 [pid 5827] write(3, "0", 1) = 1 [pid 5827] close(3) = 0 [pid 5827] openat(AT_FDCWD, "/proc/sys/kernel/cad_pid", O_WRONLY|O_CLOEXEC) = 3 [pid 5827] write(3, "5828", 4) = 4 [pid 5827] close(3) = 0 [pid 5827] kill(5828, SIGKILL) = 0 [pid 5828] +++ killed by SIGKILL +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5828, si_uid=0, si_status=SIGKILL, si_utime=0, si_stime=1 /* 0.01 s */} --- 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 [pid 5829] set_robust_list(0x555576b5c660, 24 [pid 5827] <... clone resumed>, child_tidptr=0x555576b5c650) = 5829 [pid 5829] <... set_robust_list resumed>) = 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 [pid 5829] write(1, "executing program\n", 18executing program ) = 18 [pid 5829] memfd_create("syzkaller", 0) = 3 [pid 5829] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6756600000 [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(0x7f6756600000, 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 [ 59.153722][ T5829] loop0: detected capacity change from 0 to 4096 [ 59.186708][ T5829] ======================================================= [ 59.186708][ 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) [ 59.186708][ T5829] and is ignored by this kernel. Remove the mand [ 59.186708][ T5829] option from the mount to silence this warning. [ 59.186708][ T5829] ======================================================= [ 59.235374][ T5831] NILFS (loop0): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds [ 59.278658][ T5829] ================================================================== [ 59.286740][ T5829] BUG: KASAN: use-after-free in nilfs_find_entry+0x29c/0x660 [ 59.294134][ T5829] Read of size 2 at addr ffff888073f29008 by task syz-executor298/5829 [ 59.302359][ T5829] [ 59.304701][ T5829] CPU: 1 UID: 0 PID: 5829 Comm: syz-executor298 Not tainted 6.12.0-rc7-syzkaller-00192-gb5a24181e461 #0 [ 59.315793][ T5829] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 [ 59.325848][ T5829] Call Trace: [ 59.329117][ T5829] [ 59.332031][ T5829] dump_stack_lvl+0x241/0x360 [ 59.336700][ T5829] ? __pfx_dump_stack_lvl+0x10/0x10 [ 59.341888][ T5829] ? __pfx__printk+0x10/0x10 [ 59.346466][ T5829] ? _printk+0xd5/0x120 [ 59.350605][ T5829] ? __virt_addr_valid+0x183/0x530 [ 59.355705][ T5829] ? __virt_addr_valid+0x183/0x530 [ 59.360804][ T5829] print_report+0x169/0x550 [ 59.365304][ T5829] ? __virt_addr_valid+0x183/0x530 [ 59.370415][ T5829] ? __virt_addr_valid+0x183/0x530 [ 59.375516][ T5829] ? __virt_addr_valid+0x45f/0x530 [ 59.380635][ T5829] ? __phys_addr+0xba/0x170 [ 59.385134][ T5829] ? nilfs_find_entry+0x29c/0x660 [ 59.390149][ T5829] kasan_report+0x143/0x180 [ 59.394648][ T5829] ? nilfs_find_entry+0x29c/0x660 [ 59.399667][ T5829] nilfs_find_entry+0x29c/0x660 [ 59.404515][ T5829] nilfs_inode_by_name+0xad/0x240 [ 59.409533][ T5829] ? __pfx_nilfs_inode_by_name+0x10/0x10 [ 59.415157][ T5829] ? __pfx_smack_inode_permission+0x10/0x10 [ 59.421043][ T5829] nilfs_lookup+0xed/0x210 [ 59.425454][ T5829] ? generic_permission+0x1e0/0x550 [ 59.430643][ T5829] ? __pfx_nilfs_lookup+0x10/0x10 [ 59.435662][ T5829] ? bpf_lsm_inode_create+0x9/0x10 [ 59.440763][ T5829] ? security_inode_create+0xbe/0x340 [ 59.446124][ T5829] ? __pfx_nilfs_lookup+0x10/0x10 [ 59.451141][ T5829] path_openat+0x11a7/0x3590 [ 59.455735][ T5829] ? __pfx_path_openat+0x10/0x10 [ 59.460667][ T5829] do_filp_open+0x235/0x490 [ 59.465162][ T5829] ? __pfx_do_filp_open+0x10/0x10 [ 59.470187][ T5829] ? _raw_spin_unlock+0x28/0x50 [ 59.475038][ T5829] ? alloc_fd+0x5a1/0x640 [ 59.479374][ T5829] do_sys_openat2+0x13e/0x1d0 [ 59.484042][ T5829] ? __pfx_do_sys_openat2+0x10/0x10 [ 59.489231][ T5829] ? lockdep_hardirqs_on+0x99/0x150 [ 59.494421][ T5829] ? _raw_spin_unlock_irq+0x2e/0x50 [ 59.499605][ T5829] ? ptrace_notify+0x279/0x380 [ 59.504609][ T5829] __x64_sys_openat+0x247/0x2a0 [ 59.509449][ T5829] ? __pfx___x64_sys_openat+0x10/0x10 [ 59.514810][ T5829] ? do_syscall_64+0x100/0x230 [ 59.519568][ T5829] do_syscall_64+0xf3/0x230 [ 59.524078][ T5829] ? clear_bhb_loop+0x35/0x90 [ 59.528750][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 59.534632][ T5829] RIP: 0033:0x7f675ebaae49 [ 59.539051][ 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 [ 59.558657][ T5829] RSP: 002b:00007ffe8e3da638 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 59.567065][ T5829] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f675ebaae49 [ 59.575025][ T5829] RDX: 000000000000275a RSI: 0000000020000080 RDI: 00000000ffffff9c [ 59.582988][ T5829] RBP: 00000000000016c4 R08: 0000000000000ee3 R09: 0000000000000000 [ 59.590948][ T5829] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe8e3da680 [ 59.598923][ T5829] R13: 00007ffe8e3da760 R14: 431bde82d7b634db R15: 00007f675ebf401d [ 59.607185][ T5829] [ 59.610196][ T5829] [ 59.612506][ T5829] The buggy address belongs to the physical page: [ 59.618920][ T5829] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x7fbb80951 pfn:0x73f29 [ 59.628377][ T5829] flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) [ 59.635498][ T5829] raw: 00fff00000000000 ffffea0001cfca88 ffff8880b8744af0 0000000000000000 [ 59.644074][ T5829] raw: 00000007fbb80951 0000000000000000 00000000ffffffff 0000000000000000 [ 59.652647][ T5829] page dumped because: kasan: bad access detected [ 59.659049][ T5829] page_owner tracks the page as freed [ 59.664406][ T5829] page last allocated via order 0, migratetype Movable, gfp_mask 0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), pid 5819, tgid 5819 (sshd), ts 52819436316, free_ts 52825063839 [ 59.682368][ T5829] post_alloc_hook+0x1f3/0x230 [ 59.687150][ T5829] get_page_from_freelist+0x363e/0x3790 [ 59.692701][ T5829] __alloc_pages_noprof+0x292/0x710 [ 59.697892][ T5829] alloc_pages_mpol_noprof+0x3e8/0x680 [ 59.703340][ T5829] vma_alloc_folio_noprof+0x12e/0x230 [ 59.708700][ T5829] folio_prealloc+0x31/0x170 [ 59.713283][ T5829] handle_pte_fault+0x24dd/0x6820 [ 59.718298][ T5829] handle_mm_fault+0x1053/0x1ad0 [ 59.723224][ T5829] exc_page_fault+0x459/0x8c0 [ 59.727898][ T5829] asm_exc_page_fault+0x26/0x30 [ 59.732740][ T5829] page last free pid 5819 tgid 5819 stack trace: [ 59.739052][ T5829] free_unref_folios+0xf21/0x1a10 [ 59.744067][ T5829] folios_put_refs+0x76c/0x860 [ 59.748841][ T5829] free_pages_and_swap_cache+0x2ea/0x690 [ 59.754490][ T5829] tlb_flush_mmu+0x3a3/0x680 [ 59.759084][ T5829] tlb_finish_mmu+0xd4/0x200 [ 59.763674][ T5829] vms_clear_ptes+0x437/0x530 [ 59.768370][ T5829] vms_complete_munmap_vmas+0x214/0x8f0 [ 59.773913][ T5829] do_vmi_align_munmap+0x5ef/0x6f0 [ 59.779031][ T5829] do_vmi_munmap+0x24e/0x2d0 [ 59.783628][ T5829] __vm_munmap+0x24c/0x480 [ 59.788059][ T5829] __x64_sys_munmap+0x60/0x70 [ 59.792745][ T5829] do_syscall_64+0xf3/0x230 [ 59.797253][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 59.803159][ T5829] [ 59.805475][ T5829] Memory state around the buggy address: [ 59.811098][ T5829] ffff888073f28f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 59.819242][ T5829] ffff888073f28f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 59.827301][ T5829] >ffff888073f29000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 59.835369][ T5829] ^ [ 59.839684][ T5829] ffff888073f29080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 59.847732][ T5829] ffff888073f29100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 59.855788][ T5829] ================================================================== [ 59.864344][ T5829] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 59.871566][ T5829] CPU: 0 UID: 0 PID: 5829 Comm: syz-executor298 Not tainted 6.12.0-rc7-syzkaller-00192-gb5a24181e461 #0 [ 59.882683][ T5829] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 [ 59.892743][ T5829] Call Trace: [ 59.896026][ T5829] [ 59.898953][ T5829] dump_stack_lvl+0x241/0x360 [ 59.903638][ T5829] ? __pfx_dump_stack_lvl+0x10/0x10 [ 59.908854][ T5829] ? __pfx__printk+0x10/0x10 [ 59.913453][ T5829] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 59.919438][ T5829] ? vscnprintf+0x5d/0x90 [ 59.923778][ T5829] panic+0x349/0x880 [ 59.927676][ T5829] ? check_panic_on_warn+0x21/0xb0 [ 59.932785][ T5829] ? __pfx_panic+0x10/0x10 [ 59.937203][ T5829] ? _raw_spin_unlock_irqrestore+0x130/0x140 [ 59.943202][ T5829] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 59.949546][ T5829] check_panic_on_warn+0x86/0xb0 [ 59.954487][ T5829] ? nilfs_find_entry+0x29c/0x660 [ 59.959513][ T5829] end_report+0x77/0x160 [ 59.963753][ T5829] kasan_report+0x154/0x180 [ 59.968254][ T5829] ? nilfs_find_entry+0x29c/0x660 [ 59.973278][ T5829] nilfs_find_entry+0x29c/0x660 [ 59.978126][ T5829] nilfs_inode_by_name+0xad/0x240 [ 59.983148][ T5829] ? __pfx_nilfs_inode_by_name+0x10/0x10 [ 59.988775][ T5829] ? __pfx_smack_inode_permission+0x10/0x10 [ 59.994662][ T5829] nilfs_lookup+0xed/0x210 [ 59.999072][ T5829] ? generic_permission+0x1e0/0x550 [ 60.004271][ T5829] ? __pfx_nilfs_lookup+0x10/0x10 [ 60.009291][ T5829] ? bpf_lsm_inode_create+0x9/0x10 [ 60.014397][ T5829] ? security_inode_create+0xbe/0x340 [ 60.019763][ T5829] ? __pfx_nilfs_lookup+0x10/0x10 [ 60.024782][ T5829] path_openat+0x11a7/0x3590 [ 60.029381][ T5829] ? __pfx_path_openat+0x10/0x10 [ 60.034319][ T5829] do_filp_open+0x235/0x490 [ 60.038844][ T5829] ? __pfx_do_filp_open+0x10/0x10 [ 60.043967][ T5829] ? _raw_spin_unlock+0x28/0x50 [ 60.048809][ T5829] ? alloc_fd+0x5a1/0x640 [ 60.053136][ T5829] do_sys_openat2+0x13e/0x1d0 [ 60.057818][ T5829] ? __pfx_do_sys_openat2+0x10/0x10 [ 60.063009][ T5829] ? lockdep_hardirqs_on+0x99/0x150 [ 60.068320][ T5829] ? _raw_spin_unlock_irq+0x2e/0x50 [ 60.073535][ T5829] ? ptrace_notify+0x279/0x380 [ 60.078315][ T5829] __x64_sys_openat+0x247/0x2a0 [ 60.083168][ T5829] ? __pfx___x64_sys_openat+0x10/0x10 [ 60.088537][ T5829] ? do_syscall_64+0x100/0x230 [ 60.093298][ T5829] do_syscall_64+0xf3/0x230 [ 60.097797][ T5829] ? clear_bhb_loop+0x35/0x90 [ 60.102484][ T5829] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.108371][ T5829] RIP: 0033:0x7f675ebaae49 [ 60.112790][ 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 [ 60.132413][ T5829] RSP: 002b:00007ffe8e3da638 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 60.140833][ T5829] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f675ebaae49 [ 60.148823][ T5829] RDX: 000000000000275a RSI: 0000000020000080 RDI: 00000000ffffff9c [ 60.156805][ T5829] RBP: 00000000000016c4 R08: 0000000000000ee3 R09: 0000000000000000 [ 60.164765][ T5829] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe8e3da680 [ 60.172726][ T5829] R13: 00007ffe8e3da760 R14: 431bde82d7b634db R15: 00007f675ebf401d [ 60.180709][ T5829] [ 60.183847][ T5829] Kernel Offset: disabled [ 60.188169][ T5829] Rebooting in 86400 seconds..