./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2244055521 <...> Warning: Permanently added '10.128.1.197' (ED25519) to the list of known hosts. execve("./syz-executor2244055521", ["./syz-executor2244055521"], 0x7fffed988450 /* 10 vars */) = 0 brk(NULL) = 0x555558596000 brk(0x555558596d00) = 0x555558596d00 arch_prctl(ARCH_SET_FS, 0x555558596380) = 0 set_tid_address(0x555558596650) = 5785 set_robust_list(0x555558596660, 24) = 0 rseq(0x555558596ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2244055521", 4096) = 28 getrandom("\x89\xed\xfb\xa7\x96\x2a\xf7\x33", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555558596d00 brk(0x5555585b7d00) = 0x5555585b7d00 brk(0x5555585b8000) = 0x5555585b8000 mprotect(0x7f6ed013f000, 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=0x555558596650) = 5786 ./strace-static-x86_64: Process 5786 attached [pid 5786] set_robust_list(0x555558596660, 24) = 0 [pid 5786] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5786] setpgid(0, 0) = 0 [pid 5786] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5786] write(3, "1000", 4) = 4 [pid 5786] close(3) = 0 [pid 5786] write(1, "executing program\n", 18executing program ) = 18 [pid 5786] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, NULL) = 0 [pid 5786] sched_setscheduler(0, SCHED_RR, [7]) = 0 [pid 5786] set_mempolicy(MPOL_BIND, [0x00000000008001], 2) = 0 [pid 5786] socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE) = 3 [pid 5786] memfd_create("syzkaller", 0) = 4 [pid 5786] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6ec7c00000 [pid 5786] write(4, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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 5786] munmap(0x7f6ec7c00000, 138412032) = 0 [pid 5786] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 5 [pid 5786] ioctl(5, LOOP_SET_FD, 4) = 0 [pid 5786] close(4) = 0 [pid 5786] close(5) = 0 [pid 5786] mkdir("./file1", 0777) = 0 [ 211.339812][ T5786] loop0: detected capacity change from 0 to 32768 [ 211.502038][ T5786] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,journal_flush_disabled,norecovery,nojournal_transaction_names,allocator_stuck_timeout=32767,nocow,no_data_io [ 211.525260][ T5786] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 211.592686][ T5786] bcachefs (loop0): accounting_read... done [ 211.599389][ T5786] bcachefs (loop0): alloc_read... done [ 211.605415][ T5786] bcachefs (loop0): stripes_read... done [ 211.611529][ T5786] bcachefs (loop0): snapshots_read... done [pid 5786] mount("/dev/loop0", "./file1", "bcachefs", MS_I_VERSION, "acl,direct_io,norecovery,shard_inode_numbers,journal_flush_disabled,norecovery,nocow,btree_node_mem_"...) = 0 [ 211.666080][ T5786] bcachefs (loop0): going read-write [ 211.685328][ T5796] ===================================================== [ 211.689469][ T5786] bcachefs (loop0): done starting filesystem [ 211.692906][ T5796] BUG: KMSAN: uninit-value in bch2_copygc+0x1d3f/0x58f0 [ 211.705699][ T5796] bch2_copygc+0x1d3f/0x58f0 [ 211.710517][ T5796] bch2_copygc_thread+0x7f7/0xfa0 [pid 5786] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 4 [pid 5786] chdir("./file1") = 0 [pid 5786] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 5 [ 211.716481][ T5796] kthread+0x3e2/0x540 [ 211.720826][ T5796] ret_from_fork+0x6d/0x90 [ 211.725832][ T5796] ret_from_fork_asm+0x1a/0x30 [ 211.730871][ T5796] [ 211.733444][ T5796] Local variable b205.i created at: [ 211.738787][ T5796] bch2_copygc+0x15b3/0x58f0 [ 211.743804][ T5796] bch2_copygc_thread+0x7f7/0xfa0 [ 211.749053][ T5796] [ 211.751547][ T5796] CPU: 0 UID: 0 PID: 5796 Comm: bch-copygc/loop Not tainted 6.12.0-rc6-syzkaller-00077-g2e1b3cc9d7f7 #0 [ 211.753003][ T5786] syz-executor224 (5786) used greatest stack depth: 4376 bytes left [ 211.763358][ T5796] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 211.781429][ T5796] ===================================================== [ 211.788772][ T5796] Disabling lock debugging due to kernel taint [ 211.795348][ T5796] Kernel panic - not syncing: kmsan.panic set ... [ 211.801964][ T5796] CPU: 0 UID: 0 PID: 5796 Comm: bch-copygc/loop Tainted: G B 6.12.0-rc6-syzkaller-00077-g2e1b3cc9d7f7 #0 [ 211.814850][ T5796] Tainted: [B]=BAD_PAGE [ 211.819161][ T5796] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 211.829433][ T5796] Call Trace: [ 211.832878][ T5796] [ 211.835963][ T5796] dump_stack_lvl+0x216/0x2d0 [ 211.840971][ T5796] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 211.847041][ T5796] dump_stack+0x1e/0x30 [ 211.851489][ T5796] panic+0x4e2/0xcf0 [ 211.855666][ T5796] ? kmsan_get_metadata+0x131/0x1c0 [ 211.861122][ T5796] kmsan_report+0x2c7/0x2d0 [pid 5786] ioctl(5, LOOP_CLR_FD) = 0 [pid 5786] close(5) = 0 [pid 5786] socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC) = 5 [pid 5786] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [pid 5786] +++ killed by SIGSEGV +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5786, si_uid=0, si_status=SIGSEGV, si_utime=6 /* 0.06 s */, si_stime=171 /* 1.71 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, child_tidptr=0x555558596650) = 5798 [ 211.865927][ T5796] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 211.871993][ T5796] ? __msan_warning+0x95/0x120 [ 211.877040][ T5796] ? bch2_copygc+0x1d3f/0x58f0 [ 211.882040][ T5796] ? bch2_copygc_thread+0x7f7/0xfa0 [ 211.887499][ T5796] ? kthread+0x3e2/0x540 [ 211.892023][ T5796] ? ret_from_fork+0x6d/0x90 [ 211.896851][ T5796] ? ret_from_fork_asm+0x1a/0x30 [ 211.902073][ T5796] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 211.908131][ T5796] ? kmsan_get_metadata+0x13e/0x1c0 ./strace-static-x86_64: Process 5798 attached [ 211.913568][ T5796] ? kmsan_internal_set_shadow_origin+0x69/0x100 [ 211.920202][ T5796] ? kmsan_get_metadata+0x13e/0x1c0 [ 211.925635][ T5796] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 211.931695][ T5796] ? _raw_spin_unlock_irqrestore+0x3f/0x60 [ 211.937783][ T5796] ? kmsan_get_metadata+0x13e/0x1c0 [ 211.943223][ T5796] ? kmsan_get_metadata+0x13e/0x1c0 [ 211.948659][ T5796] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 211.954706][ T5796] ? kmsan_get_metadata+0x13e/0x1c0 [ 211.960137][ T5796] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [pid 5798] set_robust_list(0x555558596660, 24) = 0 [pid 5798] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5798] setpgid(0, 0) = 0 [pid 5798] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5798] write(3, "1000", 4) = 4 [pid 5798] close(3) = 0 executing program [pid 5798] write(1, "executing program\n", 18) = 18 [pid 5798] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, NULL) = 0 [pid 5798] sched_setscheduler(0, SCHED_RR, [7]) = 0 [pid 5798] set_mempolicy(MPOL_BIND, [0x00000000008001], 2) = 0 [ 211.966195][ T5796] __msan_warning+0x95/0x120 [ 211.971070][ T5796] bch2_copygc+0x1d3f/0x58f0 [ 211.975917][ T5796] ? bch2_copygc+0x418/0x58f0 [ 211.980889][ T5796] ? bch2_copygc+0x418/0x58f0 [ 211.985846][ T5796] ? bch2_copygc+0x418/0x58f0 [ 211.990789][ T5796] bch2_copygc_thread+0x7f7/0xfa0 [ 211.996077][ T5796] ? bch2_copygc_thread+0x214/0xfa0 [ 212.001568][ T5796] kthread+0x3e2/0x540 [ 212.005912][ T5796] ? __pfx_bch2_copygc_thread+0x10/0x10 [ 212.011726][ T5796] ? __pfx_kthread+0x10/0x10 [ 212.016608][ T5796] ret_from_fork+0x6d/0x90 [ 212.021272][ T5796] ? __pfx_kthread+0x10/0x10 [ 212.026153][ T5796] ret_from_fork_asm+0x1a/0x30 [ 212.031308][ T5796] [ 212.034824][ T5796] Kernel Offset: disabled [ 212.039256][ T5796] Rebooting in 86400 seconds..