./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3944009509 <...> Warning: Permanently added '10.128.1.113' (ED25519) to the list of known hosts. execve("./syz-executor3944009509", ["./syz-executor3944009509"], 0x7ffe54a45920 /* 10 vars */) = 0 brk(NULL) = 0x555573866000 brk(0x555573866d00) = 0x555573866d00 arch_prctl(ARCH_SET_FS, 0x555573866380) = 0 set_tid_address(0x555573866650) = 5046 set_robust_list(0x555573866660, 24) = 0 rseq(0x555573866ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3944009509", 4096) = 28 getrandom("\xb7\x31\xf3\x79\x45\x57\xff\xd3", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555573866d00 brk(0x555573887d00) = 0x555573887d00 brk(0x555573888000) = 0x555573888000 mprotect(0x7ff449724000, 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=0x555573866650) = 5047 ./strace-static-x86_64: Process 5047 attached [pid 5047] set_robust_list(0x555573866660, 24) = 0 [pid 5047] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5047] setpgid(0, 0) = 0 [pid 5047] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 executing program [pid 5047] write(3, "1000", 4) = 4 [pid 5047] close(3) = 0 [pid 5047] write(1, "executing program\n", 18) = 18 [pid 5047] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, NULL) = 0 [pid 5047] sched_setscheduler(0, SCHED_FIFO, [7]) = 0 [pid 5047] memfd_create("syzkaller", 0) = 3 [pid 5047] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff441200000 [pid 5047] 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 5047] munmap(0x7ff441200000, 138412032) = 0 [pid 5047] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5047] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5047] close(3) = 0 [pid 5047] close(4) = 0 [pid 5047] mkdir("./file0", 0777) = 0 [ 161.862204][ T5047] loop0: detected capacity change from 0 to 32768 [ 161.989278][ T5047] bcachefs (loop0): mounting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,nojournal_transaction_names [ 162.003868][ T5047] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 162.117768][ T5047] bcachefs (loop0): alloc_read... done [ 162.123775][ T5047] bcachefs (loop0): stripes_read... done [ 162.129768][ T5047] bcachefs (loop0): snapshots_read... done [ 162.146466][ T5047] bcachefs (loop0): journal_replay... done [ 162.152554][ T5047] bcachefs (loop0): resume_logged_ops... done [ 162.159219][ T5047] bcachefs (loop0): going read-write [pid 5047] mount("/dev/loop0", "./file0", "bcachefs", 0, "") = 0 [pid 5047] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5047] chdir("./file0") = 0 [pid 5047] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5047] ioctl(4, LOOP_CLR_FD) = 0 [pid 5047] close(4) = 0 [ 162.171114][ T5047] bcachefs (loop0): done starting filesystem [pid 5047] openat(AT_FDCWD, "./file1", O_RDONLY|O_TRUNC|O_APPEND) = 4 [pid 5047] exit_group(0) = ? [pid 5047] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5047, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=82 /* 0.82 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./strace-static-x86_64: Process 5060 attached [pid 5060] set_robust_list(0x555573866660, 24) = 0 [pid 5060] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5046] <... clone resumed>, child_tidptr=0x555573866650) = 5060 [pid 5060] <... prctl resumed>) = 0 [pid 5060] setpgid(0, 0) = 0 [pid 5060] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5060] write(3, "1000", 4) = 4 [pid 5060] close(3) = 0 [pid 5060] write(1, "executing program\n", 18) = 18 [pid 5060] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, NULL) = 0 [pid 5060] sched_setscheduler(0, SCHED_FIFO, [7]) = 0 executing program [pid 5060] memfd_create("syzkaller", 0) = 3 [pid 5060] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff441200000 [ 162.255258][ T5047] syz-executor394 (5047) used greatest stack depth: 1848 bytes left [ 162.453780][ T5056] ===================================================== [ 162.461015][ T5056] BUG: KMSAN: uninit-value in bch2_alloc_v4_invalid+0x625/0x10f0 [ 162.469160][ T5056] bch2_alloc_v4_invalid+0x625/0x10f0 [ 162.474833][ T5056] bch2_bkey_val_invalid+0x24f/0x380 [ 162.480342][ T5056] validate_bset_keys+0x12d8/0x25d0 [ 162.485913][ T5056] validate_bset_for_write+0x1dd/0x340 [ 162.491589][ T5056] __bch2_btree_node_write+0x4777/0x67c0 [ 162.497566][ T5056] bch2_btree_node_write+0xa5/0x2e0 [ 162.502966][ T5056] __btree_node_flush+0x4d0/0x640 [ 162.508228][ T5056] bch2_btree_node_flush0+0x35/0x60 [ 162.513891][ T5056] journal_flush_pins+0xce6/0x1780 [ 162.519181][ T5056] __bch2_journal_reclaim+0xd88/0x1610 [ 162.524905][ T5056] bch2_journal_reclaim_thread+0x18e/0x760 [ 162.530895][ T5056] kthread+0x3e2/0x540 [ 162.535270][ T5056] ret_from_fork+0x6d/0x90 [ 162.539852][ T5056] ret_from_fork_asm+0x1a/0x30 [ 162.545047][ T5056] [ 162.547475][ T5056] Uninit was stored to memory at: [ 162.552735][ T5056] bch2_sort_keys+0x1f34/0x2cb0 [ 162.557897][ T5056] __bch2_btree_node_write+0x3acd/0x67c0 [ 162.563808][ T5056] bch2_btree_node_write+0xa5/0x2e0 [ 162.569209][ T5056] __btree_node_flush+0x4d0/0x640 [ 162.574762][ T5056] bch2_btree_node_flush0+0x35/0x60 [ 162.580143][ T5056] journal_flush_pins+0xce6/0x1780 [ 162.585512][ T5056] __bch2_journal_reclaim+0xd88/0x1610 [ 162.591151][ T5056] bch2_journal_reclaim_thread+0x18e/0x760 [ 162.597325][ T5056] kthread+0x3e2/0x540 [ 162.601582][ T5056] ret_from_fork+0x6d/0x90 [ 162.606423][ T5056] ret_from_fork_asm+0x1a/0x30 [ 162.611386][ T5056] [ 162.613890][ T5056] Uninit was created at: [ 162.618347][ T5056] __kmalloc_large_node+0x231/0x370 [ 162.623796][ T5056] __kmalloc_node+0xb10/0x10c0 [ 162.628716][ T5056] kvmalloc_node+0xc0/0x2d0 [ 162.633522][ T5056] bch2_btree_node_read_done+0x4e68/0x75e0 [ 162.639536][ T5056] btree_node_read_work+0x8a5/0x1eb0 [ 162.645130][ T5056] bch2_btree_node_read+0x3d42/0x4b50 [ 162.650706][ T5056] bch2_btree_root_read+0xa6c/0x13d0 [ 162.656269][ T5056] read_btree_roots+0x454/0xee0 [ 162.661289][ T5056] bch2_fs_recovery+0x7b6a/0x93e0 [ 162.666590][ T5056] bch2_fs_start+0x7b2/0xbd0 [ 162.671386][ T5056] bch2_fs_open+0x152a/0x15f0 [ 162.676401][ T5056] bch2_mount+0x90d/0x1d90 [ 162.681004][ T5056] legacy_get_tree+0x114/0x290 [ 162.686055][ T5056] vfs_get_tree+0xa7/0x570 [ 162.690671][ T5056] do_new_mount+0x71f/0x15e0 [ 162.695583][ T5056] path_mount+0x742/0x1f20 [ 162.700182][ T5056] __se_sys_mount+0x725/0x810 [ 162.705152][ T5056] __x64_sys_mount+0xe4/0x150 [ 162.710021][ T5056] x64_sys_call+0x2bf4/0x3b50 [ 162.714991][ T5056] do_syscall_64+0xcf/0x1e0 [ 162.719703][ T5056] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 162.725900][ T5056] [ 162.728322][ T5056] CPU: 0 PID: 5056 Comm: bch-reclaim/loo Not tainted 6.9.0-syzkaller-02707-g614da38e2f7a #0 [ 162.738668][ T5056] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 162.748969][ T5056] ===================================================== [ 162.756169][ T5056] Disabling lock debugging due to kernel taint [ 162.762543][ T5056] Kernel panic - not syncing: kmsan.panic set ... [ 162.769086][ T5056] CPU: 0 PID: 5056 Comm: bch-reclaim/loo Tainted: G B 6.9.0-syzkaller-02707-g614da38e2f7a #0 [ 162.780831][ T5056] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 162.791058][ T5056] Call Trace: [ 162.794458][ T5056] [ 162.797496][ T5056] dump_stack_lvl+0x216/0x2d0 [ 162.802407][ T5056] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 162.808426][ T5056] dump_stack+0x1e/0x30 [ 162.812781][ T5056] panic+0x4e2/0xcd0 [ 162.816882][ T5056] ? kmsan_get_metadata+0xf1/0x1d0 [ 162.822200][ T5056] kmsan_report+0x2d5/0x2e0 [ 162.826881][ T5056] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 162.832879][ T5056] ? kmsan_get_metadata+0x146/0x1d0 [ 162.838256][ T5056] ? __msan_warning+0x95/0x120 [ 162.843179][ T5056] ? bch2_alloc_v4_invalid+0x625/0x10f0 [ 162.848941][ T5056] ? bch2_bkey_val_invalid+0x24f/0x380 [ 162.854614][ T5056] ? validate_bset_keys+0x12d8/0x25d0 [ 162.860195][ T5056] ? validate_bset_for_write+0x1dd/0x340 [ 162.866039][ T5056] ? __bch2_btree_node_write+0x4777/0x67c0 [ 162.872057][ T5056] ? bch2_btree_node_write+0xa5/0x2e0 [ 162.877637][ T5056] ? __btree_node_flush+0x4d0/0x640 [ 162.883010][ T5056] ? bch2_btree_node_flush0+0x35/0x60 [ 162.888553][ T5056] ? journal_flush_pins+0xce6/0x1780 [ 162.894024][ T5056] ? __bch2_journal_reclaim+0xd88/0x1610 [ 162.899844][ T5056] ? bch2_journal_reclaim_thread+0x18e/0x760 [ 162.906013][ T5056] ? kthread+0x3e2/0x540 [ 162.910462][ T5056] ? ret_from_fork+0x6d/0x90 [ 162.915221][ T5056] ? ret_from_fork_asm+0x1a/0x30 [ 162.920366][ T5056] ? kmsan_get_metadata+0x146/0x1d0 [ 162.925842][ T5056] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 162.931841][ T5056] ? kmsan_get_metadata+0x146/0x1d0 [ 162.937220][ T5056] ? kmsan_get_metadata+0x146/0x1d0 [ 162.942596][ T5056] ? kmsan_internal_set_shadow_origin+0x66/0xe0 [ 162.949068][ T5056] ? kmsan_get_metadata+0x146/0x1d0 [ 162.954456][ T5056] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 162.960464][ T5056] ? bch2_bkey_ptrs_invalid+0x250d/0x2d40 [ 162.966403][ T5056] ? kmsan_get_metadata+0x146/0x1d0 [ 162.971790][ T5056] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 162.977786][ T5056] __msan_warning+0x95/0x120 [ 162.982538][ T5056] bch2_alloc_v4_invalid+0x625/0x10f0 [ 162.988137][ T5056] ? kmsan_get_metadata+0x146/0x1d0 [ 162.993531][ T5056] ? __pfx_bch2_alloc_v4_invalid+0x10/0x10 [ 162.999557][ T5056] bch2_bkey_val_invalid+0x24f/0x380 [ 163.005072][ T5056] validate_bset_keys+0x12d8/0x25d0 [ 163.010538][ T5056] validate_bset_for_write+0x1dd/0x340 [ 163.016220][ T5056] __bch2_btree_node_write+0x4777/0x67c0 [ 163.022503][ T5056] ? __update_load_avg_cfs_rq+0x121/0x10e0 [ 163.028528][ T5056] ? update_load_avg+0x1865/0x29b0 [ 163.033820][ T5056] ? kmsan_get_metadata+0x146/0x1d0 [ 163.039255][ T5056] bch2_btree_node_write+0xa5/0x2e0 [ 163.044681][ T5056] __btree_node_flush+0x4d0/0x640 [ 163.049885][ T5056] ? __btree_node_flush+0xd1/0x640 [ 163.055266][ T5056] ? __pfx_bch2_btree_node_flush0+0x10/0x10 [ 163.061373][ T5056] bch2_btree_node_flush0+0x35/0x60 [ 163.066779][ T5056] journal_flush_pins+0xce6/0x1780 [ 163.072123][ T5056] __bch2_journal_reclaim+0xd88/0x1610 [ 163.077822][ T5056] bch2_journal_reclaim_thread+0x18e/0x760 [ 163.083850][ T5056] kthread+0x3e2/0x540 [ 163.088151][ T5056] ? __pfx_bch2_journal_reclaim_thread+0x10/0x10 [ 163.094686][ T5056] ? __pfx_kthread+0x10/0x10 [ 163.099476][ T5056] ret_from_fork+0x6d/0x90 [ 163.104064][ T5056] ? __pfx_kthread+0x10/0x10 [ 163.108858][ T5056] ret_from_fork_asm+0x1a/0x30 [ 163.113835][ T5056] [ 163.117567][ T5056] Kernel Offset: disabled [ 163.121951][ T5056] Rebooting in 86400 seconds..