./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1651673872 <...> Warning: Permanently added '10.128.0.3' (ED25519) to the list of known hosts. execve("./syz-executor1651673872", ["./syz-executor1651673872"], 0x7ffe28ee01d0 /* 10 vars */) = 0 brk(NULL) = 0x555560999000 brk(0x555560999d00) = 0x555560999d00 arch_prctl(ARCH_SET_FS, 0x555560999380) = 0 set_tid_address(0x555560999650) = 5042 set_robust_list(0x555560999660, 24) = 0 rseq(0x555560999ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1651673872", 4096) = 28 getrandom("\xb5\x1d\xd3\xc7\x71\xb1\xaf\x9f", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555560999d00 brk(0x5555609bad00) = 0x5555609bad00 brk(0x5555609bb000) = 0x5555609bb000 mprotect(0x7f461d5e8000, 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=0x555560999650) = 5043 ./strace-static-x86_64: Process 5043 attached [pid 5043] set_robust_list(0x555560999660, 24) = 0 [pid 5043] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5043] setpgid(0, 0) = 0 [pid 5043] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5043] write(3, "1000", 4executing program ) = 4 [pid 5043] close(3) = 0 [pid 5043] write(1, "executing program\n", 18) = 18 [pid 5043] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, NULL) = 0 [pid 5043] sched_setscheduler(0, SCHED_FIFO, [7]) = 0 [pid 5043] memfd_create("syzkaller", 0) = 3 [pid 5043] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4615000000 [pid 5043] 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 5043] munmap(0x7f4615000000, 138412032) = 0 [pid 5043] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5043] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5043] close(3) = 0 [pid 5043] close(4) = 0 [pid 5043] mkdir("./file0", 0777) = 0 [ 183.427326][ T5043] loop0: detected capacity change from 0 to 32768 [ 183.562873][ T5043] bcachefs (loop0): mounting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,nojournal_transaction_names [ 183.577864][ T5043] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 183.701277][ T5043] bcachefs (loop0): alloc_read... done [ 183.707258][ T5043] bcachefs (loop0): stripes_read... done [ 183.713608][ T5043] bcachefs (loop0): snapshots_read... done [ 183.733222][ T5043] bcachefs (loop0): journal_replay... done [ 183.739475][ T5043] bcachefs (loop0): resume_logged_ops... done [ 183.746344][ T5043] bcachefs (loop0): going read-write [pid 5043] mount("/dev/loop0", "./file0", "bcachefs", 0, "") = 0 [pid 5043] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5043] chdir("./file0") = 0 [pid 5043] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5043] ioctl(4, LOOP_CLR_FD) = 0 [pid 5043] close(4) = 0 [ 183.759757][ T5043] bcachefs (loop0): done starting filesystem [pid 5043] openat(AT_FDCWD, "./file1", O_WRONLY|O_TRUNC|O_APPEND|0x8) = 4 [pid 5043] exit_group(0) = ? [pid 5043] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5043, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=100 /* 1.00 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 5056 attached , child_tidptr=0x555560999650) = 5056 [pid 5056] set_robust_list(0x555560999660, 24) = 0 [pid 5056] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5056] setpgid(0, 0) = 0 [pid 5056] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5056] write(3, "1000", 4) = 4 [ 183.847934][ T5043] syz-executor165 (5043) used greatest stack depth: 1848 bytes left [pid 5056] close(3executing program ) = 0 [pid 5056] write(1, "executing program\n", 18) = 18 [pid 5056] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, NULL) = 0 [pid 5056] sched_setscheduler(0, SCHED_FIFO, [7]) = 0 [pid 5056] memfd_create("syzkaller", 0) = 3 [pid 5056] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4615000000 [ 184.081834][ T5051] ===================================================== [ 184.089102][ T5051] BUG: KMSAN: uninit-value in bch2_alloc_v4_invalid+0x625/0x10f0 [ 184.097423][ T5051] bch2_alloc_v4_invalid+0x625/0x10f0 [ 184.103166][ T5051] bch2_bkey_val_invalid+0x24f/0x380 [ 184.108722][ T5051] validate_bset_keys+0x12d8/0x25d0 [ 184.114337][ T5051] validate_bset_for_write+0x1dd/0x340 [ 184.120054][ T5051] __bch2_btree_node_write+0x4777/0x67c0 [ 184.126054][ T5051] bch2_btree_node_write+0xa5/0x2e0 [ 184.131630][ T5051] __btree_node_flush+0x4d0/0x640 [ 184.136867][ T5051] bch2_btree_node_flush0+0x35/0x60 [ 184.142383][ T5051] journal_flush_pins+0xce6/0x1780 [ 184.147717][ T5051] __bch2_journal_reclaim+0xd88/0x1610 [ 184.153627][ T5051] bch2_journal_reclaim_thread+0x18e/0x760 [ 184.159679][ T5051] kthread+0x3e2/0x540 [ 184.164355][ T5051] ret_from_fork+0x6d/0x90 [ 184.168993][ T5051] ret_from_fork_asm+0x1a/0x30 [ 184.174124][ T5051] [ 184.176559][ T5051] Uninit was stored to memory at: [ 184.181993][ T5051] bch2_sort_keys+0x1f34/0x2cb0 [ 184.187101][ T5051] __bch2_btree_node_write+0x3acd/0x67c0 [ 184.193337][ T5051] bch2_btree_node_write+0xa5/0x2e0 [ 184.198810][ T5051] __btree_node_flush+0x4d0/0x640 [ 184.204179][ T5051] bch2_btree_node_flush0+0x35/0x60 [ 184.209650][ T5051] journal_flush_pins+0xce6/0x1780 [ 184.215110][ T5051] __bch2_journal_reclaim+0xd88/0x1610 [ 184.220898][ T5051] bch2_journal_reclaim_thread+0x18e/0x760 [ 184.227225][ T5051] kthread+0x3e2/0x540 [ 184.231652][ T5051] ret_from_fork+0x6d/0x90 [ 184.236280][ T5051] ret_from_fork_asm+0x1a/0x30 [ 184.241421][ T5051] [ 184.243853][ T5051] Uninit was created at: [ 184.248385][ T5051] __kmalloc_large_node+0x231/0x370 [ 184.253916][ T5051] __kmalloc_node+0xb10/0x10c0 [ 184.258880][ T5051] kvmalloc_node+0xc0/0x2d0 [ 184.263812][ T5051] bch2_btree_node_read_done+0x4e68/0x75e0 [ 184.269880][ T5051] btree_node_read_work+0x8a5/0x1eb0 [ 184.275662][ T5051] bch2_btree_node_read+0x3d42/0x4b50 [ 184.281629][ T5051] bch2_btree_root_read+0xa6c/0x13d0 [ 184.287188][ T5051] read_btree_roots+0x454/0xee0 [ 184.292390][ T5051] bch2_fs_recovery+0x7b6a/0x93e0 [ 184.297656][ T5051] bch2_fs_start+0x7b2/0xbd0 [ 184.302672][ T5051] bch2_fs_open+0x152a/0x15f0 [ 184.307630][ T5051] bch2_mount+0x90d/0x1d90 [ 184.312403][ T5051] legacy_get_tree+0x114/0x290 [ 184.317454][ T5051] vfs_get_tree+0xa7/0x570 [ 184.322282][ T5051] do_new_mount+0x71f/0x15e0 [ 184.327113][ T5051] path_mount+0x742/0x1f20 [ 184.331892][ T5051] __se_sys_mount+0x725/0x810 [ 184.336816][ T5051] __x64_sys_mount+0xe4/0x150 [ 184.341884][ T5051] x64_sys_call+0x2bf4/0x3b50 [ 184.346822][ T5051] do_syscall_64+0xcf/0x1e0 [ 184.351759][ T5051] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 184.358037][ T5051] [ 184.360493][ T5051] CPU: 1 PID: 5051 Comm: bch-reclaim/loo Not tainted 6.9.0-syzkaller-02707-g614da38e2f7a #0 [ 184.370927][ T5051] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 184.381885][ T5051] ===================================================== [ 184.388959][ T5051] Disabling lock debugging due to kernel taint [ 184.395405][ T5051] Kernel panic - not syncing: kmsan.panic set ... [ 184.401977][ T5051] CPU: 1 PID: 5051 Comm: bch-reclaim/loo Tainted: G B 6.9.0-syzkaller-02707-g614da38e2f7a #0 [ 184.413798][ T5051] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 184.424149][ T5051] Call Trace: [ 184.427588][ T5051] [ 184.430653][ T5051] dump_stack_lvl+0x216/0x2d0 [ 184.435599][ T5051] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 184.441660][ T5051] dump_stack+0x1e/0x30 [ 184.446074][ T5051] panic+0x4e2/0xcd0 [ 184.450228][ T5051] ? kmsan_get_metadata+0xf1/0x1d0 [ 184.455595][ T5051] kmsan_report+0x2d5/0x2e0 [ 184.460341][ T5051] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 184.466397][ T5051] ? kmsan_get_metadata+0x146/0x1d0 [ 184.471940][ T5051] ? __msan_warning+0x95/0x120 [ 184.476927][ T5051] ? bch2_alloc_v4_invalid+0x625/0x10f0 [ 184.482837][ T5051] ? bch2_bkey_val_invalid+0x24f/0x380 [ 184.488578][ T5051] ? validate_bset_keys+0x12d8/0x25d0 [ 184.494310][ T5051] ? validate_bset_for_write+0x1dd/0x340 [ 184.500235][ T5051] ? __bch2_btree_node_write+0x4777/0x67c0 [ 184.506378][ T5051] ? bch2_btree_node_write+0xa5/0x2e0 [ 184.512020][ T5051] ? __btree_node_flush+0x4d0/0x640 [ 184.517457][ T5051] ? bch2_btree_node_flush0+0x35/0x60 [ 184.523058][ T5051] ? journal_flush_pins+0xce6/0x1780 [ 184.528611][ T5051] ? __bch2_journal_reclaim+0xd88/0x1610 [ 184.534549][ T5051] ? bch2_journal_reclaim_thread+0x18e/0x760 [ 184.540792][ T5051] ? kthread+0x3e2/0x540 [ 184.545309][ T5051] ? ret_from_fork+0x6d/0x90 [ 184.550210][ T5051] ? ret_from_fork_asm+0x1a/0x30 [ 184.555419][ T5051] ? kmsan_get_metadata+0x146/0x1d0 [ 184.560935][ T5051] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 184.566984][ T5051] ? kmsan_get_metadata+0x146/0x1d0 [ 184.572551][ T5051] ? kmsan_get_metadata+0x146/0x1d0 [ 184.577978][ T5051] ? kmsan_internal_set_shadow_origin+0x66/0xe0 [ 184.584526][ T5051] ? kmsan_get_metadata+0x146/0x1d0 [ 184.590041][ T5051] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 184.596099][ T5051] ? bch2_bkey_ptrs_invalid+0x250d/0x2d40 [ 184.602465][ T5051] ? kmsan_get_metadata+0x146/0x1d0 [ 184.608069][ T5051] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 184.614157][ T5051] __msan_warning+0x95/0x120 [ 184.619076][ T5051] bch2_alloc_v4_invalid+0x625/0x10f0 [ 184.624822][ T5051] ? kmsan_get_metadata+0x146/0x1d0 [ 184.630265][ T5051] ? __pfx_bch2_alloc_v4_invalid+0x10/0x10 [ 184.636537][ T5051] bch2_bkey_val_invalid+0x24f/0x380 [ 184.642116][ T5051] validate_bset_keys+0x12d8/0x25d0 [ 184.647649][ T5051] validate_bset_for_write+0x1dd/0x340 [ 184.653569][ T5051] __bch2_btree_node_write+0x4777/0x67c0 [ 184.659473][ T5051] ? __update_load_avg_cfs_rq+0x121/0x10e0 [ 184.665813][ T5051] bch2_btree_node_write+0xa5/0x2e0 [ 184.671386][ T5051] __btree_node_flush+0x4d0/0x640 [ 184.676683][ T5051] ? __btree_node_flush+0xd1/0x640 [ 184.682127][ T5051] ? __pfx_bch2_btree_node_flush0+0x10/0x10 [ 184.688273][ T5051] bch2_btree_node_flush0+0x35/0x60 [ 184.693712][ T5051] journal_flush_pins+0xce6/0x1780 [ 184.699203][ T5051] __bch2_journal_reclaim+0xd88/0x1610 [ 184.704925][ T5051] ? __try_to_del_timer_sync+0x3d3/0x420 [ 184.710886][ T5051] bch2_journal_reclaim_thread+0x18e/0x760 [ 184.716998][ T5051] kthread+0x3e2/0x540 [ 184.721326][ T5051] ? __pfx_bch2_journal_reclaim_thread+0x10/0x10 [ 184.727925][ T5051] ? __pfx_kthread+0x10/0x10 [pid 5056] 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 [ 184.732766][ T5051] ret_from_fork+0x6d/0x90 [ 184.737408][ T5051] ? __pfx_kthread+0x10/0x10 [ 184.742274][ T5051] ret_from_fork_asm+0x1a/0x30 [ 184.747490][ T5051] [ 184.750966][ T5051] Kernel Offset: disabled [ 184.755384][ T5051] Rebooting in 86400 seconds..