./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3124561915 <...> Warning: Permanently added '10.128.0.15' (ED25519) to the list of known hosts. execve("./syz-executor3124561915", ["./syz-executor3124561915"], 0x7ffc5dd69d20 /* 10 vars */) = 0 brk(NULL) = 0x555590504000 brk(0x555590504d00) = 0x555590504d00 arch_prctl(ARCH_SET_FS, 0x555590504380) = 0 set_tid_address(0x555590504650) = 5044 set_robust_list(0x555590504660, 24) = 0 rseq(0x555590504ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3124561915", 4096) = 28 getrandom("\xa4\x88\xe9\xce\xec\x57\xfd\x1a", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555590504d00 brk(0x555590525d00) = 0x555590525d00 brk(0x555590526000) = 0x555590526000 mprotect(0x7fe409b9b000, 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, child_tidptr=0x555590504650) = 5045 ./strace-static-x86_64: Process 5045 attached [pid 5045] set_robust_list(0x555590504660, 24) = 0 [pid 5045] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5045] setpgid(0, 0) = 0 [pid 5045] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5045] write(3, "1000", 4executing program ) = 4 [pid 5045] close(3) = 0 [pid 5045] write(1, "executing program\n", 18) = 18 [pid 5045] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, NULL) = 0 [pid 5045] sched_setscheduler(0, SCHED_FIFO, [7]) = 0 [pid 5045] memfd_create("syzkaller", 0) = 3 [pid 5045] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe401600000 [pid 5045] 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 5045] munmap(0x7fe401600000, 138412032) = 0 [pid 5045] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5045] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5045] close(3) = 0 [pid 5045] close(4) = 0 [pid 5045] mkdir("./file0", 0777) = 0 [ 159.539164][ T5045] loop0: detected capacity change from 0 to 32768 [ 159.670224][ T5045] bcachefs (loop0): mounting version 1.7: mi_btree_bitmap opts=data_checksum=crc64,str_hash=crc64,nojournal_transaction_names,nocow [ 159.684766][ T5045] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 159.776254][ T5045] bcachefs (loop0): alloc_read... done [ 159.782252][ T5045] bcachefs (loop0): stripes_read... done [ 159.788335][ T5045] bcachefs (loop0): snapshots_read... done [ 159.805913][ T5045] bcachefs (loop0): journal_replay... done [ 159.812215][ T5045] bcachefs (loop0): resume_logged_ops... done [ 159.818772][ T5045] bcachefs (loop0): going read-write [pid 5045] mount("/dev/loop0", "./file0", "bcachefs", 0, "str_hash=crc64,data_checksum=crc64,metadata_checksum=crc32c,nocow,") = 0 [pid 5045] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5045] chdir("./file0") = 0 [pid 5045] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5045] ioctl(4, LOOP_CLR_FD) = 0 [pid 5045] close(4) = 0 [ 159.832855][ T5045] bcachefs (loop0): done starting filesystem [pid 5045] openat(AT_FDCWD, "memory.events", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 4 [pid 5045] exit_group(0) = ? [pid 5045] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5045, si_uid=0, si_status=0, si_utime=4 /* 0.04 s */, si_stime=76 /* 0.76 s */} --- openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = 0 [ 159.874851][ T5053] ===================================================== [ 159.882409][ T5053] BUG: KMSAN: uninit-value in bch2_dirent_invalid+0x1ea/0xa30 [ 159.890073][ T5053] bch2_dirent_invalid+0x1ea/0xa30 [ 159.895547][ T5053] bch2_bkey_val_invalid+0x24f/0x380 [ 159.901067][ T5053] validate_bset_keys+0x12d8/0x25d0 [ 159.906727][ T5053] validate_bset_for_write+0x1dd/0x340 [ 159.912561][ T5053] __bch2_btree_node_write+0x4777/0x67c0 [ 159.918439][ T5053] bch2_btree_node_write+0xa5/0x2e0 close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x555590504650) = 5057 ./strace-static-x86_64: Process 5057 attached [ 159.924802][ T5053] __btree_node_flush+0x4d0/0x640 [ 159.932840][ T5053] bch2_btree_node_flush0+0x35/0x60 [ 159.938382][ T5053] journal_flush_pins+0xce6/0x1780 [ 159.943775][ T5053] __bch2_journal_reclaim+0xd88/0x1610 [ 159.950174][ T5053] bch2_journal_reclaim_thread+0x18e/0x760 [ 159.956497][ T5053] kthread+0x3e2/0x540 [ 159.960778][ T5053] ret_from_fork+0x6d/0x90 [ 159.965802][ T5053] ret_from_fork_asm+0x1a/0x30 [ 159.970957][ T5053] [pid 5057] set_robust_list(0x555590504660, 24) = 0 [pid 5057] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5057] setpgid(0, 0) = 0 [pid 5057] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5057] write(3, "1000", 4) = 4 [pid 5057] close(3) = 0 executing program [pid 5057] write(1, "executing program\n", 18) = 18 [pid 5057] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, NULL) = 0 [pid 5057] sched_setscheduler(0, SCHED_FIFO, [7]) = 0 [ 159.973508][ T5053] Uninit was stored to memory at: [ 159.979365][ T5053] bch2_sort_keys+0x1b4d/0x2cb0 [ 159.985377][ T5053] __bch2_btree_node_write+0x3acd/0x67c0 [ 159.991747][ T5053] bch2_btree_node_write+0xa5/0x2e0 [ 159.997586][ T5053] __btree_node_flush+0x4d0/0x640 [ 160.003734][ T5053] bch2_btree_node_flush0+0x35/0x60 [ 160.012404][ T5053] journal_flush_pins+0xce6/0x1780 [ 160.018460][ T5053] __bch2_journal_reclaim+0xd88/0x1610 [ 160.024188][ T5053] bch2_journal_reclaim_thread+0x18e/0x760 [ 160.030195][ T5053] kthread+0x3e2/0x540 [ 160.034556][ T5053] ret_from_fork+0x6d/0x90 [ 160.039142][ T5053] ret_from_fork_asm+0x1a/0x30 [ 160.044247][ T5053] [ 160.046659][ T5053] Uninit was created at: [ 160.051117][ T5053] __kmalloc_large_node+0x231/0x370 [ 160.056606][ T5053] __kmalloc_node+0xb10/0x10c0 [ 160.061615][ T5053] kvmalloc_node+0xc0/0x2d0 [ 160.066290][ T5053] bch2_btree_node_read_done+0x4e68/0x75e0 [ 160.072410][ T5053] btree_node_read_work+0x8a5/0x1eb0 [ 160.077910][ T5053] bch2_btree_node_read+0x3d42/0x4b50 [ 160.083554][ T5053] bch2_btree_root_read+0xa6c/0x13d0 [ 160.089037][ T5053] read_btree_roots+0x454/0xee0 [ 160.094117][ T5053] bch2_fs_recovery+0x7b6a/0x93e0 [ 160.099312][ T5053] bch2_fs_start+0x7b2/0xbd0 [ 160.104163][ T5053] bch2_fs_open+0x152a/0x15f0 [ 160.109045][ T5053] bch2_mount+0x90d/0x1d90 [ 160.114141][ T5053] legacy_get_tree+0x114/0x290 [ 160.119092][ T5053] vfs_get_tree+0xa7/0x570 [ 160.123792][ T5053] do_new_mount+0x71f/0x15e0 [ 160.128567][ T5053] path_mount+0x742/0x1f20 [ 160.133224][ T5053] __se_sys_mount+0x725/0x810 [ 160.138092][ T5053] __x64_sys_mount+0xe4/0x150 [ 160.143074][ T5053] x64_sys_call+0x2bf4/0x3b50 [ 160.147952][ T5053] do_syscall_64+0xcf/0x1e0 [ 160.152769][ T5053] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 160.158865][ T5053] [ 160.161540][ T5053] CPU: 1 PID: 5053 Comm: bch-reclaim/loo Not tainted 6.9.0-syzkaller-02707-g614da38e2f7a #0 [ 160.171837][ T5053] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 160.182088][ T5053] ===================================================== [ 160.189122][ T5053] Disabling lock debugging due to kernel taint [ 160.195468][ T5053] Kernel panic - not syncing: kmsan.panic set ... [ 160.202181][ T5053] CPU: 1 PID: 5053 Comm: bch-reclaim/loo Tainted: G B 6.9.0-syzkaller-02707-g614da38e2f7a #0 [ 160.214441][ T5053] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 160.225432][ T5053] Call Trace: [ 160.228829][ T5053] [ 160.231870][ T5053] dump_stack_lvl+0x216/0x2d0 [ 160.236766][ T5053] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 160.242866][ T5053] dump_stack+0x1e/0x30 [ 160.247227][ T5053] panic+0x4e2/0xcd0 [ 160.251506][ T5053] ? kmsan_get_metadata+0xf1/0x1d0 [ 160.256831][ T5053] kmsan_report+0x2d5/0x2e0 [ 160.261532][ T5053] ? kmsan_get_metadata+0x146/0x1d0 [ 160.267022][ T5053] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 160.273213][ T5053] ? __msan_warning+0x95/0x120 [ 160.278254][ T5053] ? bch2_dirent_invalid+0x1ea/0xa30 [ 160.283769][ T5053] ? bch2_bkey_val_invalid+0x24f/0x380 [ 160.289536][ T5053] ? validate_bset_keys+0x12d8/0x25d0 [ 160.295131][ T5053] ? validate_bset_for_write+0x1dd/0x340 [ 160.301000][ T5053] ? __bch2_btree_node_write+0x4777/0x67c0 [ 160.307056][ T5053] ? bch2_btree_node_write+0xa5/0x2e0 [ 160.313450][ T5053] ? __btree_node_flush+0x4d0/0x640 [ 160.318841][ T5053] ? bch2_btree_node_flush0+0x35/0x60 [ 160.324409][ T5053] ? journal_flush_pins+0xce6/0x1780 [ 160.329887][ T5053] ? __bch2_journal_reclaim+0xd88/0x1610 [ 160.335806][ T5053] ? bch2_journal_reclaim_thread+0x18e/0x760 [ 160.342001][ T5053] ? kthread+0x3e2/0x540 [ 160.346447][ T5053] ? ret_from_fork+0x6d/0x90 [ 160.351388][ T5053] ? ret_from_fork_asm+0x1a/0x30 [ 160.356517][ T5053] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 160.362523][ T5053] ? kmsan_get_metadata+0x146/0x1d0 [ 160.367913][ T5053] ? kmsan_get_metadata+0x146/0x1d0 [ 160.373307][ T5053] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 160.379397][ T5053] ? kmsan_get_metadata+0x146/0x1d0 [ 160.384798][ T5053] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 160.390814][ T5053] ? bch2_bkey_ptrs_invalid+0x250d/0x2d40 [ 160.396780][ T5053] ? kmsan_get_metadata+0x146/0x1d0 [ 160.402165][ T5053] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 160.408169][ T5053] __msan_warning+0x95/0x120 [ 160.412926][ T5053] bch2_dirent_invalid+0x1ea/0xa30 [ 160.418233][ T5053] ? kmsan_get_metadata+0x146/0x1d0 [ 160.423635][ T5053] ? __pfx_bch2_dirent_invalid+0x10/0x10 [ 160.429457][ T5053] bch2_bkey_val_invalid+0x24f/0x380 [ 160.435086][ T5053] validate_bset_keys+0x12d8/0x25d0 [ 160.440656][ T5053] validate_bset_for_write+0x1dd/0x340 [ 160.446445][ T5053] __bch2_btree_node_write+0x4777/0x67c0 [ 160.452313][ T5053] ? stack_depot_save_flags+0x2c/0x6e0 [ 160.457971][ T5053] ? mempool_kmalloc+0x36/0x50 [ 160.463019][ T5053] ? kmsan_get_metadata+0x146/0x1d0 [ 160.468466][ T5053] bch2_btree_node_write+0xa5/0x2e0 [ 160.473892][ T5053] __btree_node_flush+0x4d0/0x640 [ 160.479121][ T5053] ? __btree_node_flush+0xd1/0x640 [ 160.484420][ T5053] ? __pfx_bch2_btree_node_flush0+0x10/0x10 [ 160.490501][ T5053] bch2_btree_node_flush0+0x35/0x60 [ 160.495925][ T5053] journal_flush_pins+0xce6/0x1780 [ 160.501276][ T5053] __bch2_journal_reclaim+0xd88/0x1610 [ 160.506940][ T5053] ? kmsan_get_metadata+0x146/0x1d0 [ 160.512533][ T5053] bch2_journal_reclaim_thread+0x18e/0x760 [ 160.518650][ T5053] kthread+0x3e2/0x540 [ 160.522923][ T5053] ? __pfx_bch2_journal_reclaim_thread+0x10/0x10 [ 160.529469][ T5053] ? __pfx_kthread+0x10/0x10 [ 160.534270][ T5053] ret_from_fork+0x6d/0x90 [ 160.538871][ T5053] ? __pfx_kthread+0x10/0x10 [ 160.543853][ T5053] ret_from_fork_asm+0x1a/0x30 [ 160.548872][ T5053] [ 160.552145][ T5053] Kernel Offset: disabled [ 160.556536][ T5053] Rebooting in 86400 seconds..