./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1900412642 <...> Warning: Permanently added '10.128.0.255' (ED25519) to the list of known hosts. execve("./syz-executor1900412642", ["./syz-executor1900412642"], 0x7fff4773f3d0 /* 10 vars */) = 0 brk(NULL) = 0x555561013000 brk(0x555561013d00) = 0x555561013d00 arch_prctl(ARCH_SET_FS, 0x555561013380) = 0 set_tid_address(0x555561013650) = 5046 set_robust_list(0x555561013660, 24) = 0 rseq(0x555561013ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1900412642", 4096) = 28 getrandom("\xa4\xda\x58\x41\xd2\x5e\x86\xca", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555561013d00 brk(0x555561034d00) = 0x555561034d00 brk(0x555561035000) = 0x555561035000 mprotect(0x7f999951e000, 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=0x555561013650) = 5047 ./strace-static-x86_64: Process 5047 attached [pid 5047] set_robust_list(0x555561013660, 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 [pid 5047] write(3, "1000", 4) = 4 [pid 5047] close(3executing program ) = 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) = 0x7f9991000000 [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(0x7f9991000000, 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 [ 179.955917][ T5047] loop0: detected capacity change from 0 to 32768 [ 180.094256][ T5047] bcachefs (loop0): mounting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,nojournal_transaction_names [ 180.108838][ T5047] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 180.248655][ T5047] bcachefs (loop0): alloc_read... done [ 180.254638][ T5047] bcachefs (loop0): stripes_read... done [ 180.260925][ T5047] bcachefs (loop0): snapshots_read... done [ 180.279934][ T5047] bcachefs (loop0): journal_replay... done [ 180.286234][ T5047] bcachefs (loop0): resume_logged_ops... done [ 180.292913][ 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 [ 180.306566][ 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=4 /* 0.04 s */, si_stime=97 /* 0.97 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 , child_tidptr=0x555561013650) = 5060 [pid 5060] set_robust_list(0x555561013660, 24) = 0 [pid 5060] prctl(PR_SET_PDEATHSIG, SIGKILL) = 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 [ 180.411422][ T5047] syz-executor190 (5047) used greatest stack depth: 1848 bytes left [pid 5060] close(3executing program ) = 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 [pid 5060] memfd_create("syzkaller", 0) = 3 [pid 5060] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9991000000 [ 180.615742][ T5055] ===================================================== [ 180.623020][ T5055] BUG: KMSAN: uninit-value in bch2_alloc_v4_invalid+0x625/0x10f0 [ 180.631354][ T5055] bch2_alloc_v4_invalid+0x625/0x10f0 [ 180.637071][ T5055] bch2_bkey_val_invalid+0x24f/0x380 [ 180.642629][ T5055] validate_bset_keys+0x12d8/0x25d0 [ 180.648133][ T5055] validate_bset_for_write+0x1dd/0x340 [ 180.653832][ T5055] __bch2_btree_node_write+0x4777/0x67c0 [ 180.659788][ T5055] bch2_btree_node_write+0xa5/0x2e0 [ 180.665293][ T5055] __btree_node_flush+0x4d0/0x640 [ 180.670538][ T5055] bch2_btree_node_flush0+0x35/0x60 [ 180.676003][ T5055] journal_flush_pins+0xce6/0x1780 [ 180.681314][ T5055] __bch2_journal_reclaim+0xd88/0x1610 [ 180.687067][ T5055] bch2_journal_reclaim_thread+0x18e/0x760 [ 180.693191][ T5055] kthread+0x3e2/0x540 [ 180.697561][ T5055] ret_from_fork+0x6d/0x90 [ 180.702186][ T5055] ret_from_fork_asm+0x1a/0x30 [ 180.707264][ T5055] [ 180.709696][ T5055] Uninit was stored to memory at: [ 180.715161][ T5055] bch2_sort_keys+0x1f34/0x2cb0 [ 180.720265][ T5055] __bch2_btree_node_write+0x3acd/0x67c0 [ 180.726744][ T5055] bch2_btree_node_write+0xa5/0x2e0 [ 180.732194][ T5055] __btree_node_flush+0x4d0/0x640 [ 180.737646][ T5055] bch2_btree_node_flush0+0x35/0x60 [ 180.743074][ T5055] journal_flush_pins+0xce6/0x1780 [ 180.748494][ T5055] __bch2_journal_reclaim+0xd88/0x1610 [ 180.754173][ T5055] bch2_journal_reclaim_thread+0x18e/0x760 [ 180.760866][ T5055] kthread+0x3e2/0x540 [ 180.765239][ T5055] ret_from_fork+0x6d/0x90 [ 180.769863][ T5055] ret_from_fork_asm+0x1a/0x30 [ 180.774876][ T5055] [ 180.777384][ T5055] Uninit was created at: [ 180.781901][ T5055] __kmalloc_large_node+0x231/0x370 [ 180.787377][ T5055] __kmalloc_node+0xb10/0x10c0 [ 180.792342][ T5055] kvmalloc_node+0xc0/0x2d0 [ 180.797136][ T5055] bch2_btree_node_read_done+0x4e68/0x75e0 [ 180.803188][ T5055] btree_node_read_work+0x8a5/0x1eb0 [ 180.808788][ T5055] bch2_btree_node_read+0x3d42/0x4b50 [ 180.814418][ T5055] bch2_btree_root_read+0xa6c/0x13d0 [ 180.820270][ T5055] read_btree_roots+0x454/0xee0 [ 180.825415][ T5055] bch2_fs_recovery+0x7b6a/0x93e0 [ 180.830648][ T5055] bch2_fs_start+0x7b2/0xbd0 [ 180.835555][ T5055] bch2_fs_open+0x152a/0x15f0 [ 180.840529][ T5055] bch2_mount+0x90d/0x1d90 [ 180.845336][ T5055] legacy_get_tree+0x114/0x290 [ 180.850331][ T5055] vfs_get_tree+0xa7/0x570 [ 180.855107][ T5055] do_new_mount+0x71f/0x15e0 [ 180.859937][ T5055] path_mount+0x742/0x1f20 [ 180.864585][ T5055] __se_sys_mount+0x725/0x810 [ 180.869577][ T5055] __x64_sys_mount+0xe4/0x150 [ 180.874488][ T5055] x64_sys_call+0x2bf4/0x3b50 [ 180.879669][ T5055] do_syscall_64+0xcf/0x1e0 [ 180.884407][ T5055] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 180.890631][ T5055] [ 180.893081][ T5055] CPU: 1 PID: 5055 Comm: bch-reclaim/loo Not tainted 6.9.0-syzkaller-02707-g614da38e2f7a #0 [ 180.903424][ T5055] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 180.913783][ T5055] ===================================================== [ 180.920896][ T5055] Disabling lock debugging due to kernel taint [ 180.928980][ T5055] Kernel panic - not syncing: kmsan.panic set ... [ 180.935547][ T5055] CPU: 1 PID: 5055 Comm: bch-reclaim/loo Tainted: G B 6.9.0-syzkaller-02707-g614da38e2f7a #0 [ 180.947309][ T5055] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 180.957654][ T5055] Call Trace: [ 180.961069][ T5055] [ 180.964149][ T5055] dump_stack_lvl+0x216/0x2d0 [ 180.969097][ T5055] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 180.975137][ T5055] dump_stack+0x1e/0x30 [ 180.979540][ T5055] panic+0x4e2/0xcd0 [ 180.983708][ T5055] ? kmsan_get_metadata+0xf1/0x1d0 [ 180.989060][ T5055] kmsan_report+0x2d5/0x2e0 [ 180.993787][ T5055] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 180.999832][ T5055] ? kmsan_get_metadata+0x146/0x1d0 [ 181.005266][ T5055] ? __msan_warning+0x95/0x120 [ 181.010223][ T5055] ? bch2_alloc_v4_invalid+0x625/0x10f0 [ 181.016042][ T5055] ? bch2_bkey_val_invalid+0x24f/0x380 [ 181.021768][ T5055] ? validate_bset_keys+0x12d8/0x25d0 [ 181.027401][ T5055] ? validate_bset_for_write+0x1dd/0x340 [ 181.033302][ T5055] ? __bch2_btree_node_write+0x4777/0x67c0 [ 181.039392][ T5055] ? bch2_btree_node_write+0xa5/0x2e0 [ 181.044999][ T5055] ? __btree_node_flush+0x4d0/0x640 [ 181.050414][ T5055] ? bch2_btree_node_flush0+0x35/0x60 [ 181.056006][ T5055] ? journal_flush_pins+0xce6/0x1780 [ 181.061515][ T5055] ? __bch2_journal_reclaim+0xd88/0x1610 [ 181.067371][ T5055] ? bch2_journal_reclaim_thread+0x18e/0x760 [ 181.073591][ T5055] ? kthread+0x3e2/0x540 [ 181.078085][ T5055] ? ret_from_fork+0x6d/0x90 [ 181.082902][ T5055] ? ret_from_fork_asm+0x1a/0x30 [ 181.088097][ T5055] ? kmsan_get_metadata+0x146/0x1d0 [ 181.093513][ T5055] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 181.099549][ T5055] ? kmsan_get_metadata+0x146/0x1d0 [ 181.104972][ T5055] ? kmsan_get_metadata+0x146/0x1d0 [ 181.110412][ T5055] ? kmsan_internal_set_shadow_origin+0x66/0xe0 [ 181.116956][ T5055] ? kmsan_get_metadata+0x146/0x1d0 [ 181.122378][ T5055] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 181.128444][ T5055] ? bch2_bkey_ptrs_invalid+0x250d/0x2d40 [ 181.134469][ T5055] ? kmsan_get_metadata+0x146/0x1d0 [ 181.139889][ T5055] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 181.145936][ T5055] __msan_warning+0x95/0x120 [ 181.150733][ T5055] bch2_alloc_v4_invalid+0x625/0x10f0 [ 181.156377][ T5055] ? kmsan_get_metadata+0x146/0x1d0 [ 181.161815][ T5055] ? __pfx_bch2_alloc_v4_invalid+0x10/0x10 [ 181.167879][ T5055] bch2_bkey_val_invalid+0x24f/0x380 [ 181.173464][ T5055] validate_bset_keys+0x12d8/0x25d0 [ 181.178985][ T5055] validate_bset_for_write+0x1dd/0x340 [ 181.184744][ T5055] __bch2_btree_node_write+0x4777/0x67c0 [ 181.190637][ T5055] ? __update_load_avg_cfs_rq+0x121/0x10e0 [ 181.196688][ T5055] ? update_load_avg+0x1865/0x29b0 [ 181.202030][ T5055] ? kmsan_get_metadata+0x146/0x1d0 [ 181.207555][ T5055] bch2_btree_node_write+0xa5/0x2e0 [ 181.213032][ T5055] __btree_node_flush+0x4d0/0x640 [ 181.218286][ T5055] ? __btree_node_flush+0xd1/0x640 [ 181.223643][ T5055] ? __pfx_bch2_btree_node_flush0+0x10/0x10 [ 181.229788][ T5055] bch2_btree_node_flush0+0x35/0x60 [ 181.235224][ T5055] journal_flush_pins+0xce6/0x1780 [ 181.240625][ T5055] __bch2_journal_reclaim+0xd88/0x1610 [ 181.246338][ T5055] ? __try_to_del_timer_sync+0x3d3/0x420 [ 181.252299][ T5055] bch2_journal_reclaim_thread+0x18e/0x760 [ 181.258382][ T5055] kthread+0x3e2/0x540 [ 181.262705][ T5055] ? __pfx_bch2_journal_reclaim_thread+0x10/0x10 [ 181.269286][ T5055] ? __pfx_kthread+0x10/0x10 [ 181.274210][ T5055] ret_from_fork+0x6d/0x90 [ 181.278844][ T5055] ? __pfx_kthread+0x10/0x10 [ 181.283673][ T5055] ret_from_fork_asm+0x1a/0x30 [ 181.288717][ T5055] [ 181.292158][ T5055] Kernel Offset: disabled [ 181.296668][ T5055] Rebooting in 86400 seconds..