./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2029587555 <...> Warning: Permanently added '10.128.0.12' (ED25519) to the list of known hosts. execve("./syz-executor2029587555", ["./syz-executor2029587555"], 0x7ffdfa5a5300 /* 10 vars */) = 0 brk(NULL) = 0x55558f4d2000 brk(0x55558f4d2d00) = 0x55558f4d2d00 arch_prctl(ARCH_SET_FS, 0x55558f4d2380) = 0 set_tid_address(0x55558f4d2650) = 5786 set_robust_list(0x55558f4d2660, 24) = 0 rseq(0x55558f4d2ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2029587555", 4096) = 28 getrandom("\xf5\x6e\x9b\x2a\xcc\x21\x6d\x04", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55558f4d2d00 brk(0x55558f4f3d00) = 0x55558f4f3d00 brk(0x55558f4f4000) = 0x55558f4f4000 mprotect(0x7fd836c0b000, 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=0x55558f4d2650) = 5787 ./strace-static-x86_64: Process 5787 attached [pid 5787] set_robust_list(0x55558f4d2660, 24) = 0 [pid 5787] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5787] setpgid(0, 0) = 0 [pid 5787] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5787] write(3, "1000", 4) = 4 [pid 5787] close(3executing program ) = 0 [pid 5787] write(1, "executing program\n", 18) = 18 [pid 5787] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, NULL) = 0 [pid 5787] sched_setscheduler(0, SCHED_RR, [7]) = 0 [pid 5787] socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE) = 3 [pid 5787] memfd_create("syzkaller", 0) = 4 [pid 5787] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd82e600000 [pid 5787] 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 5787] munmap(0x7fd82e600000, 138412032) = 0 [pid 5787] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 5 [pid 5787] ioctl(5, LOOP_SET_FD, 4) = 0 [pid 5787] close(4) = 0 [pid 5787] close(5) = 0 [pid 5787] mkdir("./file1", 0777) = 0 [ 215.484324][ T5787] loop0: detected capacity change from 0 to 32768 [ 215.660465][ T5787] 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 [ 215.684037][ T5787] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 215.749860][ T5787] bcachefs (loop0): accounting_read... done [ 215.756810][ T5787] bcachefs (loop0): alloc_read... done [ 215.762760][ T5787] bcachefs (loop0): stripes_read... done [ 215.769058][ T5787] bcachefs (loop0): snapshots_read... done [ 215.824821][ T5787] bcachefs (loop0): going read-write [ 215.844066][ T5797] ===================================================== [ 215.848304][ T5787] bcachefs (loop0): done starting filesystem [ 215.851305][ T5797] BUG: KMSAN: uninit-value in bch2_copygc+0x1d3f/0x58f0 [ 215.864585][ T5797] bch2_copygc+0x1d3f/0x58f0 [ 215.869419][ T5797] bch2_copygc_thread+0x7f7/0xfa0 [pid 5787] mount("/dev/loop0", "./file1", "bcachefs", MS_I_VERSION, "acl,direct_io,norecovery,shard_inode_numbers,journal_flush_disabled,norecovery,nocow,btree_node_mem_"...) = 0 [pid 5787] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 4 [pid 5787] chdir("./file1") = 0 [pid 5787] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 5 [pid 5787] ioctl(5, LOOP_CLR_FD) = 0 [pid 5787] close(5) = 0 [pid 5787] socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC) = 5 [pid 5787] ioctl(-1, SIOCGIFINDEX, NULL) = -1 EBADF (Bad file descriptor) [pid 5787] exit_group(0) = ? [pid 5787] +++ exited with 0 +++ [ 215.874904][ T5797] kthread+0x3e2/0x540 [ 215.879238][ T5797] ret_from_fork+0x6d/0x90 [ 215.884013][ T5797] ret_from_fork_asm+0x1a/0x30 [ 215.889048][ T5797] [ 215.891497][ T5797] Local variable b205.i created at: [ 215.895323][ T5787] syz-executor202 (5787) used greatest stack depth: 4376 bytes left [ 215.896892][ T5797] bch2_copygc+0x15b3/0x58f0 [ 215.910072][ T5797] bch2_copygc_thread+0x7f7/0xfa0 [ 215.915448][ T5797] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5787, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=166 /* 1.66 s */} --- openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = 0 close(3) = 0 [ 215.917928][ T5797] CPU: 1 UID: 0 PID: 5797 Comm: bch-copygc/loop Not tainted 6.12.0-rc6-syzkaller-00077-g2e1b3cc9d7f7 #0 [ 215.929538][ T5797] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 215.940098][ T5797] ===================================================== [ 215.947308][ T5797] Disabling lock debugging due to kernel taint [ 215.953715][ T5797] Kernel panic - not syncing: kmsan.panic set ... [ 215.960333][ T5797] CPU: 1 UID: 0 PID: 5797 Comm: bch-copygc/loop Tainted: G B 6.12.0-rc6-syzkaller-00077-g2e1b3cc9d7f7 #0 [ 215.973207][ T5797] Tainted: [B]=BAD_PAGE [ 215.977513][ T5797] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 215.987774][ T5797] Call Trace: [ 215.991209][ T5797] [ 215.994290][ T5797] dump_stack_lvl+0x216/0x2d0 [ 215.999270][ T5797] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 216.005314][ T5797] dump_stack+0x1e/0x30 [ 216.009743][ T5797] panic+0x4e2/0xcf0 [ 216.013996][ T5797] ? kmsan_get_metadata+0x131/0x1c0 [ 216.019446][ T5797] kmsan_report+0x2c7/0x2d0 [ 216.024262][ T5797] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 216.030303][ T5797] ? __msan_warning+0x95/0x120 [ 216.035358][ T5797] ? bch2_copygc+0x1d3f/0x58f0 [ 216.040344][ T5797] ? bch2_copygc_thread+0x7f7/0xfa0 [ 216.045783][ T5797] ? kthread+0x3e2/0x540 [ 216.050297][ T5797] ? ret_from_fork+0x6d/0x90 [ 216.055130][ T5797] ? ret_from_fork_asm+0x1a/0x30 [ 216.060365][ T5797] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 216.066420][ T5797] ? kmsan_get_metadata+0x13e/0x1c0 [ 216.071954][ T5797] ? kmsan_internal_set_shadow_origin+0x69/0x100 [ 216.078582][ T5797] ? kmsan_get_metadata+0x13e/0x1c0 [ 216.084005][ T5797] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 216.090071][ T5797] ? _raw_spin_unlock_irqrestore+0x3f/0x60 [ 216.096166][ T5797] ? kmsan_get_metadata+0x13e/0x1c0 [ 216.101607][ T5797] ? kmsan_get_metadata+0x13e/0x1c0 [ 216.107039][ T5797] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 216.113099][ T5797] ? kmsan_get_metadata+0x13e/0x1c0 [ 216.118523][ T5797] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 216.124578][ T5797] __msan_warning+0x95/0x120 [ 216.129464][ T5797] bch2_copygc+0x1d3f/0x58f0 [ 216.134308][ T5797] ? bch2_copygc+0x418/0x58f0 [ 216.139253][ T5797] ? bch2_copygc+0x418/0x58f0 [ 216.144189][ T5797] ? bch2_copygc+0x418/0x58f0 [ 216.149123][ T5797] bch2_copygc_thread+0x7f7/0xfa0 [ 216.154395][ T5797] ? bch2_copygc_thread+0x214/0xfa0 [ 216.159875][ T5797] kthread+0x3e2/0x540 [ 216.164211][ T5797] ? __pfx_bch2_copygc_thread+0x10/0x10 [ 216.169998][ T5797] ? __pfx_kthread+0x10/0x10 [ 216.174855][ T5797] ret_from_fork+0x6d/0x90 [ 216.179497][ T5797] ? __pfx_kthread+0x10/0x10 [ 216.184351][ T5797] ret_from_fork_asm+0x1a/0x30 [ 216.189407][ T5797] [ 216.192934][ T5797] Kernel Offset: disabled [ 216.197355][ T5797] Rebooting in 86400 seconds..