./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2695627792 <...> Warning: Permanently added '10.128.1.84' (ED25519) to the list of known hosts. execve("./syz-executor2695627792", ["./syz-executor2695627792"], 0x7fff5bea87e0 /* 10 vars */) = 0 brk(NULL) = 0x555571e11000 brk(0x555571e11d00) = 0x555571e11d00 arch_prctl(ARCH_SET_FS, 0x555571e11380) = 0 set_tid_address(0x555571e11650) = 5851 set_robust_list(0x555571e11660, 24) = 0 rseq(0x555571e11ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2695627792", 4096) = 28 getrandom("\xea\x84\x95\xd9\xc7\xba\x93\x78", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555571e11d00 brk(0x555571e32d00) = 0x555571e32d00 brk(0x555571e33000) = 0x555571e33000 mprotect(0x7fa8892bf000, 16384, PROT_READ) = 0 mmap(0x1ffffffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffffffff000 mmap(0x200000000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x200000000000 mmap(0x200001000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x200001000000 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x555571e11650) = 5852 ./strace-static-x86_64: Process 5852 attached [pid 5851] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5852] set_robust_list(0x555571e11660, 24) = 0 ./strace-static-x86_64: Process 5853 attached [pid 5851] <... clone resumed>, child_tidptr=0x555571e11650) = 5853 [pid 5851] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5853] set_robust_list(0x555571e11660, 24) = 0 ./strace-static-x86_64: Process 5854 attached [pid 5852] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5851] <... clone resumed>, child_tidptr=0x555571e11650) = 5854 [pid 5851] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5852] <... openat resumed>) = 3 [pid 5853] openat(AT_FDCWD, "/dev/loop1", O_RDWR./strace-static-x86_64: Process 5855 attached [pid 5854] set_robust_list(0x555571e11660, 24 [pid 5853] <... openat resumed>) = 3 [pid 5852] ioctl(3, LOOP_CLR_FD [pid 5851] <... clone resumed>, child_tidptr=0x555571e11650) = 5855 [pid 5855] set_robust_list(0x555571e11660, 24 [pid 5854] <... set_robust_list resumed>) = 0 [pid 5853] ioctl(3, LOOP_CLR_FD [pid 5851] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5855] <... set_robust_list resumed>) = 0 [pid 5854] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5852] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5855] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5853] <... ioctl resumed>) = -1 ENXIO (No such device or address) ./strace-static-x86_64: Process 5856 attached [pid 5854] <... openat resumed>) = 3 [pid 5853] close(3 [pid 5852] close(3 [pid 5856] set_robust_list(0x555571e11660, 24 [pid 5855] <... openat resumed>) = 3 [pid 5854] ioctl(3, LOOP_CLR_FD [pid 5853] <... close resumed>) = 0 [pid 5852] <... close resumed>) = 0 [pid 5856] <... set_robust_list resumed>) = 0 [pid 5856] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5853] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5851] <... clone resumed>, child_tidptr=0x555571e11650) = 5856 [pid 5855] ioctl(3, LOOP_CLR_FD [pid 5854] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5855] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5852] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5857 attached [pid 5854] close(3 [pid 5855] close(3 [pid 5854] <... close resumed>) = 0 [pid 5856] <... openat resumed>) = 3 [pid 5855] <... close resumed>) = 0 [pid 5854] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5859 attached [pid 5856] ioctl(3, LOOP_CLR_FD [pid 5855] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5858 attached [pid 5857] set_robust_list(0x555571e11660, 24 [pid 5856] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5853] <... clone resumed>, child_tidptr=0x555571e11650) = 5857 ./strace-static-x86_64: Process 5860 attached [pid 5857] <... set_robust_list resumed>) = 0 [pid 5858] set_robust_list(0x555571e11660, 24 [pid 5856] close(3) = 0 [pid 5858] <... set_robust_list resumed>) = 0 [pid 5857] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5856] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5852] <... clone resumed>, child_tidptr=0x555571e11650) = 5858 [pid 5860] set_robust_list(0x555571e11660, 24 [pid 5859] set_robust_list(0x555571e11660, 24 [pid 5858] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5857] <... prctl resumed>) = 0 ./strace-static-x86_64: Process 5861 attached [pid 5860] <... set_robust_list resumed>) = 0 [pid 5859] <... set_robust_list resumed>) = 0 [pid 5858] <... prctl resumed>) = 0 [pid 5857] setpgid(0, 0 [pid 5855] <... clone resumed>, child_tidptr=0x555571e11650) = 5860 [pid 5860] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5859] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5858] setpgid(0, 0 [pid 5857] <... setpgid resumed>) = 0 [pid 5860] <... prctl resumed>) = 0 [pid 5858] <... setpgid resumed>) = 0 [pid 5859] <... prctl resumed>) = 0 [pid 5857] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5854] <... clone resumed>, child_tidptr=0x555571e11650) = 5859 [pid 5859] setpgid(0, 0 [pid 5858] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5859] <... setpgid resumed>) = 0 [pid 5859] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5857] <... openat resumed>) = 3 [pid 5858] <... openat resumed>) = 3 [pid 5861] set_robust_list(0x555571e11660, 24 [pid 5860] setpgid(0, 0 [pid 5859] <... openat resumed>) = 3 [pid 5858] write(3, "1000", 4 [pid 5857] write(3, "1000", 4 [pid 5856] <... clone resumed>, child_tidptr=0x555571e11650) = 5861 [pid 5861] <... set_robust_list resumed>) = 0 [pid 5860] <... setpgid resumed>) = 0 [pid 5858] <... write resumed>) = 4 [pid 5857] <... write resumed>) = 4 [pid 5859] write(3, "1000", 4 [pid 5860] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5859] <... write resumed>) = 4 [pid 5858] close(3 [pid 5857] close(3 [pid 5859] close(3) = 0 [pid 5858] <... close resumed>) = 0 [pid 5857] <... close resumed>) = 0 [pid 5858] write(1, "executing program\n", 18 [pid 5857] write(1, "executing program\n", 18 [pid 5858] <... write resumed>) = 18 [pid 5857] <... write resumed>) = 18 [pid 5859] write(1, "executing program\n", 18) = 18 [pid 5857] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, [pid 5859] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, [pid 5858] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, [pid 5859] <... prlimit64 resumed>NULL) = 0 [pid 5859] sched_setscheduler(0, SCHED_RR, [8]) = 0 executing program executing program executing program [pid 5859] memfd_create("syzkaller", 0) = 3 [pid 5859] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa880e00000 [pid 5861] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5860] <... openat resumed>) = 3 [pid 5859] 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 [pid 5858] <... prlimit64 resumed>NULL) = 0 [pid 5857] <... prlimit64 resumed>NULL) = 0 [pid 5861] <... prctl resumed>) = 0 [pid 5860] write(3, "1000", 4 [pid 5861] setpgid(0, 0 [pid 5860] <... write resumed>) = 4 [pid 5858] sched_setscheduler(0, SCHED_RR, [8] [pid 5857] sched_setscheduler(0, SCHED_RR, [8] [pid 5861] <... setpgid resumed>) = 0 [pid 5860] close(3 [pid 5858] <... sched_setscheduler resumed>) = 0 [pid 5857] <... sched_setscheduler resumed>) = 0 [pid 5861] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXECexecuting program [pid 5860] <... close resumed>) = 0 [pid 5858] memfd_create("syzkaller", 0 [pid 5857] memfd_create("syzkaller", 0 [pid 5861] <... openat resumed>) = 3 [pid 5860] write(1, "executing program\n", 18 [pid 5858] <... memfd_create resumed>) = 3 [pid 5857] <... memfd_create resumed>) = 3 [pid 5861] write(3, "1000", 4 [pid 5860] <... write resumed>) = 18 [pid 5858] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5857] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5861] <... write resumed>) = 4 [pid 5860] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, [pid 5858] <... mmap resumed>) = 0x7fa880e00000 [pid 5857] <... mmap resumed>) = 0x7fa880e00000 [pid 5861] close(3 [pid 5860] <... prlimit64 resumed>NULL) = 0 [pid 5859] <... write resumed>) = 16777216 [pid 5858] 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 [pid 5859] munmap(0x7fa880e00000, 138412032 [pid 5857] 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 [pid 5861] <... close resumed>) = 0 executing program [pid 5860] sched_setscheduler(0, SCHED_RR, [8] [pid 5859] <... munmap resumed>) = 0 [pid 5858] <... write resumed>) = 16777216 [pid 5861] write(1, "executing program\n", 18 [pid 5860] <... sched_setscheduler resumed>) = 0 [pid 5859] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5858] munmap(0x7fa880e00000, 138412032 [pid 5861] <... write resumed>) = 18 [pid 5860] memfd_create("syzkaller", 0 [pid 5859] <... openat resumed>) = 4 [pid 5858] <... munmap resumed>) = 0 [pid 5861] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, [pid 5860] <... memfd_create resumed>) = 3 [pid 5859] ioctl(4, LOOP_SET_FD, 3 [pid 5858] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5861] <... prlimit64 resumed>NULL) = 0 [ 90.228388][ T5859] loop2: detected capacity change from 0 to 32768 [pid 5860] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5859] <... ioctl resumed>) = 0 [pid 5858] <... openat resumed>) = 4 [pid 5860] <... mmap resumed>) = 0x7fa880e00000 [pid 5859] close(3 [ 90.360047][ T5858] loop0: detected capacity change from 0 to 32768 [ 90.412426][ T5857] loop1: detected capacity change from 0 to 32768 [pid 5858] ioctl(4, LOOP_SET_FD, 3 [pid 5861] sched_setscheduler(0, SCHED_RR, [8] [pid 5860] 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 [pid 5859] <... close resumed>) = 0 [pid 5857] <... write resumed>) = 16777216 [pid 5859] close(4 [pid 5858] <... ioctl resumed>) = 0 [pid 5857] munmap(0x7fa880e00000, 138412032 [pid 5859] <... close resumed>) = 0 [pid 5858] close(3 [pid 5857] <... munmap resumed>) = 0 [pid 5859] mkdir("./file1", 0777 [pid 5858] <... close resumed>) = 0 [pid 5857] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5859] <... mkdir resumed>) = 0 [pid 5858] close(4 [pid 5857] <... openat resumed>) = 4 [pid 5859] mount("/dev/loop2", "./file1", "bcachefs", MS_RDONLY|MS_SILENT|MS_POSIXACL|MS_I_VERSION, "metadata_checksum=none,no_data_io,errors=continue,inline_data,ratelimit_errors,nochanges,nocow,ratel"... [pid 5858] <... close resumed>) = 0 [pid 5857] ioctl(4, LOOP_SET_FD, 3 [pid 5858] mkdir("./file1", 0777 [pid 5857] <... ioctl resumed>) = 0 [pid 5858] <... mkdir resumed>) = -1 EEXIST (File exists) [pid 5857] close(3 [pid 5858] mount("/dev/loop0", "./file1", "bcachefs", MS_RDONLY|MS_SILENT|MS_POSIXACL|MS_I_VERSION, "metadata_checksum=none,no_data_io,errors=continue,inline_data,ratelimit_errors,nochanges,nocow,ratel"... [pid 5857] <... close resumed>) = 0 [pid 5857] close(4) = 0 [pid 5857] mkdir("./file1", 0777) = -1 EEXIST (File exists) [pid 5857] mount("/dev/loop1", "./file1", "bcachefs", MS_RDONLY|MS_SILENT|MS_POSIXACL|MS_I_VERSION, "metadata_checksum=none,no_data_io,errors=continue,inline_data,ratelimit_errors,nochanges,nocow,ratel"... [pid 5861] <... sched_setscheduler resumed>) = 0 [pid 5861] memfd_create("syzkaller", 0) = 3 [pid 5861] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa880e00000 [ 90.590127][ T5859] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nochanges,nojournal_transaction_names,read_only,nocow,no_data_io [ 90.590155][ T5859] allowing incompatible features above 0.0: (unknown version) [ 90.590167][ T5859] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 90.632843][ T5859] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 90.641969][ T5859] bcachefs (loop2): invalid journal entry, version=1.7: mi_btree_bitmap type=clock in superblock: bad rw, fixing [ 90.654743][ T5859] bcachefs (loop2): invalid bkey in superblock btree=xattrs level=1: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 0 crc: c_size 1 size 1 offset 0 nonce 0 csum none 12010b:10004000b compress none [ 90.654770][ T5859] has non ptr field, deleting [ 90.684685][ T5859] bcachefs (loop2): invalid journal entry, version=1.7: mi_btree_bitmap type=blacklist in superblock: invalid journal seq blacklist entry: bad size, fixing [ 90.700510][ T5859] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 90.708712][ T5859] bcachefs (loop2): Version upgrade required: [ 90.708712][ T5859] Version upgrade from 0.29: snapshot_trees to 1.7: mi_btree_bitmap incomplete [ 90.708712][ T5859] Doing incompatible version upgrade from 0.29: snapshot_trees to 1.28: inode_has_case_insensitive [pid 5861] 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 [pid 5860] <... write resumed>) = 16777216 [pid 5861] <... write resumed>) = 16777216 [pid 5860] munmap(0x7fa880e00000, 138412032 [pid 5861] munmap(0x7fa880e00000, 138412032 [pid 5860] <... munmap resumed>) = 0 [ 90.708712][ T5859] running recovery passes: check_allocations,check_extents_to_backpointers,check_snapshots,check_subvols,check_inodes,check_dirents,set_fs_needs_rebalance [ 90.780373][ T5859] bcachefs (loop2): error reading btree root btree=alloc level=0: btree_node_read_error, fixing [ 90.792556][ T5859] bcachefs (loop2): btree node read error at btree subvolumes level 0/0 [ 90.792600][ T5859] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key 0:0:738816 durability: 1 ptr: 0:35:0 gen 0 [ 90.792616][ T5859] loop2 node offset 0/16: incorrect min_key: got POS_MIN should be 0:0:738816 [ 90.792628][ T5859] loop2 btree validate error [ 90.792637][ T5859] flagging btree subvolumes lost data [ 90.792647][ T5859] running recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 90.792660][ T5859] ret btree_node_read_err_bad_node [ 90.792712][ T5858] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nochanges,nojournal_transaction_names,read_only,nocow,no_data_io [ 90.801392][ T5859] bcachefs (loop2): error reading btree root btree=subvolumes level=0: btree_node_read_error, fixing [ 90.815240][ T5858] allowing incompatible features above 0.0: (unknown version) [ 90.830633][ T5859] bcachefs (loop2): check_topology... [ 90.834537][ T5858] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 90.844919][ T5859] bcachefs (loop2): btree root subvolumes unreadable, must recover from scan [ 90.849673][ T5858] bcachefs (loop0): Using encoding defined by superblock: utf8-12.1.0 [ 90.869835][ T5859] bcachefs (loop2): running recovery pass scan_for_btree_nodes (1), currently at check_topology (2) - rewinding [ 90.880570][ T5858] bcachefs (loop0): invalid journal entry, version=1.7: mi_btree_bitmap type=clock in superblock: bad rw, fixing [ 90.888133][ T5859] bcachefs (loop2): bch2_check_root(): error restart_recovery [ 90.894054][ T5858] bcachefs (loop0): invalid bkey in superblock btree=xattrs level=1: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 0 crc: c_size 1 size 1 offset 0 nonce 0 csum none 12010b:10004000b compress none [ 90.907848][ T5859] bcachefs (loop2): check_topology(): error restart_recovery [ 90.916601][ T5858] has non ptr field, deleting [pid 5861] <... munmap resumed>) = 0 [pid 5860] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5861] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5860] <... openat resumed>) = 4 [pid 5861] <... openat resumed>) = 4 [pid 5860] ioctl(4, LOOP_SET_FD, 3 [ 90.917029][ T5858] bcachefs (loop0): invalid journal entry, version=1.7: mi_btree_bitmap type=blacklist in superblock: invalid journal seq blacklist entry: bad size, fixing [ 90.924826][ T5859] bcachefs (loop2): scan_for_btree_nodes... [ 91.008885][ T5858] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 91.022973][ T5858] bcachefs (loop0): Version upgrade required: [ 91.022973][ T5858] Version upgrade from 0.29: snapshot_trees to 1.7: mi_btree_bitmap incomplete [ 91.022973][ T5858] Doing incompatible version upgrade from 0.29: snapshot_trees to 1.28: inode_has_case_insensitive [ 91.022973][ T5858] running recovery passes: check_allocations,check_extents_to_backpointers,check_snapshots,check_subvols,check_inodes,check_dirents,set_fs_needs_rebalance [ 91.079568][ T5858] bcachefs (loop0): error reading btree root btree=alloc level=0: btree_node_read_error, fixing [ 91.091477][ T5860] loop3: detected capacity change from 0 to 32768 [ 91.093215][ T5861] loop4: detected capacity change from 0 to 32768 [ 91.122027][ T5857] bcachefs (loop1): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nochanges,nojournal_transaction_names,read_only,nocow,no_data_io [pid 5861] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5860] <... ioctl resumed>) = 0 [pid 5861] close(3 [pid 5860] close(3 [pid 5861] <... close resumed>) = 0 [pid 5860] <... close resumed>) = 0 [pid 5861] close(4 [pid 5860] close(4 [pid 5861] <... close resumed>) = 0 [pid 5860] <... close resumed>) = 0 [pid 5861] mkdir("./file1", 0777 [pid 5860] mkdir("./file1", 0777 [pid 5861] <... mkdir resumed>) = -1 EEXIST (File exists) [pid 5860] <... mkdir resumed>) = -1 EEXIST (File exists) [pid 5861] mount("/dev/loop4", "./file1", "bcachefs", MS_RDONLY|MS_SILENT|MS_POSIXACL|MS_I_VERSION, "metadata_checksum=none,no_data_io,errors=continue,inline_data,ratelimit_errors,nochanges,nocow,ratel"... [ 91.122053][ T5857] allowing incompatible features above 0.0: (unknown version) [ 91.122065][ T5857] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 91.168451][ T5857] bcachefs (loop1): Using encoding defined by superblock: utf8-12.1.0 [ 91.180022][ T5857] bcachefs (loop1): invalid journal entry, version=1.7: mi_btree_bitmap type=clock in superblock: bad rw, fixing [ 91.194452][ T5857] bcachefs (loop1): invalid bkey in superblock btree=xattrs level=1: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 0 crc: c_size 1 size 1 offset 0 nonce 0 csum none 12010b:10004000b compress none [ 91.194480][ T5857] has non ptr field, deleting [ 91.227581][ T5858] bcachefs (loop0): btree node read error at btree subvolumes level 0/0 [ 91.227609][ T5858] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key 0:0:738816 durability: 1 ptr: 0:35:0 gen 0 [ 91.227625][ T5858] loop0 node offset 0/16: incorrect min_key: got POS_MIN should be 0:0:738816 [ 91.227638][ T5858] loop0 btree validate error [ 91.227647][ T5858] flagging btree subvolumes lost data [ 91.227657][ T5858] running recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 91.227670][ T5858] ret btree_node_read_err_bad_node [ 91.227874][ T5858] bcachefs (loop0): error reading btree root btree=subvolumes level=0: btree_node_read_error, fixing [ 91.297417][ T5857] bcachefs (loop1): invalid journal entry, version=1.7: mi_btree_bitmap type=blacklist in superblock: invalid journal seq blacklist entry: bad size, fixing [ 91.307153][ T5858] bcachefs (loop0): check_topology... [ 91.313207][ T5857] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 91.313550][ T5858] bcachefs (loop0): btree root subvolumes unreadable, must recover from scan [ 91.318828][ T5857] bcachefs (loop1): Version upgrade required: [ 91.318828][ T5857] Version upgrade from 0.29: snapshot_trees to 1.7: mi_btree_bitmap incomplete [ 91.318828][ T5857] Doing incompatible version upgrade from 0.29: snapshot_trees to 1.28: inode_has_case_insensitive [ 91.318828][ T5857] running recovery passes: check_allocations,check_extents_to_backpointers,check_snapshots,check_subvols,check_inodes,check_dirents,set_fs_needs_rebalance [ 91.326809][ T5858] bcachefs (loop0): running recovery pass scan_for_btree_nodes (1), currently at check_topology (2) - rewinding [ 91.382169][ T5857] bcachefs (loop1): error reading btree root btree=alloc level=0: btree_node_read_error, fixing [ 91.388695][ T5858] bcachefs (loop0): bch2_check_root(): error restart_recovery [ 91.401023][ T5857] bcachefs (loop1): btree node read error at btree subvolumes level 0/0 [ 91.406897][ T5858] bcachefs (loop0): check_topology(): error restart_recovery [ 91.415206][ T5857] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key 0:0:738816 durability: 1 ptr: 0:35:0 gen 0 [ 91.415225][ T5857] loop1 node offset 0/16: incorrect min_key: got POS_MIN should be 0:0:738816 [ 91.422698][ T5858] bcachefs (loop0): scan_for_btree_nodes... [ 91.436463][ T5857] loop1 btree validate error [ 91.456400][ T5857] flagging btree subvolumes lost data [ 91.462458][ T5857] running recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 91.472436][ T5857] ret btree_node_read_err_bad_node [ 91.478044][ T5857] bcachefs (loop1): error reading btree root btree=subvolumes level=0: btree_node_read_error, fixing [ 91.493452][ T5857] bcachefs (loop1): check_topology... [ 91.493941][ T5857] bcachefs (loop1): btree root subvolumes unreadable, must recover from scan [ 91.500485][ T5861] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nochanges,nojournal_transaction_names,read_only,nocow,no_data_io [ 91.508254][ T5857] bcachefs (loop1): running recovery pass scan_for_btree_nodes (1), currently at check_topology (2) - rewinding [ 91.527959][ T5861] allowing incompatible features above 0.0: (unknown version) [ 91.527976][ T5861] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 91.528007][ T5861] bcachefs (loop4): Using encoding defined by superblock: utf8-12.1.0 [ 91.528680][ T5861] bcachefs (loop4): invalid journal entry, version=1.7: mi_btree_bitmap type=clock in superblock: bad rw, fixing [ 91.539939][ T5857] bcachefs (loop1): bch2_check_root(): error restart_recovery [ 91.548139][ T5861] bcachefs (loop4): invalid bkey in superblock btree=xattrs level=1: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 0 crc: c_size 1 size 1 offset 0 nonce 0 csum none 12010b:10004000b compress none [ 91.561885][ T5857] bcachefs (loop1): check_topology(): error restart_recovery [ 91.570040][ T5861] has non ptr field, deleting [ 91.581935][ T5857] bcachefs (loop1): scan_for_btree_nodes... [ 91.590187][ T5861] bcachefs (loop4): invalid journal entry, version=1.7: mi_btree_bitmap type=blacklist in superblock: invalid journal seq blacklist entry: bad size, fixing [ 91.648066][ T5861] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 91.657293][ T5861] bcachefs (loop4): Version upgrade required: [ 91.657293][ T5861] Version upgrade from 0.29: snapshot_trees to 1.7: mi_btree_bitmap incomplete [ 91.657293][ T5861] Doing incompatible version upgrade from 0.29: snapshot_trees to 1.28: inode_has_case_insensitive [ 91.657293][ T5861] running recovery passes: check_allocations,check_extents_to_backpointers,check_snapshots,check_subvols,check_inodes,check_dirents,set_fs_needs_rebalance [ 91.668216][ T5859] bcachefs (loop2): btree node scan found 1 nodes after overwrites [ 91.706928][ T5859] done [ 91.709783][ T5859] bcachefs (loop2): check_topology... [ 91.710229][ T5859] bcachefs (loop2): btree root subvolumes unreadable, must recover from scan [ 91.716820][ T5861] bcachefs (loop4): error reading btree root btree=alloc level=0: btree_node_read_error, fixing [ 91.724794][ T5859] bcachefs (loop2): no nodes found for btree subvolumes, continuing [ 91.740420][ T5861] bcachefs (loop4): btree node read error at btree subvolumes level 0/0 [ 91.744499][ T5859] done [ 91.751735][ T5861] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key 0:0:738816 durability: 1 ptr: 0:35:0 gen 0 [ 91.754416][ T5859] bcachefs (loop2): accounting_read... [ 91.768222][ T5861] loop4 node offset 0/16: incorrect min_key: got POS_MIN should be 0:0:738816 [ 91.768243][ T5861] loop4 btree validate error [ 91.768252][ T5861] flagging btree subvolumes lost data [ 91.768262][ T5861] running recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 91.768274][ T5861] ret btree_node_read_err_bad_node [ 91.768521][ T5861] bcachefs (loop4): error reading btree root btree=subvolumes level=0: btree_node_read_error, fixing [ 91.812343][ T5860] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nochanges,nojournal_transaction_names,read_only,nocow,no_data_io [ 91.839253][ T5860] allowing incompatible features above 0.0: (unknown version) [ 91.839532][ T5861] bcachefs (loop4): check_topology... [ 91.846954][ T5860] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 91.846990][ T5860] bcachefs (loop3): Using encoding defined by superblock: utf8-12.1.0 [ 91.847294][ T5860] bcachefs (loop3): invalid journal entry, version=1.7: mi_btree_bitmap type=clock in superblock: bad rw, fixing [ 91.852906][ T5861] bcachefs (loop4): btree root subvolumes unreadable, must recover from scan [ 91.867222][ T5860] bcachefs (loop3): invalid bkey in superblock btree=xattrs level=1: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 0 crc: c_size 1 size 1 offset 0 nonce 0 csum none 12010b:10004000b compress none [ 91.875020][ T5861] bcachefs (loop4): running recovery pass scan_for_btree_nodes (1), currently at check_topology (2) - rewinding [ 91.886900][ T5860] has non ptr field, deleting [ 91.887318][ T5860] bcachefs (loop3): invalid journal entry, version=1.7: mi_btree_bitmap type=blacklist in superblock: invalid journal seq blacklist entry: bad size, fixing [ 91.895838][ T5861] bcachefs (loop4): bch2_check_root(): error restart_recovery [ 91.920684][ T5860] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 91.932484][ T5861] bcachefs (loop4): check_topology(): error restart_recovery [ 91.937577][ T5860] bcachefs (loop3): Version upgrade required: [ 91.937577][ T5860] Version upgrade from 0.29: snapshot_trees to 1.7: mi_btree_bitmap incomplete [ 91.937577][ T5860] Doing incompatible version upgrade from 0.29: snapshot_trees to 1.28: inode_has_case_insensitive [ 91.937577][ T5860] running recovery passes: check_allocations,check_extents_to_backpointers,check_snapshots,check_subvols,check_inodes,check_dirents,set_fs_needs_rebalance [ 91.953094][ T5861] bcachefs (loop4): scan_for_btree_nodes... [ 91.982121][ T5860] bcachefs (loop3): error reading btree root btree=alloc level=0: btree_node_read_error, fixing [ 92.036062][ T5859] done [ 92.036447][ T5860] bcachefs (loop3): btree node read error at btree subvolumes level 0/0 [ 92.038868][ T5859] bcachefs (loop2): alloc_read... done [ 92.048471][ T5860] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key 0:0:738816 durability: 1 ptr: 0:35:0 gen 0 [ 92.053263][ T5859] bcachefs (loop2): snapshots_read... [ 92.067552][ T5860] loop3 node offset 0/16: incorrect min_key: got POS_MIN should be 0:0:738816 [ 92.068259][ T5859] done [ 92.072969][ T5860] loop3 btree validate error [ 92.072982][ T5860] flagging btree subvolumes lost data [ 92.082045][ T5859] bcachefs (loop2): check_allocations... [ 92.085328][ T5860] running recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 92.092410][ T5859] bcachefs (loop2): bucket 0:34 data type user ptr gen 0 missing in alloc btree [ 92.095280][ T5860] ret btree_node_read_err_bad_node [ 92.100950][ T5859] while marking u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:34:0 gen 0, fixing [ 92.111070][ T5860] bcachefs (loop3): error reading btree root btree=subvolumes level=0: btree_node_read_error, fixing [ 92.122260][ T5859] bcachefs (loop2): bucket 0:27 data type btree ptr gen 0 missing in alloc btree [ 92.149936][ T5860] bcachefs (loop3): check_topology... [ 92.154410][ T5859] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 92.157198][ T5859] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 92.164126][ T5860] bcachefs (loop3): btree root subvolumes unreadable, must recover from scan [ 92.169028][ T5859] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 92.184685][ T5860] bcachefs (loop3): running recovery pass scan_for_btree_nodes (1), currently at check_topology (2) - rewinding [ 92.195091][ T5859] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 92.202483][ T5860] bcachefs (loop3): bch2_check_root(): error restart_recovery [ 92.217900][ T5859] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 92.219457][ T5859] bcachefs (loop2): bucket 0:32 data type btree ptr gen 0 missing in alloc btree [ 92.229789][ T5860] bcachefs (loop3): check_topology(): error restart_recovery [ 92.239112][ T5859] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ebb8d5a9e3463bdb written 16 min_key POS_MIN durability: 1 ptr: 0:32:0 gen 0, fixing [ 92.246621][ T5860] bcachefs (loop3): scan_for_btree_nodes... [ 92.263440][ T5859] bcachefs (loop2): bucket 0:28 data type btree ptr gen 0 missing in alloc btree [ 92.309352][ T5859] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 28f61e078e70b95c written 16 min_key POS_MIN durability: 1 ptr: 0:28:0 gen 0, fixing [ 92.315797][ T10] cfg80211: failed to load regulatory.db [ 92.326885][ T5859] bcachefs (loop2): bucket 0:37 data type btree ptr gen 0 missing in alloc btree [ 92.339876][ T5859] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 4a8b0fa43a9980a6 written 24 min_key POS_MIN durability: 1 ptr: 0:37:0 gen 0, fixing [ 92.356808][ T5859] bcachefs (loop2): bucket 0:42 data type btree ptr gen 0 missing in alloc btree [ 92.356859][ T5859] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1db8f60c84bb244c written 8 min_key POS_MIN durability: 1 ptr: 0:42:0 gen 0, fixing [ 92.391566][ T5859] done [ 92.395621][ T5859] bcachefs (loop2): going read-write [ 92.507595][ T5859] bcachefs (loop2): journal_replay... [ 92.527604][ T1343] bcachefs (loop2): bucket incorrectly unset in freespace btree [ 92.527638][ T1343] u64s 5 type deleted 0:31:0 len 0 ver 0, , continuing [ 92.546305][ T5860] bcachefs (loop3): btree node scan found 1 nodes after overwrites [ 92.546724][ T5860] done [ 92.546737][ T5860] bcachefs (loop3): check_topology... [ 92.547155][ T5860] bcachefs (loop3): btree root subvolumes unreadable, must recover from scan [ 92.547315][ T5860] bcachefs (loop3): no nodes found for btree subvolumes, continuing [ 92.548197][ T5860] done [ 92.548209][ T5860] bcachefs (loop3): accounting_read... done [ 92.549449][ T5860] bcachefs (loop3): alloc_read... done [ 92.549854][ T5860] bcachefs (loop3): snapshots_read... done [ 92.550261][ T5860] bcachefs (loop3): check_allocations... [ 92.551688][ T5857] bcachefs (loop1): btree node scan found 1 nodes after overwrites [ 92.551729][ T5860] bcachefs (loop3): bucket 0:34 data type user ptr gen 0 missing in alloc btree [ 92.551745][ T5860] while marking u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:34:0 gen 0, fixing [ 92.552083][ T5857] done [ 92.552095][ T5857] bcachefs (loop1): check_topology... [ 92.552502][ T5857] bcachefs (loop1): btree root subvolumes unreadable, must recover from scan [ 92.552623][ T5857] bcachefs (loop1): no nodes found for btree subvolumes, continuing [ 92.553002][ T5860] bcachefs (loop3): bucket 0:27 data type btree ptr gen 0 missing in alloc btree [ 92.553017][ T5860] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 92.553675][ T5857] done [ 92.553812][ T5857] bcachefs (loop1): accounting_read... [ 92.554794][ T5860] bcachefs (loop3): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 92.554812][ T5860] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 92.555906][ T5860] bcachefs (loop3): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 92.555922][ T5860] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 92.556476][ T5861] bcachefs (loop4): btree node scan found 1 nodes after overwrites [ 92.556869][ T5861] done [ 92.556881][ T5861] bcachefs (loop4): check_topology... [ 92.557116][ T5860] bcachefs (loop3): bucket 0:32 data type btree ptr gen 0 missing in alloc btree [ 92.557133][ T5860] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ebb8d5a9e3463bdb written 16 min_key POS_MIN durability: 1 ptr: 0:32:0 gen 0, fixing [ 92.557356][ T5861] bcachefs (loop4): btree root subvolumes unreadable, must recover from scan [ 92.557480][ T5861] bcachefs (loop4): no nodes found for btree subvolumes, continuing [ 92.558168][ T5860] bcachefs (loop3): bucket 0:28 data type btree ptr gen 0 missing in alloc btree [ 92.558184][ T5860] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 28f61e078e70b95c written 16 min_key POS_MIN durability: 1 ptr: 0:28:0 gen 0, fixing [ 92.558340][ T5861] done [ 92.558351][ T5861] bcachefs (loop4): accounting_read... [ 92.559239][ T5860] bcachefs (loop3): bucket 0:37 data type btree ptr gen 0 missing in alloc btree [ 92.559257][ T5860] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 4a8b0fa43a9980a6 written 24 min_key POS_MIN durability: 1 ptr: 0:37:0 gen 0, fixing [ 92.559507][ T5857] done [ 92.559518][ T5857] bcachefs (loop1): alloc_read... done [ 92.559904][ T5857] bcachefs (loop1): snapshots_read... done [ 92.560313][ T5857] bcachefs (loop1): check_allocations... [ 92.560473][ T5860] bcachefs (loop3): bucket 0:42 data type btree ptr gen 0 missing in alloc btree [ 92.560489][ T5860] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1db8f60c84bb244c written 8 min_key POS_MIN durability: 1 ptr: 0:42:0 gen 0, fixing [ 92.561558][ T5857] bcachefs (loop1): bucket 0:34 data type user ptr gen 0 missing in alloc btree [ 92.561574][ T5857] while marking u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:34:0 gen 0, fixing [ 92.562895][ T5857] bcachefs (loop1): bucket 0:27 data type btree ptr gen 0 missing in alloc btree [ 92.562911][ T5857] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 92.564834][ T5857] bcachefs (loop1): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 92.564851][ T5857] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 92.566040][ T5857] bcachefs (loop1): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 92.566056][ T5857] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 92.567276][ T5857] bcachefs (loop1): bucket 0:32 data type btree ptr gen 0 missing in alloc btree [ 92.567292][ T5857] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ebb8d5a9e3463bdb written 16 min_key POS_MIN durability: 1 ptr: 0:32:0 gen 0, fixing [ 92.568373][ T5857] bcachefs (loop1): bucket 0:28 data type btree ptr gen 0 missing in alloc btree [ 92.568389][ T5857] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 28f61e078e70b95c written 16 min_key POS_MIN durability: 1 ptr: 0:28:0 gen 0, fixing [ 92.569603][ T5857] bcachefs (loop1): bucket 0:37 data type btree ptr gen 0 missing in alloc btree [ 92.569624][ T5857] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 4a8b0fa43a9980a6 written 24 min_key POS_MIN durability: 1 ptr: 0:37:0 gen 0, fixing [ 92.570823][ T5857] bcachefs (loop1): bucket 0:42 data type btree ptr gen 0 missing in alloc btree [ 92.570839][ T5857] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1db8f60c84bb244c written 8 min_key POS_MIN durability: 1 ptr: 0:42:0 gen 0, fixing [ 92.571638][ T5860] done [ 92.572682][ T5860] bcachefs (loop3): going read-write [ 92.579054][ T5857] done [ 92.580140][ T5857] bcachefs (loop1): going read-write [ 92.581632][ T5861] done [ 92.581646][ T5861] bcachefs (loop4): alloc_read... done [ 92.582019][ T5861] bcachefs (loop4): snapshots_read... done [ 92.582453][ T5861] bcachefs (loop4): check_allocations... [ 92.585680][ T5861] bcachefs (loop4): bucket 0:34 data type user ptr gen 0 missing in alloc btree [ 92.585700][ T5861] while marking u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:34:0 gen 0, fixing [ 92.586939][ T5861] bcachefs (loop4): bucket 0:27 data type btree ptr gen 0 missing in alloc btree [ 92.586955][ T5861] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 92.588621][ T5861] bcachefs (loop4): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 92.588638][ T5861] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 92.589727][ T5861] bcachefs (loop4): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 92.589742][ T5861] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 92.591021][ T5861] bcachefs (loop4): bucket 0:32 data type btree ptr gen 0 missing in alloc btree [ 92.591037][ T5861] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ebb8d5a9e3463bdb written 16 min_key POS_MIN durability: 1 ptr: 0:32:0 gen 0, fixing [ 92.592069][ T5861] bcachefs (loop4): bucket 0:28 data type btree ptr gen 0 missing in alloc btree [ 92.592085][ T5861] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 28f61e078e70b95c written 16 min_key POS_MIN durability: 1 ptr: 0:28:0 gen 0, fixing [ 92.593346][ T5861] bcachefs (loop4): bucket 0:37 data type btree ptr gen 0 missing in alloc btree [ 92.593363][ T5861] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 4a8b0fa43a9980a6 written 24 min_key POS_MIN durability: 1 ptr: 0:37:0 gen 0, fixing [ 92.594794][ T5861] bcachefs (loop4): bucket 0:42 data type btree ptr gen 0 missing in alloc btree [ 92.594811][ T5861] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1db8f60c84bb244c written 8 min_key POS_MIN durability: 1 ptr: 0:42:0 gen 0, fixing [ 92.602935][ T5858] bcachefs (loop0): btree node scan found 1 nodes after overwrites [ 92.603342][ T5858] done [ 92.603354][ T5858] bcachefs (loop0): check_topology... [ 92.603388][ T5861] done [ 92.603807][ T5858] bcachefs (loop0): btree root subvolumes unreadable, must recover from scan [ 92.603938][ T5858] bcachefs (loop0): no nodes found for btree subvolumes, continuing [ 92.604664][ T5861] bcachefs (loop4): going read-write [ 92.604852][ T5858] done [ 92.604863][ T5858] bcachefs (loop0): accounting_read... done [ 92.624799][ T5858] bcachefs (loop0): alloc_read... done [ 92.625184][ T5858] bcachefs (loop0): snapshots_read... done [ 93.090737][ T5857] bcachefs (loop1): journal_replay... [ 93.103207][ T5858] bcachefs (loop0): check_allocations... [ 93.104970][ T5858] bcachefs (loop0): bucket 0:34 data type user ptr gen 0 missing in alloc btree [ 93.128508][ T12] bcachefs (loop1): bucket incorrectly unset in freespace btree [ 93.137583][ T5858] while marking u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:34:0 gen 0, fixing [ 93.139172][ T5858] bcachefs (loop0): bucket 0:27 data type btree ptr gen 0 missing in alloc btree [ 93.162736][ T12] u64s 5 type deleted 0:31:0 len 0 ver 0, , continuing [ 93.173311][ T5861] bcachefs (loop4): journal_replay... [ 93.179439][ T5858] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 93.196788][ T49] bcachefs (loop4): bucket incorrectly unset in freespace btree [ 93.200337][ T5858] bcachefs (loop0): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 93.201093][ T49] u64s 5 type deleted 0:31:0 len 0 ver 0, , continuing [ 93.206688][ T5858] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 93.207967][ T5858] bcachefs (loop0): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 93.290630][ T5860] bcachefs (loop3): journal_replay... [ 93.295246][ T5858] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 93.296705][ T5858] bcachefs (loop0): bucket 0:32 data type btree ptr gen 0 missing in alloc btree [ 93.348324][ T12] bcachefs (loop2): bucket incorrectly unset in freespace btree [ 93.354443][ T5858] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ebb8d5a9e3463bdb written 16 min_key POS_MIN durability: 1 ptr: 0:32:0 gen 0, fixing [ 93.371127][ T1343] bcachefs (loop1): bucket incorrectly unset in freespace btree [ 93.380404][ T5858] bcachefs (loop0): bucket 0:28 data type btree ptr gen 0 missing in alloc btree [ 93.395847][ T200] bcachefs (loop4): bucket incorrectly unset in freespace btree [ 93.404184][ T5858] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 28f61e078e70b95c written 16 min_key POS_MIN durability: 1 ptr: 0:28:0 gen 0, fixing [ 93.425735][ T59] bcachefs (loop3): bucket incorrectly unset in freespace btree [ 93.428617][ T5858] bcachefs (loop0): bucket 0:37 data type btree ptr gen 0 missing in alloc btree [ 93.430007][ T59] u64s 5 type deleted 0:31:0 len 0 ver 0, , continuing [ 93.435461][ T5858] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 4a8b0fa43a9980a6 written 24 min_key POS_MIN durability: 1 ptr: 0:37:0 gen 0, fixing [ 93.436872][ T5858] bcachefs (loop0): bucket 0:42 data type btree ptr gen 0 missing in alloc btree [ 93.470970][ T1343] u64s 5 type deleted 0:43:0 len 0 ver 0, , continuing [ 93.475182][ T5858] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1db8f60c84bb244c written 8 min_key POS_MIN durability: 1 ptr: 0:42:0 gen 0, fixing [ 93.484296][ T5858] done [ 93.491195][ T200] u64s 5 type deleted 0:43:0 len 0 ver 0, , continuing [ 93.493406][ T5858] bcachefs (loop0): going read-write [ 93.505693][ T12] u64s 5 type deleted 0:43:0 len 0 ver 0, , continuing [ 93.604693][ T5858] bcachefs (loop0): journal_replay... [ 93.637526][ T59] bcachefs (loop3): bucket incorrectly unset in freespace btree [ 93.661196][ T36] bcachefs (loop0): bucket incorrectly unset in freespace btree [ 93.690718][ T59] u64s 5 type deleted 0:43:0 len 0 ver 0, , continuing [ 93.696149][ T36] u64s 5 type deleted 0:31:0 len 0 ver 0, , continuing [ 93.717467][ T5857] done [ 93.722639][ T5861] done [ 93.729999][ T5857] bcachefs (loop1): check_alloc_info... [ 93.734435][ T5861] bcachefs (loop4): check_alloc_info... [ 93.751842][ T5857] bcachefs (loop1): hole in alloc btree missing in freespace btree [ 93.760659][ T5861] bcachefs (loop4): hole in alloc btree missing in freespace btree [ 93.766092][ T5857] device 0 buckets 25-27, fixing [ 93.781461][ T5861] device 0 buckets 25-27, fixing [ 93.796376][ T5857] bcachefs (loop1): hole in alloc btree missing in freespace btree [ 93.807963][ T5861] bcachefs (loop4): hole in alloc btree missing in freespace btree [ 93.809119][ T5857] device 0 buckets 29-31, fixing [ 93.816673][ T5861] device 0 buckets 29-31, fixing [ 93.824772][ T5857] bcachefs (loop1): hole in alloc btree missing in freespace btree [ 93.831650][ T5861] bcachefs (loop4): hole in alloc btree missing in freespace btree [ 93.838447][ T5857] device 0 buckets 33-34, fixing [ 93.841190][ T5861] device 0 buckets 33-34, fixing [ 93.844302][ T5857] bcachefs (loop1): hole in alloc btree missing in freespace btree [ 93.849845][ T5861] bcachefs (loop4): hole in alloc btree missing in freespace btree [ 93.855172][ T5857] device 0 buckets 35-37, fixing [ 93.855450][ T5857] bcachefs (loop1): hole in alloc btree missing in freespace btree [ 93.863061][ T5861] device 0 buckets 35-37, fixing [ 93.871037][ T5857] device 0 buckets 39-41, fixing [ 93.876454][ T5861] bcachefs (loop4): hole in alloc btree missing in freespace btree [ 93.881509][ T5857] bcachefs (loop1): hole in alloc btree missing in freespace btree [ 93.889141][ T5861] device 0 buckets 39-41, fixing [ 93.889444][ T5861] bcachefs (loop4): hole in alloc btree missing in freespace btree [ 93.897168][ T5857] device 0 buckets 44-120, fixing [ 93.902277][ T5861] device 0 buckets 44-120, fixing [ 93.910045][ T5857] done [ 93.917932][ T5861] done [ 93.926329][ T5857] bcachefs (loop1): check_lrus... [ 93.930054][ T5861] bcachefs (loop4): check_lrus... [ 93.934866][ T5857] bcachefs (loop1): incorrect lru entry: lru fragmentation time 134217728 [ 93.942417][ T5861] bcachefs (loop4): incorrect lru entry: lru fragmentation time 134217728 [ 93.949804][ T5857] u64s 5 type set 18446462598867058688:6597069766690:0 len 0 ver 0 [ 93.954943][ T5861] u64s 5 type set 18446462598867058688:6597069766690:0 len 0 ver 0 [ 93.954958][ T5861] for u64s 5 type deleted 0:6597069766690:0 len 0 ver 0, fixing [ 93.956240][ T5861] done [ 93.962862][ T5857] for u64s 5 type deleted 0:6597069766690:0 len 0 ver 0, fixing [ 93.971900][ T5861] bcachefs (loop4): check_backpointers_to_extents... [ 93.974043][ T5857] done [ 93.983088][ T5861] done [ 93.990368][ T5857] bcachefs (loop1): check_backpointers_to_extents... [ 93.994817][ T5861] bcachefs (loop4): check_extents_to_backpointers... [ 94.004013][ T5857] done [ 94.008869][ T5861] bcachefs (loop4): scanning for missing backpointers in 3/128 buckets [ 94.014490][ T5857] bcachefs (loop1): check_extents_to_backpointers... [ 94.016229][ T5861] done [ 94.019428][ T5857] bcachefs (loop1): scanning for missing backpointers in 3/128 buckets [ 94.024499][ T5861] bcachefs (loop4): check_snapshots... [ 94.029122][ T5857] done [ 94.037564][ T5861] bcachefs (loop4): snapshot points to nonexistent subvolume: [ 94.037564][ T5861] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0 [ 94.046457][ T5857] bcachefs (loop1): check_snapshots... [ 94.053670][ T5861] bcachefs (loop4): check_snapshots(): error ENOENT_bkey_type_mismatch [ 94.062202][ T5857] bcachefs (loop1): snapshot points to nonexistent subvolume: [ 94.062202][ T5857] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0 [ 94.069796][ T5861] bcachefs (loop4): error in recovery: ENOENT_bkey_type_mismatch [ 94.072452][ T5857] bcachefs (loop1): check_snapshots(): error ENOENT_bkey_type_mismatch [ 94.080283][ T5861] emergency read only at seq 18 [ 94.087166][ T5857] bcachefs (loop1): error in recovery: ENOENT_bkey_type_mismatch [ 94.089830][ T5861] bcachefs (loop4): bch2_fs_start(): error starting filesystem ENOENT_bkey_type_mismatch [ 94.092560][ T5857] emergency read only at seq 18 [ 94.106044][ T5857] bcachefs (loop1): bch2_fs_start(): error starting filesystem ENOENT_bkey_type_mismatch [ 94.177282][ T5861] bcachefs (loop4): unclean shutdown complete, journal seq 18 [ 94.228945][ T36] bcachefs (loop0): bucket incorrectly unset in freespace btree [ 94.259077][ T36] u64s 5 type deleted 0:43:0 len 0 ver 0, , continuing [ 94.274251][ T5857] bcachefs (loop1): unclean shutdown complete, journal seq 18 [ 94.277868][ T5860] done [ 94.291268][ T5860] bcachefs (loop3): check_alloc_info... [ 94.292846][ T5860] bcachefs (loop3): hole in alloc btree missing in freespace btree [ 94.292887][ T5860] device 0 buckets 25-27, fixing [ 94.325868][ T5860] bcachefs (loop3): hole in alloc btree missing in freespace btree [ 94.325888][ T5860] device 0 buckets 29-31, fixing [ 94.339287][ T5860] bcachefs (loop3): hole in alloc btree missing in freespace btree [ 94.339305][ T5860] device 0 buckets 33-34, fixing [ 94.352788][ T5860] bcachefs (loop3): hole in alloc btree missing in freespace btree [ 94.352806][ T5860] device 0 buckets 35-37, fixing [ 94.366361][ T5860] bcachefs (loop3): hole in alloc btree missing in freespace btree [ 94.366379][ T5860] device 0 buckets 39-41, fixing [ 94.379781][ T5860] bcachefs (loop3): hole in alloc btree missing in freespace btree [ 94.379798][ T5860] device 0 buckets 44-120, fixing [ 94.395185][ T5860] done [ 94.401021][ T5860] bcachefs (loop3): check_lrus... [ 94.401673][ T5860] bcachefs (loop3): incorrect lru entry: lru fragmentation time 134217728 [ 94.401690][ T5860] u64s 5 type set 18446462598867058688:6597069766690:0 len 0 ver 0 [ 94.401703][ T5860] for u64s 5 type deleted 0:6597069766690:0 len 0 ver 0, fixing [ 94.413645][ T5859] done [ 94.416714][ T5860] done [ 94.424911][ T5859] bcachefs (loop2): check_alloc_info... [ 94.438801][ T5860] bcachefs (loop3): check_backpointers_to_extents... [ 94.441397][ T5859] bcachefs (loop2): hole in alloc btree missing in freespace btree [ 94.446816][ T5860] done [ 94.448043][ T5860] bcachefs (loop3): check_extents_to_backpointers... [ 94.456856][ T5859] device 0 buckets 25-27, fixing [ 94.463217][ T5860] bcachefs (loop3): scanning for missing backpointers in 3/128 buckets [ 94.482209][ T5859] bcachefs (loop2): hole in alloc btree missing in freespace btree [ 94.485648][ T5860] done [ 94.486802][ T5860] bcachefs (loop3): check_snapshots... [ 94.487133][ T5860] bcachefs (loop3): snapshot points to nonexistent subvolume: [ 94.487133][ T5860] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0 [ 94.487173][ T5860] bcachefs (loop3): check_snapshots(): error ENOENT_bkey_type_mismatch [ 94.487260][ T5860] bcachefs (loop3): error in recovery: ENOENT_bkey_type_mismatch [ 94.487272][ T5860] emergency read only at seq 18 [ 94.487451][ T5860] bcachefs (loop3): bch2_fs_start(): error starting filesystem ENOENT_bkey_type_mismatch [ 94.496411][ T5859] device 0 buckets 29-31, fixing [ 94.496776][ T5859] bcachefs (loop2): hole in alloc btree missing in freespace btree [ 94.499363][ T5860] bcachefs (loop3): unclean shutdown complete, journal seq 18 [ 94.504733][ T5859] device 0 buckets 33-34, fixing [ 94.505066][ T5859] bcachefs (loop2): hole in alloc btree missing in freespace btree [ 94.533399][ T5859] device 0 buckets 35-37, fixing [ 94.561531][ T5859] bcachefs (loop2): hole in alloc btree missing in freespace btree [ 94.603275][ T5859] device 0 buckets 39-41, fixing [pid 5860] mount("/dev/loop3", "./file1", "bcachefs", MS_RDONLY|MS_SILENT|MS_POSIXACL|MS_I_VERSION, "metadata_checksum=none,no_data_io,errors=continue,inline_data,ratelimit_errors,nochanges,nocow,ratel"... [pid 5857] <... mount resumed>) = -1 ENOENT (No such file or directory) [pid 5857] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5857] ioctl(3, LOOP_CLR_FD) = 0 [ 94.682934][ T12] bcachefs (loop2): bucket incorrectly unset in freespace btree [ 94.682955][ T12] u64s 5 type deleted 0:49:0 len 0 ver 0, , continuing [pid 5857] close(3 [pid 5861] <... mount resumed>) = -1 ENOENT (No such file or directory) [pid 5860] <... mount resumed>) = -1 ENOENT (No such file or directory) [pid 5861] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5860] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5856] kill(-5861, SIGKILL [pid 5861] <... openat resumed>) = ? [pid 5860] <... openat resumed>) = 3 [pid 5856] <... kill resumed>) = 0 [pid 5861] +++ killed by SIGKILL +++ [pid 5860] ioctl(3, LOOP_CLR_FD) = 0 [pid 5855] kill(-5860, SIGKILL [pid 5853] kill(-5857, SIGKILL [pid 5860] close(3) = ? [pid 5857] <... close resumed>) = ? [pid 5855] <... kill resumed>) = 0 [pid 5853] <... kill resumed>) = 0 [pid 5860] +++ killed by SIGKILL +++ [pid 5857] +++ killed by SIGKILL +++ [pid 5856] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5861, si_uid=0, si_status=SIGKILL, si_utime=5 /* 0.05 s */, si_stime=133 /* 1.33 s */} --- [pid 5854] kill(-5859, SIGKILL [pid 5856] kill(5861, SIGKILL [pid 5855] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5860, si_uid=0, si_status=SIGKILL, si_utime=8 /* 0.08 s */, si_stime=108 /* 1.08 s */} --- [pid 5854] <... kill resumed>) = 0 [pid 5853] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5857, si_uid=0, si_status=SIGKILL, si_utime=6 /* 0.06 s */, si_stime=146 /* 1.46 s */} --- [pid 5856] <... kill resumed>) = 0 [pid 5855] kill(5860, SIGKILL [pid 5854] kill(5859, SIGKILL [pid 5853] kill(5857, SIGKILL [pid 5855] <... kill resumed>) = 0 [pid 5854] <... kill resumed>) = 0 [pid 5853] <... kill resumed>) = 0 [pid 5856] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5855] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5856] ioctl(3, LOOP_CLR_FD) = 0 [pid 5855] <... openat resumed>) = 3 [pid 5856] close(3 [pid 5855] ioctl(3, LOOP_CLR_FD [pid 5853] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5855] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5853] <... openat resumed>) = 3 [pid 5853] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5853] close(3) = 0 [pid 5853] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5855] close(3) = 0 [pid 5855] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5920 attached [pid 5920] set_robust_list(0x555571e11660, 24 [pid 5855] <... clone resumed>, child_tidptr=0x555571e11650) = 5921 [pid 5853] <... clone resumed>, child_tidptr=0x555571e11650) = 5920 [pid 5920] <... set_robust_list resumed>) = 0 [ 94.708199][ T5857] bcachefs: bch2_fs_get_tree() error: ENOENT_bkey_type_mismatch [ 94.735000][ T5861] bcachefs: bch2_fs_get_tree() error: ENOENT_bkey_type_mismatch [pid 5920] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5920] setpgid(0, 0) = 0 [pid 5920] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 ./strace-static-x86_64: Process 5921 attached [pid 5852] kill(-5858, SIGKILL) = 0 [pid 5852] kill(5858, SIGKILL [pid 5921] set_robust_list(0x555571e11660, 24 [pid 5852] <... kill resumed>) = 0 [pid 5921] <... set_robust_list resumed>) = 0 [pid 5921] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5921] setpgid(0, 0) = 0 [pid 5921] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5921] write(3, "1000", 4) = 4 [pid 5921] close(3) = 0 executing program [pid 5921] write(1, "executing program\n", 18) = 18 [pid 5921] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, NULL) = 0 [pid 5921] sched_setscheduler(0, SCHED_RR, [8] [pid 5920] write(3, "1000", 4 [pid 5921] <... sched_setscheduler resumed>) = 0 [pid 5921] memfd_create("syzkaller", 0) = 3 [pid 5921] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa880e00000 [pid 5921] 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 [pid 5920] <... write resumed>) = 4 [pid 5920] close(3) = 0 executing program [pid 5920] write(1, "executing program\n", 18) = 18 [ 94.738546][ T5860] bcachefs: bch2_fs_get_tree() error: ENOENT_bkey_type_mismatch [ 94.786695][ T5861] syz-executor269 (5861) used greatest stack depth: 15848 bytes left [ 94.845652][ T5858] done [pid 5920] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, NULL) = 0 [pid 5920] sched_setscheduler(0, SCHED_RR, [8]) = 0 [pid 5920] memfd_create("syzkaller", 0) = 3 [pid 5920] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa880e00000 [pid 5921] <... write resumed>) = 16777216 [pid 5920] 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 [pid 5921] munmap(0x7fa880e00000, 138412032) = 0 [pid 5921] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5921] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5921] close(3) = 0 [pid 5921] close(4) = 0 [pid 5921] mkdir("./file1", 0777) = -1 EEXIST (File exists) [pid 5921] mount("/dev/loop3", "./file1", "bcachefs", MS_RDONLY|MS_SILENT|MS_POSIXACL|MS_I_VERSION, "metadata_checksum=none,no_data_io,errors=continue,inline_data,ratelimit_errors,nochanges,nocow,ratel"... [pid 5856] <... close resumed>) = 0 [pid 5856] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5923 attached [pid 5923] set_robust_list(0x555571e11660, 24) = 0 [pid 5923] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5920] <... write resumed>) = 16777216 [pid 5920] munmap(0x7fa880e00000, 138412032 [pid 5923] <... prctl resumed>) = 0 [pid 5856] <... clone resumed>, child_tidptr=0x555571e11650) = 5923 [pid 5923] setpgid(0, 0) = 0 [pid 5923] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5923] write(3, "1000", 4) = 4 [pid 5923] close(3) = 0 executing program [pid 5923] write(1, "executing program\n", 18) = 18 [pid 5923] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, NULL) = 0 [pid 5923] sched_setscheduler(0, SCHED_RR, [8]) = 0 [pid 5923] memfd_create("syzkaller", 0) = 3 [pid 5920] <... munmap resumed>) = 0 [pid 5923] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa880e00000 [pid 5920] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5920] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5920] close(3) = 0 [pid 5920] close(4) = 0 [pid 5920] mkdir("./file1", 0777) = -1 EEXIST (File exists) [ 94.845990][ T5858] bcachefs (loop0): check_alloc_info... [pid 5920] mount("/dev/loop1", "./file1", "bcachefs", MS_RDONLY|MS_SILENT|MS_POSIXACL|MS_I_VERSION, "metadata_checksum=none,no_data_io,errors=continue,inline_data,ratelimit_errors,nochanges,nocow,ratel"... [pid 5858] <... mount resumed>) = ? [pid 5858] +++ killed by SIGKILL +++ [pid 5852] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5858, si_uid=0, si_status=SIGKILL, si_utime=5 /* 0.05 s */, si_stime=155 /* 1.55 s */} --- [pid 5852] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5852] ioctl(3, LOOP_CLR_FD) = 0 [pid 5852] close(3 [pid 5923] 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 5923] munmap(0x7fa880e00000, 138412032) = 0 [pid 5923] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5923] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5923] close(3) = 0 [pid 5923] close(4) = 0 [pid 5923] mkdir("./file1", 0777) = -1 EEXIST (File exists) [ 94.847568][ T5858] bcachefs (loop0): hole in alloc btree missing in freespace btree [ 94.847585][ T5858] device 0 buckets 25-27, fixing [ 94.857766][ T5858] bcachefs (loop0): hole in alloc btree missing in freespace btree [ 94.857785][ T5858] device 0 buckets 29-31, fixing [ 94.858019][ T5858] bcachefs (loop0): hole in alloc btree missing in freespace btree [ 94.858032][ T5858] device 0 buckets 33-34, fixing [ 94.858236][ T5858] bcachefs (loop0): hole in alloc btree missing in freespace btree [pid 5923] mount("/dev/loop4", "./file1", "bcachefs", MS_RDONLY|MS_SILENT|MS_POSIXACL|MS_I_VERSION, "metadata_checksum=none,no_data_io,errors=continue,inline_data,ratelimit_errors,nochanges,nocow,ratel"... [pid 5854] openat(AT_FDCWD, "/sys/fs/fuse/connections", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5854] newfstatat(3, "", {st_mode=S_IFDIR|0755, st_size=0, ...}, AT_EMPTY_PATH) = 0 [pid 5854] getdents64(3, 0x555571e126f0 /* 2 entries */, 32768) = 48 [ 94.858249][ T5858] device 0 buckets 35-37, fixing [ 94.858473][ T5858] bcachefs (loop0): hole in alloc btree missing in freespace btree [ 94.858487][ T5858] device 0 buckets 39-41, fixing [ 94.858737][ T5858] bcachefs (loop0): hole in alloc btree missing in freespace btree [ 94.858750][ T5858] device 0 buckets 44-120, fixing [ 94.860820][ T5858] done [ 94.861151][ T5858] bcachefs (loop0): check_lrus... [ 94.861753][ T5858] bcachefs (loop0): incorrect lru entry: lru fragmentation time 134217728 [ 94.861769][ T5858] u64s 5 type set 18446462598867058688:6597069766690:0 len 0 ver 0 [ 94.861781][ T5858] for u64s 5 type deleted 0:6597069766690:0 len 0 ver 0, fixing [ 94.862390][ T5858] done [ 94.862642][ T5858] bcachefs (loop0): check_backpointers_to_extents... done [ 94.864402][ T5858] bcachefs (loop0): check_extents_to_backpointers... [ 94.865424][ T5858] bcachefs (loop0): scanning for missing backpointers in 3/128 buckets [ 94.865918][ T5858] done [ 94.866159][ T5858] bcachefs (loop0): check_snapshots... [ 94.866475][ T5858] bcachefs (loop0): snapshot points to nonexistent subvolume: [ 94.866475][ T5858] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0 [ 94.866515][ T5858] bcachefs (loop0): check_snapshots(): error ENOENT_bkey_type_mismatch [ 94.866599][ T5858] bcachefs (loop0): error in recovery: ENOENT_bkey_type_mismatch [ 94.866612][ T5858] emergency read only at seq 18 [ 94.866647][ T5858] bcachefs (loop0): bch2_fs_start(): error starting filesystem ENOENT_bkey_type_mismatch [ 94.901551][ T5858] bcachefs (loop0): unclean shutdown complete, journal seq 18 [ 94.902600][ T5860] syz-executor269 (5860) used greatest stack depth: 15592 bytes left [ 94.908111][ T5857] syz-executor269 (5857) used greatest stack depth: 15464 bytes left [ 95.284823][ T5921] loop3: detected capacity change from 0 to 32768 [ 95.462443][ T5921] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nochanges,nojournal_transaction_names,read_only,nocow,no_data_io [ 95.462471][ T5921] allowing incompatible features above 0.0: (unknown version) [ 95.462483][ T5921] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 95.462511][ T5921] bcachefs (loop3): Using encoding defined by superblock: utf8-12.1.0 [ 95.462802][ T5921] bcachefs (loop3): invalid journal entry, version=1.7: mi_btree_bitmap type=clock in superblock: bad rw, fixing [ 95.463270][ T5921] bcachefs (loop3): invalid bkey in superblock btree=xattrs level=1: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 0 crc: c_size 1 size 1 offset 0 nonce 0 csum none 12010b:10004000b compress none [ 95.463293][ T5921] has non ptr field, deleting [ 95.463659][ T5921] bcachefs (loop3): invalid journal entry, version=1.7: mi_btree_bitmap type=blacklist in superblock: invalid journal seq blacklist entry: bad size, fixing [ 95.463796][ T5921] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 95.463991][ T5921] bcachefs (loop3): Version upgrade required: [ 95.463991][ T5921] Version upgrade from 0.29: snapshot_trees to 1.7: mi_btree_bitmap incomplete [ 95.463991][ T5921] Doing incompatible version upgrade from 0.29: snapshot_trees to 1.28: inode_has_case_insensitive [ 95.463991][ T5921] running recovery passes: check_allocations,check_extents_to_backpointers,check_snapshots,check_subvols,check_inodes,check_dirents,set_fs_needs_rebalance [ 95.479349][ T5920] loop1: detected capacity change from 0 to 32768 [ 95.510926][ T5858] bcachefs: bch2_fs_get_tree() error: ENOENT_bkey_type_mismatch [ 95.566847][ T5921] bcachefs (loop3): error reading btree root btree=alloc level=0: btree_node_read_error, fixing [ 95.568295][ T5921] bcachefs (loop3): btree node read error at btree subvolumes level 0/0 [ 95.568313][ T5921] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key 0:0:738816 durability: 1 ptr: 0:35:0 gen 0 [ 95.568329][ T5921] loop3 node offset 0/16: incorrect min_key: got POS_MIN should be 0:0:738816 [ 95.568341][ T5921] loop3 btree validate error [ 95.568351][ T5921] flagging btree subvolumes lost data [ 95.568361][ T5921] running recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 95.568374][ T5921] ret btree_node_read_err_bad_node [ 95.568559][ T5921] bcachefs (loop3): error reading btree root btree=subvolumes level=0: btree_node_read_error, fixing [ 95.572669][ T5921] bcachefs (loop3): check_topology... [ 95.573084][ T5921] bcachefs (loop3): btree root subvolumes unreadable, must recover from scan [ 95.573168][ T5921] bcachefs (loop3): running recovery pass scan_for_btree_nodes (1), currently at check_topology (2) - rewinding [ 95.573202][ T5921] bcachefs (loop3): bch2_check_root(): error restart_recovery [ 95.573231][ T5921] bcachefs (loop3): check_topology(): error restart_recovery [ 95.573246][ T5921] bcachefs (loop3): scan_for_btree_nodes... [ 95.658575][ T5920] bcachefs (loop1): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nochanges,nojournal_transaction_names,read_only,nocow,no_data_io [pid 5854] getdents64(3, executing program 0x555571e126f0 /* 0 entries */, 32768) = 0 [pid 5852] <... close resumed>) = 0 [pid 5852] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5930 attached , child_tidptr=0x555571e11650) = 5930 [pid 5930] set_robust_list(0x555571e11660, 24) = 0 [pid 5930] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5930] setpgid(0, 0) = 0 [pid 5930] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5930] write(3, "1000", 4) = 4 [pid 5930] close(3) = 0 [pid 5930] write(1, "executing program\n", 18) = 18 [pid 5930] prlimit64(0, RLIMIT_RTPRIO, {rlim_cur=8, rlim_max=139}, NULL) = 0 [pid 5930] sched_setscheduler(0, SCHED_RR, [8]) = 0 [pid 5930] memfd_create("syzkaller", 0) = 3 [pid 5930] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa880e00000 [pid 5930] 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 5930] munmap(0x7fa880e00000, 138412032) = 0 [pid 5930] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [ 95.658604][ T5920] allowing incompatible features above 0.0: (unknown version) [ 95.658616][ T5920] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 95.658646][ T5920] bcachefs (loop1): Using encoding defined by superblock: utf8-12.1.0 [ 95.658925][ T5920] bcachefs (loop1): invalid journal entry, version=1.7: mi_btree_bitmap type=clock in superblock: bad rw, fixing [ 95.659453][ T5920] bcachefs (loop1): invalid bkey in superblock btree=xattrs level=1: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 0 crc: c_size 1 size 1 offset 0 nonce 0 csum none 12010b:10004000b compress none [ 95.659477][ T5920] has non ptr field, deleting [ 95.659779][ T5920] bcachefs (loop1): invalid journal entry, version=1.7: mi_btree_bitmap type=blacklist in superblock: invalid journal seq blacklist entry: bad size, fixing [ 95.659858][ T5920] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 95.660052][ T5920] bcachefs (loop1): Version upgrade required: [ 95.660052][ T5920] Version upgrade from 0.29: snapshot_trees to 1.7: mi_btree_bitmap incomplete [ 95.660052][ T5920] Doing incompatible version upgrade from 0.29: snapshot_trees to 1.28: inode_has_case_insensitive [ 95.660052][ T5920] running recovery passes: check_allocations,check_extents_to_backpointers,check_snapshots,check_subvols,check_inodes,check_dirents,set_fs_needs_rebalance [ 95.676829][ T5920] bcachefs (loop1): error reading btree root btree=alloc level=0: btree_node_read_error, fixing [ 95.678246][ T5920] bcachefs (loop1): btree node read error at btree subvolumes level 0/0 [ 95.678264][ T5920] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key 0:0:738816 durability: 1 ptr: 0:35:0 gen 0 [ 95.678280][ T5920] loop1 node offset 0/16: incorrect min_key: got POS_MIN should be 0:0:738816 [ 95.678292][ T5920] loop1 btree validate error [ 95.678302][ T5920] flagging btree subvolumes lost data [ 95.678312][ T5920] running recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 95.678325][ T5920] ret btree_node_read_err_bad_node [ 95.678520][ T5920] bcachefs (loop1): error reading btree root btree=subvolumes level=0: btree_node_read_error, fixing [ 95.683107][ T5920] bcachefs (loop1): check_topology... [ 95.683525][ T5920] bcachefs (loop1): btree root subvolumes unreadable, must recover from scan [ 95.683610][ T5920] bcachefs (loop1): running recovery pass scan_for_btree_nodes (1), currently at check_topology (2) - rewinding [ 95.683643][ T5920] bcachefs (loop1): bch2_check_root(): error restart_recovery [ 95.683673][ T5920] bcachefs (loop1): check_topology(): error restart_recovery [ 95.683768][ T5920] bcachefs (loop1): scan_for_btree_nodes... [ 95.765662][ T5923] loop4: detected capacity change from 0 to 32768 [ 95.826236][ T5923] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nochanges,nojournal_transaction_names,read_only,nocow,no_data_io [ 95.826260][ T5923] allowing incompatible features above 0.0: (unknown version) [ 95.826271][ T5923] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 95.826296][ T5923] bcachefs (loop4): Using encoding defined by superblock: utf8-12.1.0 [ 95.826632][ T5923] bcachefs (loop4): invalid journal entry, version=1.7: mi_btree_bitmap type=clock in superblock: bad rw, fixing [ 95.827106][ T5923] bcachefs (loop4): invalid bkey in superblock btree=xattrs level=1: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 0 crc: c_size 1 size 1 offset 0 nonce 0 csum none 12010b:10004000b compress none [ 95.827130][ T5923] has non ptr field, deleting [ 95.827430][ T5923] bcachefs (loop4): invalid journal entry, version=1.7: mi_btree_bitmap type=blacklist in superblock: invalid journal seq blacklist entry: bad size, fixing [ 95.827509][ T5923] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 95.827712][ T5923] bcachefs (loop4): Version upgrade required: [ 95.827712][ T5923] Version upgrade from 0.29: snapshot_trees to 1.7: mi_btree_bitmap incomplete [ 95.827712][ T5923] Doing incompatible version upgrade from 0.29: snapshot_trees to 1.28: inode_has_case_insensitive [ 95.827712][ T5923] running recovery passes: check_allocations,check_extents_to_backpointers,check_snapshots,check_subvols,check_inodes,check_dirents,set_fs_needs_rebalance [ 95.847209][ T5923] bcachefs (loop4): error reading btree root btree=alloc level=0: btree_node_read_error, fixing [ 95.848818][ T5923] bcachefs (loop4): btree node read error at btree subvolumes level 0/0 [ 95.848838][ T5923] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key 0:0:738816 durability: 1 ptr: 0:35:0 gen 0 [ 95.848853][ T5923] loop4 node offset 0/16: incorrect min_key: got POS_MIN should be 0:0:738816 [ 95.848864][ T5923] loop4 btree validate error [ 95.848873][ T5923] flagging btree subvolumes lost data [ 95.848883][ T5923] running recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 95.848895][ T5923] ret btree_node_read_err_bad_node [ 95.849075][ T5923] bcachefs (loop4): error reading btree root btree=subvolumes level=0: btree_node_read_error, fixing [ 95.854389][ T5923] bcachefs (loop4): check_topology... [ 95.854777][ T5923] bcachefs (loop4): btree root subvolumes unreadable, must recover from scan [ 95.854858][ T5923] bcachefs (loop4): running recovery pass scan_for_btree_nodes (1), currently at check_topology (2) - rewinding [ 95.854891][ T5923] bcachefs (loop4): bch2_check_root(): error restart_recovery [ 95.854917][ T5923] bcachefs (loop4): check_topology(): error restart_recovery [ 95.854931][ T5923] bcachefs (loop4): scan_for_btree_nodes... [ 95.860602][ T5921] bcachefs (loop3): btree node scan found 1 nodes after overwrites [ 96.322111][ T5930] loop0: detected capacity change from 0 to 32768 [ 96.329213][ T5921] done [ 96.337134][ T5859] bcachefs (loop2): hole in alloc btree missing in freespace btree [ 96.354967][ T5921] bcachefs (loop3): check_topology... [ 96.355393][ T5921] bcachefs (loop3): btree root subvolumes unreadable, must recover from scan [ 96.355522][ T5921] bcachefs (loop3): no nodes found for btree subvolumes, continuing [ 96.356437][ T5921] done [pid 5930] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5854] close(3) = 0 [ 96.363886][ T5859] device 0 buckets 44-49, fixing [ 96.364211][ T5859] bcachefs (loop2): hole in alloc btree missing in freespace btree [ 96.378173][ T5921] bcachefs (loop3): accounting_read... [ 96.423134][ T5923] bcachefs (loop4): btree node scan found 1 nodes after overwrites [ 96.423597][ T5923] done [ 96.423609][ T5923] bcachefs (loop4): check_topology... [ 96.424179][ T5923] bcachefs (loop4): btree root subvolumes unreadable, must recover from scan [ 96.428944][ T5859] device 0 buckets 50-120, fixing [ 96.444365][ T5923] bcachefs (loop4): no nodes found for btree subvolumes, continuing [ 96.445276][ T5923] done [ 96.445289][ T5923] bcachefs (loop4): accounting_read... [ 96.446208][ T5921] done [ 96.457030][ T5859] done [ 96.495745][ T5921] bcachefs (loop3): alloc_read... [ 96.507206][ T5859] bcachefs (loop2): check_lrus... [ 96.515169][ T5921] done [ 96.530212][ T5859] bcachefs (loop2): incorrect lru entry: lru fragmentation time 134217728 [ 96.537581][ T5921] bcachefs (loop3): snapshots_read... done [ 96.542366][ T5859] u64s 5 type set 18446462598867058688:6597069766690:0 len 0 ver 0 [ 96.547944][ T5921] bcachefs (loop3): check_allocations... [ 96.557929][ T5859] for u64s 5 type deleted 0:6597069766690:0 len 0 ver 0, fixing [ 96.564842][ T5921] bcachefs (loop3): bucket 0:34 data type user ptr gen 0 missing in alloc btree [ 96.574828][ T5859] done [ 96.579487][ T5921] while marking u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:34:0 gen 0, fixing [ 96.589048][ T5859] bcachefs (loop2): check_backpointers_to_extents... [ 96.601562][ T5921] bcachefs (loop3): bucket 0:27 data type btree ptr gen 0 missing in alloc btree [ 96.609489][ T5859] done [ 96.615103][ T5921] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing [ 96.621380][ T5859] bcachefs (loop2): check_extents_to_backpointers... [ 96.629381][ T5921] bcachefs (loop3): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 96.648380][ T5859] bcachefs (loop2): scanning for missing backpointers in 3/128 buckets [ 96.654809][ T5921] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 96.669708][ T5859] done [ 96.678605][ T5921] bcachefs (loop3): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 96.689706][ T5859] bcachefs (loop2): check_snapshots... [ 96.713893][ T5921] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 96.719180][ T5859] bcachefs (loop2): snapshot points to nonexistent subvolume: [ 96.719180][ T5859] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0 [ 96.735926][ T5921] bcachefs (loop3): bucket 0:32 data type btree ptr gen 0 missing in alloc btree [ 96.742414][ T5859] bcachefs (loop2): check_snapshots(): error ENOENT_bkey_type_mismatch [ 96.783405][ T5921] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ebb8d5a9e3463bdb written 16 min_key POS_MIN durability: 1 ptr: 0:32:0 gen 0, fixing [ 96.794008][ T5859] bcachefs (loop2): error in recovery: ENOENT_bkey_type_mismatch [ 96.803476][ T5921] bcachefs (loop3): bucket 0:28 data type btree ptr gen 0 missing in alloc btree [ 96.816054][ T5859] emergency read only at seq 19 [ 96.825223][ T5921] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 28f61e078e70b95c written 16 min_key POS_MIN durability: 1 ptr: 0:28:0 gen 0, fixing [ 96.830015][ T5859] bcachefs (loop2): bch2_fs_start(): error starting filesystem ENOENT_bkey_type_mismatch [ 96.836967][ T5921] bcachefs (loop3): bucket 0:37 data type btree ptr gen 0 missing in alloc btree [ 96.850777][ T5921] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 4a8b0fa43a9980a6 written 24 min_key POS_MIN durability: 1 ptr: 0:37:0 gen 0, fixing [ 96.868434][ T5921] bcachefs (loop3): bucket 0:42 data type btree ptr gen 0 missing in alloc btree [ 96.883900][ T5859] bcachefs (loop2): unclean shutdown complete, journal seq 19 [ 96.887929][ T5921] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1db8f60c84bb244c written 8 min_key POS_MIN durability: 1 ptr: 0:42:0 gen 0, fixing [ 96.912195][ T5921] done [ 96.940558][ T5921] bcachefs (loop3): going read-write [ 96.983916][ T5922] ================================================================== [ 96.997060][ T5920] bcachefs (loop1): btree node scan found 1 nodes after overwrites [ 97.002481][ T5922] BUG: KASAN: slab-use-after-free in bch2_get_next_dev+0x38f/0x4e0 [ 97.008249][ T5920] done [ 97.015660][ T5922] Write of size 8 at addr ffff88807b3cc040 by task kworker/u9:4/5922 [ 97.015680][ T5922] [ 97.015712][ T5922] CPU: 0 UID: 0 PID: 5922 Comm: kworker/u9:4 Not tainted 6.16.0-rc6-next-20250718-syzkaller #0 PREEMPT(full) [ 97.015735][ T5922] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 [ 97.015753][ T5922] Workqueue: bcachefs_journal journal_write_done [ 97.015799][ T5922] Call Trace: [ 97.015810][ T5922] [ 97.015820][ T5922] dump_stack_lvl+0x189/0x250 [ 97.015849][ T5922] ? __kasan_check_byte+0x12/0x40 [ 97.015884][ T5922] ? __pfx_dump_stack_lvl+0x10/0x10 [ 97.015910][ T5922] ? lock_release+0x4b/0x3e0 [ 97.015946][ T5922] ? __virt_addr_valid+0x4a5/0x5c0 [ 97.015975][ T5922] print_report+0xca/0x240 [ 97.015996][ T5922] ? bch2_get_next_dev+0x38f/0x4e0 [ 97.016015][ T5922] kasan_report+0x118/0x150 [ 97.016049][ T5922] ? bch2_get_next_dev+0x38f/0x4e0 [ 97.016074][ T5922] kasan_check_range+0x2b0/0x2c0 [ 97.016110][ T5922] bch2_get_next_dev+0x38f/0x4e0 [ 97.016129][ T5922] ? bch2_get_next_dev+0x27/0x4e0 [ 97.016150][ T5922] bch2_do_discards+0x20/0x160 [ 97.016172][ T5922] journal_write_done+0x11b9/0x13f0 [ 97.016208][ T5922] ? register_lock_class+0x51/0x320 [ 97.016261][ T5922] ? __pfx_journal_write_done+0x10/0x10 [ 97.016288][ T5922] ? __lock_acquire+0xab9/0xd20 [ 97.016326][ T5922] ? process_scheduled_works+0x9ef/0x17b0 [ 97.016364][ T5922] ? _raw_spin_unlock_irq+0x23/0x50 [ 97.016405][ T5922] ? process_scheduled_works+0x9ef/0x17b0 [ 97.016435][ T5922] ? process_scheduled_works+0x9ef/0x17b0 [ 97.016470][ T5922] process_scheduled_works+0xade/0x17b0 [ 97.016520][ T5922] ? __pfx_process_scheduled_works+0x10/0x10 [ 97.016564][ T5922] worker_thread+0x8a0/0xda0 [ 97.016587][ T5922] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 97.016624][ T5922] ? __kthread_parkme+0x7b/0x200 [ 97.016651][ T5922] kthread+0x70e/0x8a0 [ 97.016679][ T5922] ? __pfx_worker_thread+0x10/0x10 [ 97.016699][ T5922] ? __pfx_kthread+0x10/0x10 [ 97.016725][ T5922] ? _raw_spin_unlock_irq+0x23/0x50 [ 97.016755][ T5922] ? lockdep_hardirqs_on+0x9c/0x150 [ 97.016788][ T5922] ? __pfx_kthread+0x10/0x10 [ 97.016812][ T5922] ret_from_fork+0x3f9/0x770 [ 97.016836][ T5922] ? __pfx_ret_from_fork+0x10/0x10 [ 97.016859][ T5922] ? __switch_to_asm+0x39/0x70 [ 97.016886][ T5922] ? __switch_to_asm+0x33/0x70 [ 97.016913][ T5922] ? __pfx_kthread+0x10/0x10 [ 97.016938][ T5922] ret_from_fork_asm+0x1a/0x30 [ 97.016975][ T5922] [ 97.016984][ T5922] [ 97.018483][ T5920] bcachefs (loop1): check_topology... [ 97.023929][ T5922] Allocated by task 5859: [ 97.023942][ T5922] kasan_save_track+0x3e/0x80 [ 97.023968][ T5922] __kasan_kmalloc+0x93/0xb0 [ 97.023991][ T5922] __kmalloc_cache_noprof+0x230/0x3d0 [ 97.024017][ T5922] __bch2_dev_alloc+0xa7/0xc30 [ 97.027348][ T5920] bcachefs (loop1): btree root subvolumes unreadable, must recover from scan [ 97.029649][ T5922] bch2_dev_alloc+0xcd/0x180 [ 97.034849][ T5920] bcachefs (loop1): no nodes found for btree subvolumes, continuing [ 97.039699][ T5922] bch2_fs_open+0x256f/0x2760 [ 97.044103][ T5920] done [ 97.051048][ T5922] bch2_fs_get_tree+0x44f/0x1540 [ 97.056967][ T5920] bcachefs (loop1): accounting_read... [ 97.064948][ T5922] vfs_get_tree+0x92/0x2b0 [ 97.064971][ T5922] do_new_mount+0x2a2/0x9e0 [ 97.064989][ T5922] __se_sys_mount+0x317/0x410 [ 97.234621][ T5921] bcachefs (loop3): journal_replay... [ 97.234824][ T5922] do_syscall_64+0xfa/0x3b0 [ 97.260411][ T12] bcachefs (loop3): bucket incorrectly unset in freespace btree [ 97.267743][ T5922] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 97.267769][ T5922] [ 97.267775][ T5922] Freed by task 5859: [ 97.267784][ T5922] kasan_save_track+0x3e/0x80 [ 97.267807][ T5922] kasan_save_free_info+0x46/0x50 [ 97.267828][ T5922] __kasan_slab_free+0x62/0x70 [ 97.267857][ T5922] kfree+0x18e/0x440 [ 97.267880][ T5922] kobject_put+0x22b/0x480 [ 97.267898][ T5922] bch2_fs_free+0x4b3/0x5c0 [ 97.267923][ T5922] bch2_fs_get_tree+0xb76/0x1540 [ 97.267947][ T5922] vfs_get_tree+0x92/0x2b0 [ 97.267963][ T5922] do_new_mount+0x2a2/0x9e0 [ 97.267980][ T5922] __se_sys_mount+0x317/0x410 [ 97.267997][ T5922] do_syscall_64+0xfa/0x3b0 [ 97.268014][ T5922] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 97.351213][ T12] u64s 5 type deleted 0:31:0 len 0 ver 0, , continuing [ 97.356721][ T5922] [ 97.356730][ T5922] Last potentially related work creation: [ 97.356737][ T5922] kasan_save_stack+0x3e/0x60 [ 97.356767][ T5922] kasan_record_aux_stack+0xbd/0xd0 [ 97.356788][ T5922] insert_work+0x3d/0x330 [ 97.356814][ T5922] __queue_work+0xcd2/0xfb0 [ 97.549005][ T12] bcachefs (loop3): bucket incorrectly unset in freespace btree [ 97.552391][ T5922] queue_work_on+0x181/0x270 [ 97.583879][ T12] u64s 5 type deleted 0:43:0 len 0 ver 0, , continuing [ 97.585805][ T5922] bch2_do_discards+0xd0/0x160 [ 97.619172][ T5921] done [ 97.619334][ T5922] journal_write_done+0x11b9/0x13f0 [ 97.624987][ T5921] bcachefs (loop3): check_alloc_info... [ 97.629230][ T5922] process_scheduled_works+0xade/0x17b0 [ 97.629268][ T5922] worker_thread+0x8a0/0xda0 [ 97.635912][ T5921] bcachefs (loop3): hole in alloc btree missing in freespace btree [ 97.638708][ T5922] kthread+0x70e/0x8a0 [ 97.643472][ T5921] device 0 buckets 25-27, fixing [ 97.646493][ T5922] ret_from_fork+0x3f9/0x770 [ 97.646512][ T5922] ret_from_fork_asm+0x1a/0x30 [ 97.646536][ T5922] [ 97.646541][ T5922] Second to last potentially related work creation: [ 97.646549][ T5922] kasan_save_stack+0x3e/0x60 [ 97.646574][ T5922] kasan_record_aux_stack+0xbd/0xd0 [ 97.661073][ T5921] bcachefs (loop3): hole in alloc btree missing in freespace btree [ 97.663345][ T5922] insert_work+0x3d/0x330 [ 97.668003][ T5921] device 0 buckets 29-31, fixing [ 97.673309][ T5922] __queue_work+0xcd2/0xfb0 [ 97.678448][ T5921] bcachefs (loop3): hole in alloc btree missing in freespace btree [ 97.686836][ T5922] queue_work_on+0x181/0x270 [ 97.686859][ T5922] bch2_do_discards+0xd0/0x160 [ 97.686877][ T5922] journal_write_done+0x11b9/0x13f0 [ 97.691570][ T5921] device 0 buckets 33-34, fixing [ 97.699737][ T5922] process_scheduled_works+0xade/0x17b0 [ 97.699769][ T5922] worker_thread+0x8a0/0xda0 [ 97.699785][ T5922] kthread+0x70e/0x8a0 [ 97.705461][ T5921] bcachefs (loop3): hole in alloc btree missing in freespace btree [ 97.707840][ T5922] ret_from_fork+0x3f9/0x770 [ 97.712774][ T5921] device 0 buckets 35-37, fixing [ 97.718223][ T5922] ret_from_fork_asm+0x1a/0x30 [ 97.718248][ T5922] [ 97.718253][ T5922] The buggy address belongs to the object at ffff88807b3cc000 [ 97.718253][ T5922] which belongs to the cache kmalloc-4k of size 4096 [ 97.718270][ T5922] The buggy address is located 64 bytes inside of [ 97.718270][ T5922] freed 4096-byte region [ffff88807b3cc000, ffff88807b3cd000) [ 97.718289][ T5922] [ 97.718296][ T5922] The buggy address belongs to the physical page: [ 97.723013][ T5921] bcachefs (loop3): hole in alloc btree missing in freespace btree [ 97.727207][ T5922] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7b3c8 [ 97.727236][ T5922] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 97.731912][ T5921] device 0 buckets 39-41, fixing [ 97.739590][ T5922] flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) [ 97.739631][ T5922] page_type: f5(slab) [ 97.739650][ T5922] raw: 00fff00000000040 ffff88801a442140 ffffea0000cdf200 dead000000000002 [ 97.739667][ T5922] raw: 0000000000000000 0000000000040004 00000000f5000000 0000000000000000 [ 97.745331][ T5921] bcachefs (loop3): hole in alloc btree missing in freespace btree [ 97.758087][ T5922] head: 00fff00000000040 ffff88801a442140 ffffea0000cdf200 dead000000000002 [ 97.758110][ T5922] head: 0000000000000000 0000000000040004 00000000f5000000 0000000000000000 [ 97.758127][ T5922] head: 00fff00000000003 ffffea0001ecf201 00000000ffffffff 00000000ffffffff [ 97.758144][ T5922] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 97.758155][ T5922] page dumped because: kasan: bad access detected [ 97.758179][ T5922] page_owner tracks the page as allocated [ 97.767576][ T5921] device 0 buckets 44-120, fixing [ 97.770448][ T5922] page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5228, tgid 5228 (udevadm), ts 37270032838, free_ts 31080557231 [ 97.777799][ T5921] done [ 97.779930][ T5922] post_alloc_hook+0x240/0x2a0 [ 97.787102][ T5921] bcachefs (loop3): check_lrus... [ 97.789710][ T5922] get_page_from_freelist+0x21e4/0x22c0 [ 97.794477][ T5921] bcachefs (loop3): incorrect lru entry: lru fragmentation time 134217728 [ 97.798053][ T5922] __alloc_frozen_pages_noprof+0x181/0x370 [ 97.802559][ T5921] u64s 5 type set 18446462598867058688:6597069766690:0 len 0 ver 0 [ 97.807486][ T5922] alloc_pages_mpol+0x232/0x4a0 [ 97.807515][ T5922] allocate_slab+0x8a/0x370 [ 97.807534][ T5922] ___slab_alloc+0xbeb/0x1410 [ 97.807550][ T5922] __kmalloc_cache_noprof+0x296/0x3d0 [ 97.807575][ T5922] kernfs_iop_get_link+0x66/0x6c0 [ 97.811988][ T5921] for u64s 5 type deleted 0:6597069766690:0 len 0 ver 0, fixing [ 97.816478][ T5922] vfs_readlink+0x24d/0x550 [ 97.816499][ T5922] do_readlinkat+0x215/0x500 [ 97.816523][ T5922] __x64_sys_readlink+0x7f/0x90 [ 97.822013][ T5921] done [ 97.825774][ T5922] do_syscall_64+0xfa/0x3b0 [ 97.825796][ T5922] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 97.825816][ T5922] page last free pid 1 tgid 1 stack trace: [ 97.832119][ T5921] bcachefs (loop3): check_backpointers_to_extents... [ 97.838722][ T5922] __free_frozen_pages+0xbc4/0xd30 [ 97.838746][ T5922] free_contig_range+0x1bd/0x4a0 [ 97.838768][ T5922] destroy_args+0x7e/0x5d0 [ 97.842803][ T5921] done [ 97.846880][ T5922] debug_vm_pgtable+0x404/0x420 [ 97.846905][ T5922] do_one_initcall+0x233/0x820 [ 97.846928][ T5922] do_initcall_level+0x137/0x1f0 [ 97.846953][ T5922] do_initcalls+0x69/0xd0 [ 97.852026][ T5921] bcachefs (loop3): check_extents_to_backpointers... [ 97.856819][ T5922] kernel_init_freeable+0x3d9/0x590 [ 97.856851][ T5922] kernel_init+0x1d/0x1d0 [ 97.856874][ T5922] ret_from_fork+0x3f9/0x770 [ 97.862477][ T5921] bcachefs (loop3): scanning for missing backpointers in 3/128 buckets [ 97.865777][ T5922] ret_from_fork_asm+0x1a/0x30 [ 97.865806][ T5922] [ 97.865811][ T5922] Memory state around the buggy address: [ 97.865823][ T5922] ffff88807b3cbf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 97.865837][ T5922] ffff88807b3cbf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 97.865849][ T5922] >ffff88807b3cc000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 97.865859][ T5922] ^ [ 97.874173][ T5921] done [ 97.878598][ T5922] ffff88807b3cc080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 97.887824][ T5921] bcachefs (loop3): check_snapshots... [ 97.892136][ T5922] ffff88807b3cc100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 97.895364][ T5921] bcachefs (loop3): snapshot points to nonexistent subvolume: [ 97.895364][ T5921] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0 [ 97.900099][ T5922] ================================================================== [ 97.905753][ T5921] bcachefs (loop3): check_snapshots(): error ENOENT_bkey_type_mismatch [ 97.924525][ T5922] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 97.924551][ T5922] CPU: 0 UID: 0 PID: 5922 Comm: kworker/u9:4 Not tainted 6.16.0-rc6-next-20250718-syzkaller #0 PREEMPT(full) [ 97.924580][ T5922] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 [ 97.924595][ T5922] Workqueue: bcachefs_journal journal_write_done [ 97.924631][ T5922] Call Trace: [ 97.924641][ T5922] [ 97.924654][ T5922] dump_stack_lvl+0x99/0x250 [ 97.924683][ T5922] ? __asan_memcpy+0x40/0x70 [ 97.924711][ T5922] ? __pfx_dump_stack_lvl+0x10/0x10 [ 97.924737][ T5922] ? __pfx__printk+0x10/0x10 [ 97.924773][ T5922] vpanic+0x281/0x750 [ 97.924796][ T5922] ? preempt_schedule+0xae/0xc0 [ 97.924831][ T5922] ? __pfx_vpanic+0x10/0x10 [ 97.924855][ T5922] ? preempt_schedule_common+0x83/0xd0 [ 97.924887][ T5922] ? preempt_schedule+0xae/0xc0 [ 97.924919][ T5922] ? __pfx_preempt_schedule+0x10/0x10 [ 97.924956][ T5922] panic+0xb9/0xc0 [ 97.924980][ T5922] ? __pfx_panic+0x10/0x10 [ 97.925007][ T5922] ? _raw_spin_unlock_irqrestore+0xfd/0x110 [ 97.925044][ T5922] ? bch2_get_next_dev+0x38f/0x4e0 [ 97.925065][ T5922] check_panic_on_warn+0x89/0xb0 [ 97.925095][ T5922] ? bch2_get_next_dev+0x38f/0x4e0 [ 97.925115][ T5922] end_report+0x78/0x160 [ 97.925148][ T5922] kasan_report+0x129/0x150 [ 97.925182][ T5922] ? bch2_get_next_dev+0x38f/0x4e0 [ 97.925207][ T5922] kasan_check_range+0x2b0/0x2c0 [ 97.925244][ T5922] bch2_get_next_dev+0x38f/0x4e0 [ 97.925265][ T5922] ? bch2_get_next_dev+0x27/0x4e0 [ 97.925288][ T5922] bch2_do_discards+0x20/0x160 [ 97.925311][ T5922] journal_write_done+0x11b9/0x13f0 [ 97.925349][ T5922] ? register_lock_class+0x51/0x320 [ 97.925396][ T5922] ? __pfx_journal_write_done+0x10/0x10 [ 97.925423][ T5922] ? __lock_acquire+0xab9/0xd20 [ 97.925461][ T5922] ? process_scheduled_works+0x9ef/0x17b0 [ 97.925500][ T5922] ? _raw_spin_unlock_irq+0x23/0x50 [ 97.925530][ T5922] ? process_scheduled_works+0x9ef/0x17b0 [ 97.925565][ T5922] ? process_scheduled_works+0x9ef/0x17b0 [ 97.925600][ T5922] process_scheduled_works+0xade/0x17b0 [ 97.925649][ T5922] ? __pfx_process_scheduled_works+0x10/0x10 [ 97.925694][ T5922] worker_thread+0x8a0/0xda0 [ 97.925716][ T5922] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 97.925752][ T5922] ? __kthread_parkme+0x7b/0x200 [ 97.925780][ T5922] kthread+0x70e/0x8a0 [ 97.925807][ T5922] ? __pfx_worker_thread+0x10/0x10 [ 97.925828][ T5922] ? __pfx_kthread+0x10/0x10 [ 97.925855][ T5922] ? _raw_spin_unlock_irq+0x23/0x50 [ 97.925887][ T5922] ? lockdep_hardirqs_on+0x9c/0x150 [ 97.925920][ T5922] ? __pfx_kthread+0x10/0x10 [ 97.925946][ T5922] ret_from_fork+0x3f9/0x770 [ 97.925970][ T5922] ? __pfx_ret_from_fork+0x10/0x10 [ 97.925995][ T5922] ? __switch_to_asm+0x39/0x70 [ 97.926022][ T5922] ? __switch_to_asm+0x33/0x70 [ 97.926049][ T5922] ? __pfx_kthread+0x10/0x10 [ 97.926076][ T5922] ret_from_fork_asm+0x1a/0x30 [ 97.926113][ T5922] [ 97.928095][ T5922] Kernel Offset: disabled