./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3323806747 <...> Warning: Permanently added '10.128.1.101' (ED25519) to the list of known hosts. execve("./syz-executor3323806747", ["./syz-executor3323806747"], 0x7ffec2ae6200 /* 10 vars */) = 0 brk(NULL) = 0x55558edcf000 brk(0x55558edcfd00) = 0x55558edcfd00 arch_prctl(ARCH_SET_FS, 0x55558edcf380) = 0 set_tid_address(0x55558edcf650) = 5058 set_robust_list(0x55558edcf660, 24) = 0 rseq(0x55558edcfca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3323806747", 4096) = 28 getrandom("\xb4\x4b\x27\x73\xd9\xfb\xe0\x48", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55558edcfd00 brk(0x55558edf0d00) = 0x55558edf0d00 brk(0x55558edf1000) = 0x55558edf1000 mprotect(0x7ff7aad46000, 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=0x55558edcf650) = 5059 ./strace-static-x86_64: Process 5059 attached [pid 5059] set_robust_list(0x55558edcf660, 24) = 0 [pid 5059] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5059] setpgid(0, 0) = 0 [pid 5059] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5059] write(3, "1000", 4executing program ) = 4 [pid 5059] close(3) = 0 [pid 5059] write(1, "executing program\n", 18) = 18 [pid 5059] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, NULL) = 0 [pid 5059] sched_setscheduler(0, SCHED_FIFO, [7]) = 0 [pid 5059] memfd_create("syzkaller", 0) = 3 [pid 5059] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff7a2800000 [pid 5059] 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 5059] munmap(0x7ff7a2800000, 138412032) = 0 [pid 5059] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5059] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5059] close(3) = 0 [pid 5059] close(4) = 0 [pid 5059] mkdir("./file0", 0777) = 0 [ 156.291083][ T5059] loop0: detected capacity change from 0 to 32768 [ 156.423125][ T5059] bcachefs (loop0): mounting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,nojournal_transaction_names [ 156.437600][ T5059] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 156.530709][ T5059] bcachefs (loop0): alloc_read... done [ 156.536572][ T5059] bcachefs (loop0): stripes_read... done [ 156.542764][ T5059] bcachefs (loop0): snapshots_read... done [ 156.559473][ T5059] bcachefs (loop0): journal_replay... done [ 156.565677][ T5059] bcachefs (loop0): resume_logged_ops... done [ 156.572289][ T5059] bcachefs (loop0): going read-write [pid 5059] mount("/dev/loop0", "./file0", "bcachefs", 0, "") = 0 [pid 5059] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5059] chdir("./file0") = 0 [pid 5059] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5059] ioctl(4, LOOP_CLR_FD) = 0 [pid 5059] close(4) = 0 [ 156.584048][ T5059] bcachefs (loop0): done starting filesystem [pid 5059] openat(AT_FDCWD, "./file1", O_RDWR|O_TRUNC|O_APPEND|0x8) = 4 [pid 5059] exit_group(0) = ? [pid 5059] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5059, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=75 /* 0.75 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 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 5071 attached , child_tidptr=0x55558edcf650) = 5071 [pid 5071] set_robust_list(0x55558edcf660, 24) = 0 [pid 5071] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5071] setpgid(0, 0) = 0 [pid 5071] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5071] write(3, "1000", 4) = 4 [pid 5071] close(3) = 0 executing program [pid 5071] write(1, "executing program\n", 18) = 18 [pid 5071] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, NULL) = 0 [pid 5071] sched_setscheduler(0, SCHED_FIFO, [7]) = 0 [ 156.677494][ T5059] syz-executor332 (5059) used greatest stack depth: 1608 bytes left [pid 5071] memfd_create("syzkaller", 0) = 3 [pid 5071] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff7a2800000 [ 156.901657][ T5067] ===================================================== [ 156.908923][ T5067] BUG: KMSAN: uninit-value in bch2_alloc_v4_invalid+0x625/0x10f0 [ 156.916971][ T5067] bch2_alloc_v4_invalid+0x625/0x10f0 [ 156.922613][ T5067] bch2_bkey_val_invalid+0x24f/0x380 [ 156.928088][ T5067] validate_bset_keys+0x12d8/0x25d0 [ 156.933554][ T5067] validate_bset_for_write+0x1dd/0x340 [ 156.939217][ T5067] __bch2_btree_node_write+0x4777/0x67c0 [ 156.945118][ T5067] bch2_btree_node_write+0xa5/0x2e0 [ 156.950655][ T5067] __btree_node_flush+0x4d0/0x640 [ 156.955843][ T5067] bch2_btree_node_flush0+0x35/0x60 [ 156.961290][ T5067] journal_flush_pins+0xce6/0x1780 [ 156.966572][ T5067] __bch2_journal_reclaim+0xd88/0x1610 [ 156.972272][ T5067] bch2_journal_reclaim_thread+0x18e/0x760 [ 156.978519][ T5067] kthread+0x3e2/0x540 [ 156.983008][ T5067] ret_from_fork+0x6d/0x90 [ 156.987584][ T5067] ret_from_fork_asm+0x1a/0x30 [ 156.992598][ T5067] [ 156.995007][ T5067] Uninit was stored to memory at: [ 157.000314][ T5067] bch2_sort_keys+0x1f34/0x2cb0 [ 157.005353][ T5067] __bch2_btree_node_write+0x3acd/0x67c0 [ 157.011431][ T5067] bch2_btree_node_write+0xa5/0x2e0 [ 157.016823][ T5067] __btree_node_flush+0x4d0/0x640 [ 157.022087][ T5067] bch2_btree_node_flush0+0x35/0x60 [ 157.027451][ T5067] journal_flush_pins+0xce6/0x1780 [ 157.032800][ T5067] __bch2_journal_reclaim+0xd88/0x1610 [ 157.038432][ T5067] bch2_journal_reclaim_thread+0x18e/0x760 [ 157.044480][ T5067] kthread+0x3e2/0x540 [ 157.048723][ T5067] ret_from_fork+0x6d/0x90 [ 157.053360][ T5067] ret_from_fork_asm+0x1a/0x30 [ 157.058312][ T5067] [ 157.060801][ T5067] Uninit was created at: [ 157.065255][ T5067] __kmalloc_large_node+0x231/0x370 [ 157.070833][ T5067] __kmalloc_node+0xb10/0x10c0 [ 157.075755][ T5067] kvmalloc_node+0xc0/0x2d0 [ 157.080479][ T5067] bch2_btree_node_read_done+0x4e68/0x75e0 [ 157.086487][ T5067] btree_node_read_work+0x8a5/0x1eb0 [ 157.092067][ T5067] bch2_btree_node_read+0x3d42/0x4b50 [ 157.097811][ T5067] bch2_btree_root_read+0xa6c/0x13d0 [ 157.103362][ T5067] read_btree_roots+0x454/0xee0 [ 157.108375][ T5067] bch2_fs_recovery+0x7b6a/0x93e0 [ 157.113620][ T5067] bch2_fs_start+0x7b2/0xbd0 [ 157.118397][ T5067] bch2_fs_open+0x152a/0x15f0 [ 157.123362][ T5067] bch2_mount+0x90d/0x1d90 [ 157.127963][ T5067] legacy_get_tree+0x114/0x290 [ 157.132976][ T5067] vfs_get_tree+0xa7/0x570 [ 157.137597][ T5067] do_new_mount+0x71f/0x15e0 [ 157.142433][ T5067] path_mount+0x742/0x1f20 [ 157.147025][ T5067] __se_sys_mount+0x725/0x810 [ 157.151948][ T5067] __x64_sys_mount+0xe4/0x150 [ 157.156817][ T5067] x64_sys_call+0x2bf4/0x3b50 [ 157.161754][ T5067] do_syscall_64+0xcf/0x1e0 [ 157.166465][ T5067] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 157.172782][ T5067] [ 157.175198][ T5067] CPU: 1 PID: 5067 Comm: bch-reclaim/loo Not tainted 6.9.0-syzkaller-02707-g614da38e2f7a #0 [ 157.185491][ T5067] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 157.195741][ T5067] ===================================================== [ 157.203011][ T5067] Disabling lock debugging due to kernel taint [ 157.209266][ T5067] Kernel panic - not syncing: kmsan.panic set ... [ 157.215786][ T5067] CPU: 1 PID: 5067 Comm: bch-reclaim/loo Tainted: G B 6.9.0-syzkaller-02707-g614da38e2f7a #0 [ 157.227508][ T5067] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 157.237700][ T5067] Call Trace: [ 157.241082][ T5067] [ 157.244117][ T5067] dump_stack_lvl+0x216/0x2d0 [ 157.248999][ T5067] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 157.255002][ T5067] dump_stack+0x1e/0x30 [ 157.259367][ T5067] panic+0x4e2/0xcd0 [ 157.263602][ T5067] ? kmsan_get_metadata+0xf1/0x1d0 [ 157.268917][ T5067] kmsan_report+0x2d5/0x2e0 [ 157.273613][ T5067] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 157.279607][ T5067] ? kmsan_get_metadata+0x146/0x1d0 [ 157.284993][ T5067] ? __msan_warning+0x95/0x120 [ 157.289916][ T5067] ? bch2_alloc_v4_invalid+0x625/0x10f0 [ 157.295675][ T5067] ? bch2_bkey_val_invalid+0x24f/0x380 [pid 5071] 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 [ 157.301347][ T5067] ? validate_bset_keys+0x12d8/0x25d0 [ 157.306920][ T5067] ? validate_bset_for_write+0x1dd/0x340 [ 157.312767][ T5067] ? __bch2_btree_node_write+0x4777/0x67c0 [ 157.318872][ T5067] ? bch2_btree_node_write+0xa5/0x2e0 [ 157.324451][ T5067] ? __btree_node_flush+0x4d0/0x640 [ 157.329824][ T5067] ? bch2_btree_node_flush0+0x35/0x60 [ 157.335371][ T5067] ? journal_flush_pins+0xce6/0x1780 [ 157.340832][ T5067] ? __bch2_journal_reclaim+0xd88/0x1610 [ 157.346658][ T5067] ? bch2_journal_reclaim_thread+0x18e/0x760 [pid 5071] munmap(0x7ff7a2800000, 138412032) = 0 [pid 5071] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5071] ioctl(4, LOOP_SET_FD, 3) = -1 EBUSY (Device or resource busy) [pid 5071] ioctl(4, LOOP_CLR_FD) = 0 [ 157.352823][ T5067] ? kthread+0x3e2/0x540 [ 157.357260][ T5067] ? ret_from_fork+0x6d/0x90 [ 157.362028][ T5067] ? ret_from_fork_asm+0x1a/0x30 [ 157.367168][ T5067] ? kmsan_get_metadata+0x146/0x1d0 [ 157.372550][ T5067] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 157.378544][ T5067] ? kmsan_get_metadata+0x146/0x1d0 [ 157.383913][ T5067] ? kmsan_get_metadata+0x146/0x1d0 [ 157.389286][ T5067] ? kmsan_internal_set_shadow_origin+0x66/0xe0 [ 157.395759][ T5067] ? kmsan_get_metadata+0x146/0x1d0 [ 157.401135][ T5067] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 157.407128][ T5067] ? bch2_bkey_ptrs_invalid+0x250d/0x2d40 [ 157.413067][ T5067] ? kmsan_get_metadata+0x146/0x1d0 [ 157.418438][ T5067] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 157.424430][ T5067] __msan_warning+0x95/0x120 [ 157.429176][ T5067] bch2_alloc_v4_invalid+0x625/0x10f0 [ 157.434760][ T5067] ? kmsan_get_metadata+0x146/0x1d0 [ 157.440144][ T5067] ? __pfx_bch2_alloc_v4_invalid+0x10/0x10 [ 157.446161][ T5067] bch2_bkey_val_invalid+0x24f/0x380 [ 157.451672][ T5067] validate_bset_keys+0x12d8/0x25d0 [ 157.457125][ T5067] validate_bset_for_write+0x1dd/0x340 [ 157.462809][ T5067] __bch2_btree_node_write+0x4777/0x67c0 [ 157.468656][ T5067] ? __update_load_avg_cfs_rq+0x121/0x10e0 [ 157.474770][ T5067] bch2_btree_node_write+0xa5/0x2e0 [ 157.480211][ T5067] __btree_node_flush+0x4d0/0x640 [ 157.485414][ T5067] ? __btree_node_flush+0xd1/0x640 [ 157.490707][ T5067] ? __pfx_bch2_btree_node_flush0+0x10/0x10 [ 157.496781][ T5067] bch2_btree_node_flush0+0x35/0x60 [ 157.502165][ T5067] journal_flush_pins+0xce6/0x1780 [ 157.507508][ T5067] __bch2_journal_reclaim+0xd88/0x1610 [ 157.513167][ T5067] ? __try_to_del_timer_sync+0x3d3/0x420 [ 157.519055][ T5067] bch2_journal_reclaim_thread+0x18e/0x760 [ 157.525075][ T5067] kthread+0x3e2/0x540 [ 157.529331][ T5067] ? __pfx_bch2_journal_reclaim_thread+0x10/0x10 [ 157.535858][ T5067] ? __pfx_kthread+0x10/0x10 [ 157.540654][ T5067] ret_from_fork+0x6d/0x90 [ 157.545242][ T5067] ? __pfx_kthread+0x10/0x10 [ 157.550020][ T5067] ret_from_fork_asm+0x1a/0x30 [ 157.555001][ T5067] [ 157.558457][ T5067] Kernel Offset: disabled [ 157.562840][ T5067] Rebooting in 86400 seconds..