./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor794217752 <...> Warning: Permanently added '10.128.1.90' (ED25519) to the list of known hosts. execve("./syz-executor794217752", ["./syz-executor794217752"], 0x7ffc7df470d0 /* 10 vars */) = 0 brk(NULL) = 0x5555622c7000 brk(0x5555622c7e00) = 0x5555622c7e00 arch_prctl(ARCH_SET_FS, 0x5555622c7480) = 0 set_tid_address(0x5555622c7750) = 5047 set_robust_list(0x5555622c7760, 24) = 0 rseq(0x5555622c7da0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor794217752", 4096) = 27 getrandom("\xb7\x3f\xaf\xb7\x31\xbc\x79\x9d", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555622c7e00 brk(0x5555622e8e00) = 0x5555622e8e00 brk(0x5555622e9000) = 0x5555622e9000 mprotect(0x7fb01d7a7000, 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 rt_sigaction(SIGRTMIN, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=0}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=0}, NULL, 8) = 0 rt_sigaction(SIGSEGV, {sa_handler=0x7fb01d6eca50, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7fb01d6f5210}, NULL, 8) = 0 rt_sigaction(SIGBUS, {sa_handler=0x7fb01d6eca50, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7fb01d6f5210}, NULL, 8) = 0 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 5048 attached , child_tidptr=0x5555622c7750) = 5048 [pid 5048] set_robust_list(0x5555622c7760, 24) = 0 [pid 5048] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5048] setpgid(0, 0) = 0 [pid 5048] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 executing program [pid 5048] write(3, "1000", 4) = 4 [pid 5048] close(3) = 0 [pid 5048] write(1, "executing program\n", 18) = 18 [pid 5048] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, NULL) = 0 [pid 5048] sched_setscheduler(0, SCHED_FIFO, [7]) = 0 [pid 5048] memfd_create("syzkaller", 0) = 3 [pid 5048] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb015200000 [pid 5048] 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"..., 16777216) = 16777216 [pid 5048] munmap(0x7fb015200000, 138412032) = 0 [pid 5048] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5048] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5048] close(3) = 0 [pid 5048] close(4) = 0 [pid 5048] mkdir("./file0", 0777) = 0 [ 158.795703][ T5048] loop0: detected capacity change from 0 to 32768 [ 158.922347][ T5048] bcachefs (loop0): mounting version 1.7: mi_btree_bitmap opts=data_checksum=crc64,str_hash=crc64,nojournal_transaction_names,nocow [ 158.936672][ T5048] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 159.041811][ T5048] bcachefs (loop0): alloc_read... done [ 159.047577][ T5048] bcachefs (loop0): stripes_read... done [ 159.053692][ T5048] bcachefs (loop0): snapshots_read... done [ 159.070360][ T5048] bcachefs (loop0): journal_replay... done [ 159.076555][ T5048] bcachefs (loop0): resume_logged_ops... done [ 159.083167][ T5048] bcachefs (loop0): going read-write [pid 5048] mount("/dev/loop0", "./file0", "bcachefs", 0, "str_hash=crc64,data_checksum=crc64,metadata_checksum=crc32c,nocow,") = 0 [pid 5048] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5048] chdir("./file0") = 0 [pid 5048] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5048] ioctl(4, LOOP_CLR_FD) = 0 [pid 5048] close(4) = 0 [pid 5048] socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC) = 4 [pid 5048] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [ 159.096068][ T5048] bcachefs (loop0): done starting filesystem [ 159.132529][ T5056] ===================================================== [pid 5048] openat(AT_FDCWD, "memory.events", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 5 [pid 5048] exit_group(0) = ? [pid 5048] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5048, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=74 /* 0.74 s */} --- openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = 0 close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555622c7750) = 5061 [ 159.139711][ T5056] BUG: KMSAN: uninit-value in bch2_dirent_invalid+0x1ea/0xa30 [ 159.147482][ T5056] bch2_dirent_invalid+0x1ea/0xa30 [ 159.152879][ T5056] bch2_bkey_val_invalid+0x24f/0x380 [ 159.159236][ T5056] validate_bset_keys+0x12d8/0x25d0 [ 159.164973][ T5056] validate_bset_for_write+0x1dd/0x340 [ 159.171547][ T5056] __bch2_btree_node_write+0x4777/0x67c0 [ 159.178340][ T5056] bch2_btree_node_write+0xa5/0x2e0 [ 159.183994][ T5056] __btree_node_flush+0x4d0/0x640 [ 159.190294][ T5056] bch2_btree_node_flush0+0x35/0x60 [ 159.196271][ T5056] journal_flush_pins+0xce6/0x1780 [ 159.202315][ T5056] __bch2_journal_reclaim+0xd88/0x1610 [ 159.207962][ T5056] bch2_journal_reclaim_thread+0x18e/0x760 [ 159.214068][ T5056] kthread+0x3e2/0x540 [ 159.218329][ T5056] ret_from_fork+0x6d/0x90 [ 159.223091][ T5056] ret_from_fork_asm+0x1a/0x30 [ 159.228070][ T5056] [ 159.230481][ T5056] Uninit was stored to memory at: [ 159.235857][ T5056] bch2_sort_keys+0x1b4d/0x2cb0 [ 159.240912][ T5056] __bch2_btree_node_write+0x3acd/0x67c0 ./strace-static-x86_64: Process 5061 attached [pid 5061] set_robust_list(0x5555622c7760, 24) = 0 [pid 5061] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5061] setpgid(0, 0) = 0 [pid 5061] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5061] write(3, "1000", 4) = 4 [pid 5061] close(3) = 0 executing program [pid 5061] write(1, "executing program\n", 18) = 18 [pid 5061] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, NULL) = 0 [pid 5061] sched_setscheduler(0, SCHED_FIFO, [7]) = 0 [pid 5061] memfd_create("syzkaller", 0) = 3 [ 159.246878][ T5056] bch2_btree_node_write+0xa5/0x2e0 [ 159.254054][ T5056] __btree_node_flush+0x4d0/0x640 [ 159.259258][ T5056] bch2_btree_node_flush0+0x35/0x60 [ 159.264829][ T5056] journal_flush_pins+0xce6/0x1780 [ 159.272581][ T5056] __bch2_journal_reclaim+0xd88/0x1610 [ 159.278704][ T5056] bch2_journal_reclaim_thread+0x18e/0x760 [ 159.284933][ T5056] kthread+0x3e2/0x540 [ 159.291404][ T5056] ret_from_fork+0x6d/0x90 [ 159.296120][ T5056] ret_from_fork_asm+0x1a/0x30 [ 159.301078][ T5056] [ 159.303656][ T5056] Uninit was created at: [ 159.308114][ T5056] __kmalloc_large_node+0x231/0x370 [ 159.313566][ T5056] __kmalloc_node+0xb10/0x10c0 [ 159.318487][ T5056] kvmalloc_node+0xc0/0x2d0 [ 159.323263][ T5056] bch2_btree_node_read_done+0x4e68/0x75e0 [ 159.329275][ T5056] btree_node_read_work+0x8a5/0x1eb0 [ 159.334848][ T5056] bch2_btree_node_read+0x3d42/0x4b50 [ 159.340418][ T5056] bch2_btree_root_read+0xa6c/0x13d0 [ 159.346283][ T5056] read_btree_roots+0x454/0xee0 [ 159.351301][ T5056] bch2_fs_recovery+0x7b6a/0x93e0 [ 159.356561][ T5056] bch2_fs_start+0x7b2/0xbd0 [ 159.361339][ T5056] bch2_fs_open+0x152a/0x15f0 [ 159.366387][ T5056] bch2_mount+0x90d/0x1d90 [ 159.370981][ T5056] legacy_get_tree+0x114/0x290 [ 159.376068][ T5056] vfs_get_tree+0xa7/0x570 [ 159.380684][ T5056] do_new_mount+0x71f/0x15e0 [ 159.385576][ T5056] path_mount+0x742/0x1f20 [ 159.390176][ T5056] __se_sys_mount+0x725/0x810 [ 159.395134][ T5056] __x64_sys_mount+0xe4/0x150 [ 159.400002][ T5056] x64_sys_call+0x2bf4/0x3b50 [ 159.404979][ T5056] do_syscall_64+0xcf/0x1e0 [ 159.409696][ T5056] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 159.415875][ T5056] [ 159.418285][ T5056] CPU: 0 PID: 5056 Comm: bch-reclaim/loo Not tainted 6.9.0-syzkaller-02707-g614da38e2f7a #0 [ 159.428636][ T5056] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 159.439017][ T5056] ===================================================== [pid 5061] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb015200000 [ 159.446170][ T5056] Disabling lock debugging due to kernel taint [ 159.452511][ T5056] Kernel panic - not syncing: kmsan.panic set ... [ 159.459033][ T5056] CPU: 0 PID: 5056 Comm: bch-reclaim/loo Tainted: G B 6.9.0-syzkaller-02707-g614da38e2f7a #0 [ 159.470753][ T5056] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 159.480958][ T5056] Call Trace: [ 159.484344][ T5056] [ 159.487380][ T5056] dump_stack_lvl+0x216/0x2d0 [ 159.492265][ T5056] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 159.498269][ T5056] dump_stack+0x1e/0x30 [ 159.502621][ T5056] panic+0x4e2/0xcd0 [ 159.506714][ T5056] ? kmsan_get_metadata+0xf1/0x1d0 [ 159.512028][ T5056] kmsan_report+0x2d5/0x2e0 [ 159.516708][ T5056] ? kmsan_get_metadata+0x146/0x1d0 [ 159.522093][ T5056] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 159.528089][ T5056] ? __msan_warning+0x95/0x120 [ 159.533014][ T5056] ? bch2_dirent_invalid+0x1ea/0xa30 [ 159.538472][ T5056] ? bch2_bkey_val_invalid+0x24f/0x380 [ 159.544146][ T5056] ? validate_bset_keys+0x12d8/0x25d0 [ 159.549723][ T5056] ? validate_bset_for_write+0x1dd/0x340 [ 159.555575][ T5056] ? __bch2_btree_node_write+0x4777/0x67c0 [ 159.561596][ T5056] ? bch2_btree_node_write+0xa5/0x2e0 [ 159.567170][ T5056] ? __btree_node_flush+0x4d0/0x640 [ 159.572543][ T5056] ? bch2_btree_node_flush0+0x35/0x60 [ 159.578090][ T5056] ? journal_flush_pins+0xce6/0x1780 [ 159.583559][ T5056] ? __bch2_journal_reclaim+0xd88/0x1610 [ 159.589374][ T5056] ? bch2_journal_reclaim_thread+0x18e/0x760 [ 159.595548][ T5056] ? kthread+0x3e2/0x540 [ 159.599979][ T5056] ? ret_from_fork+0x6d/0x90 [ 159.604739][ T5056] ? ret_from_fork_asm+0x1a/0x30 [ 159.609887][ T5056] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 159.615889][ T5056] ? kmsan_get_metadata+0x146/0x1d0 [ 159.621270][ T5056] ? kmsan_get_metadata+0x146/0x1d0 [ 159.626656][ T5056] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 159.632664][ T5056] ? kmsan_get_metadata+0x146/0x1d0 [ 159.638049][ T5056] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 159.644049][ T5056] ? bch2_bkey_ptrs_invalid+0x250d/0x2d40 [ 159.650007][ T5056] ? kmsan_get_metadata+0x146/0x1d0 [ 159.655385][ T5056] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 159.661391][ T5056] __msan_warning+0x95/0x120 [ 159.666140][ T5056] bch2_dirent_invalid+0x1ea/0xa30 [ 159.671430][ T5056] ? kmsan_get_metadata+0x146/0x1d0 [ 159.676825][ T5056] ? __pfx_bch2_dirent_invalid+0x10/0x10 [ 159.682638][ T5056] bch2_bkey_val_invalid+0x24f/0x380 [ 159.688167][ T5056] validate_bset_keys+0x12d8/0x25d0 [ 159.693642][ T5056] validate_bset_for_write+0x1dd/0x340 [ 159.699342][ T5056] __bch2_btree_node_write+0x4777/0x67c0 [ 159.705201][ T5056] ? stack_depot_save_flags+0x2c/0x6e0 [ 159.710855][ T5056] ? mempool_kmalloc+0x36/0x50 [ 159.715790][ T5056] ? kmsan_get_metadata+0x146/0x1d0 [ 159.721225][ T5056] bch2_btree_node_write+0xa5/0x2e0 [ 159.726641][ T5056] __btree_node_flush+0x4d0/0x640 [ 159.731862][ T5056] ? __btree_node_flush+0xd1/0x640 [ 159.737153][ T5056] ? __pfx_bch2_btree_node_flush0+0x10/0x10 [ 159.743236][ T5056] bch2_btree_node_flush0+0x35/0x60 [ 159.748622][ T5056] journal_flush_pins+0xce6/0x1780 [ 159.753972][ T5056] __bch2_journal_reclaim+0xd88/0x1610 [ 159.759636][ T5056] ? kmsan_get_metadata+0x146/0x1d0 [ 159.765046][ T5056] bch2_journal_reclaim_thread+0x18e/0x760 [ 159.771073][ T5056] kthread+0x3e2/0x540 [ 159.775336][ T5056] ? __pfx_bch2_journal_reclaim_thread+0x10/0x10 [ 159.781878][ T5056] ? __pfx_kthread+0x10/0x10 [ 159.786663][ T5056] ret_from_fork+0x6d/0x90 [ 159.791254][ T5056] ? __pfx_kthread+0x10/0x10 [ 159.796036][ T5056] ret_from_fork_asm+0x1a/0x30 [ 159.801013][ T5056] [ 159.804262][ T5056] Kernel Offset: disabled [ 159.808643][ T5056] Rebooting in 86400 seconds..