loop0: detected capacity change from 0 to 32768 bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,background_compression=lz4,erasure_code,noinodes_use_key_cache,usrquota,nojournal_transaction_names,nocow superblock marked clean but clean section not present, fixing Oops: general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] CPU: 0 UID: 0 PID: 5107 Comm: syz.0.0 Not tainted 6.11.0-syzkaller-05319-g4a39ac5b7d62 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:bch2_fs_recovery+0x274/0x38b0 fs/bcachefs/recovery.c:644 Code: 00 00 4c 89 f7 48 c7 c6 60 a4 54 8c e8 85 d6 05 00 eb 41 e8 4e be 54 fd 49 8d 9d cc 01 00 00 49 83 c7 10 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 4d 41 bc fd 49 8b 0f 4c 89 ef 48 RSP: 0018:ffffc90002fbf5c0 EFLAGS: 00010202 RAX: 0000000000000002 RBX: ffff88804bd001cc RCX: 0000000000040000 RDX: ffffc9000b349000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90002fbf968 R08: ffffffff843f2070 R09: 1ffff920005f7e9c R10: dffffc0000000000 R11: fffff520005f7e9d R12: dffffc0000000000 R13: ffff88804bd00000 R14: ffff88804bd00777 R15: 0000000000000010 FS: 00007fd96d12c6c0(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4ec0aef999 CR3: 0000000011a2c000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_fs_start+0x356/0x5b0 fs/bcachefs/super.c:1036 bch2_fs_get_tree+0xd61/0x1700 fs/bcachefs/fs.c:1956 vfs_get_tree+0x90/0x2b0 fs/super.c:1800 do_new_mount+0x2be/0xb40 fs/namespace.c:3507 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4055 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4032 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd96c37f69a 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:00007fd96d12be68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fd96d12bef0 RCX: 00007fd96c37f69a RDX: 00000000200058c0 RSI: 0000000020000100 RDI: 00007fd96d12beb0 RBP: 00000000200058c0 R08: 00007fd96d12bef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000100 R13: 00007fd96d12beb0 R14: 000000000000590b R15: 00000000200008c0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_fs_recovery+0x274/0x38b0 fs/bcachefs/recovery.c:644 Code: 00 00 4c 89 f7 48 c7 c6 60 a4 54 8c e8 85 d6 05 00 eb 41 e8 4e be 54 fd 49 8d 9d cc 01 00 00 49 83 c7 10 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 4d 41 bc fd 49 8b 0f 4c 89 ef 48 RSP: 0018:ffffc90002fbf5c0 EFLAGS: 00010202 RAX: 0000000000000002 RBX: ffff88804bd001cc RCX: 0000000000040000 RDX: ffffc9000b349000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90002fbf968 R08: ffffffff843f2070 R09: 1ffff920005f7e9c R10: dffffc0000000000 R11: fffff520005f7e9d R12: dffffc0000000000 R13: ffff88804bd00000 R14: ffff88804bd00777 R15: 0000000000000010 FS: 00007fd96d12c6c0(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000563ebc086100 CR3: 0000000011a2c000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 4c 89 f7 mov %r14,%rdi 5: 48 c7 c6 60 a4 54 8c mov $0xffffffff8c54a460,%rsi c: e8 85 d6 05 00 call 0x5d696 11: eb 41 jmp 0x54 13: e8 4e be 54 fd call 0xfd54be66 18: 49 8d 9d cc 01 00 00 lea 0x1cc(%r13),%rbx 1f: 49 83 c7 10 add $0x10,%r15 23: 4c 89 f8 mov %r15,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 ff mov %r15,%rdi 34: e8 4d 41 bc fd call 0xfdbc4186 39: 49 8b 0f mov (%r15),%rcx 3c: 4c 89 ef mov %r13,%rdi 3f: 48 rex.W