loop0: detected capacity change from 0 to 32768 bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names allowing incompatible features above 0.0: (unknown version) features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,small_image bcachefs (loop0): Using encoding defined by superblock: utf8-12.1.0 bcachefs (loop0): recovering from clean shutdown, journal seq 10 bcachefs (loop0): Version upgrade from 1.3: rebalance_work to 1.7: mi_btree_bitmap incomplete Doing compatible version upgrade from 1.3: rebalance_work to 1.28: inode_has_case_insensitive running recovery passes: check_allocations,check_extents_to_backpointers,check_subvols,check_inodes,check_dirents bcachefs (loop0): filesystem is an unresized image file, mounting ro bcachefs (loop0): invalid bkey in btree_node btree=inodes level=0: u64s 17 type inode_v3 0:4097:U32_MAX len 0 ver 0: (unpack error) invalid variable length fields, deleting bcachefs (loop0): btree node read error at btree deleted_inodes level 0/0 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 loop0 node offset 0/8 bset u64s 0: incorrect max key 25769803775:U64_MAX:U32_MAX loop0 btree validate error flagging btree deleted_inodes lost data running recovery pass check_topology (2), currently at recovery_pass_empty (0) running recovery pass check_lrus (14), currently at recovery_pass_empty (0) running recovery pass check_backpointers_to_extents (16), currently at recovery_pass_empty (0) running recovery pass check_topology (2), currently at recovery_pass_empty (0) running recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) ret btree_node_read_err_bad_node bcachefs (loop0): error reading btree root btree=deleted_inodes level=0: btree_node_read_error, fixing bcachefs (loop0): check_topology... bcachefs (loop0): btree root deleted_inodes unreadable, must recover from scan bcachefs (loop0): running recovery pass scan_for_btree_nodes (1), currently at check_topology (2) - rewinding bcachefs (loop0): bch2_check_root(): error restart_recovery bcachefs (loop0): scan_for_btree_nodes... bcachefs (loop0): btree node scan found 1 nodes after overwrites done bcachefs (loop0): check_topology... bcachefs (loop0): btree root deleted_inodes unreadable, must recover from scan bcachefs (loop0): no nodes found for btree deleted_inodes, shutting down error not marked as autofix and not in fsck run fsck, and forward to devs so error can be marked for self-healing emergency read only at seq 10 bcachefs (loop0): bch2_check_root(): error fsck_errors_not_fixed bcachefs (loop0): error in recovery: fsck_errors_not_fixed bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed bcachefs (loop0): shutting down bcachefs (loop0): shutdown complete bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed loop0: detected capacity change from 0 to 32768 Oops: general protection fault, probably for non-canonical address 0xdffffc0000000039: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x00000000000001c8-0x00000000000001cf] CPU: 0 UID: 0 PID: 5364 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:do_perf_trace_error_throw fs/bcachefs/trace.h:204 [inline] RIP: 0010:perf_trace_error_throw+0x248/0x480 fs/bcachefs/trace.h:204 Code: e8 cd 37 c6 fd 49 c7 04 24 00 00 00 00 48 8b 5c 24 38 48 81 c3 c8 01 00 00 48 89 d8 48 c1 e8 03 49 bc 00 00 00 00 00 fc ff df <42> 0f b6 04 20 84 c0 0f 85 90 01 00 00 8b 1b 49 8d 7e 08 48 89 f8 RSP: 0018:ffffc9000d2ef540 EFLAGS: 00010206 RAX: 0000000000000039 RBX: 00000000000001c8 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88801fc32a08 RBP: ffffc9000d2ef638 R08: 0000000000000004 R09: 0000000000000004 R10: ffffe8ffffc48cf4 R11: fffff91ffff891a0 R12: dffffc0000000000 R13: ffffe8ffffc48ca0 R14: ffffe8ffffc48ca8 R15: 1ffff92001a5deb0 FS: 00007f4e485976c0(0000) GS:ffff88808d20d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055fc133c6168 CR3: 00000000435d8000 CR4: 0000000000352ef0 Call Trace: __do_trace_error_throw fs/bcachefs/trace.h:204 [inline] trace_error_throw fs/bcachefs/trace.h:204 [inline] __bch2_err_trace+0x1ae/0x210 fs/bcachefs/bcachefs.h:409 bch2_fs_open+0x12a8/0x2600 fs/bcachefs/super.c:2409 bch2_fs_get_tree+0x44f/0x1520 fs/bcachefs/fs.c:2472 vfs_get_tree+0x8f/0x2b0 fs/super.c:1815 do_new_mount+0x2a2/0x9e0 fs/namespace.c:3808 do_mount fs/namespace.c:4136 [inline] __do_sys_mount fs/namespace.c:4347 [inline] __se_sys_mount+0x317/0x410 fs/namespace.c:4324 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4e4779038a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4e48596e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f4e48596ef0 RCX: 00007f4e4779038a RDX: 00002000000000c0 RSI: 00002000000118c0 RDI: 00007f4e48596eb0 RBP: 00002000000000c0 R08: 00007f4e48596ef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00002000000118c0 R13: 00007f4e48596eb0 R14: 0000000000011876 R15: 0000200000000040 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:do_perf_trace_error_throw fs/bcachefs/trace.h:204 [inline] RIP: 0010:perf_trace_error_throw+0x248/0x480 fs/bcachefs/trace.h:204 Code: e8 cd 37 c6 fd 49 c7 04 24 00 00 00 00 48 8b 5c 24 38 48 81 c3 c8 01 00 00 48 89 d8 48 c1 e8 03 49 bc 00 00 00 00 00 fc ff df <42> 0f b6 04 20 84 c0 0f 85 90 01 00 00 8b 1b 49 8d 7e 08 48 89 f8 RSP: 0018:ffffc9000d2ef540 EFLAGS: 00010206 RAX: 0000000000000039 RBX: 00000000000001c8 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88801fc32a08 RBP: ffffc9000d2ef638 R08: 0000000000000004 R09: 0000000000000004 R10: ffffe8ffffc48cf4 R11: fffff91ffff891a0 R12: dffffc0000000000 R13: ffffe8ffffc48ca0 R14: ffffe8ffffc48ca8 R15: 1ffff92001a5deb0 FS: 00007f4e485976c0(0000) GS:ffff88808d20d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055fc133c6168 CR3: 00000000435d8000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: e8 cd 37 c6 fd call 0xfdc637d2 5: 49 c7 04 24 00 00 00 movq $0x0,(%r12) c: 00 d: 48 8b 5c 24 38 mov 0x38(%rsp),%rbx 12: 48 81 c3 c8 01 00 00 add $0x1c8,%rbx 19: 48 89 d8 mov %rbx,%rax 1c: 48 c1 e8 03 shr $0x3,%rax 20: 49 bc 00 00 00 00 00 movabs $0xdffffc0000000000,%r12 27: fc ff df * 2a: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 90 01 00 00 jne 0x1c7 37: 8b 1b mov (%rbx),%ebx 39: 49 8d 7e 08 lea 0x8(%r14),%rdi 3d: 48 89 f8 mov %rdi,%rax