u64s 11 type btree_ptr_v2 SPOS_MAX len 8323072 ver 0: seq 8c6eef4d5041243d written 8 min_key POS_MIN durability: 1 ptr: 0:40:0 gen 0 size != 0, shutting down bcachefs (loop2): inconsistency detected - emergency read only at journal seq 0 ------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:23! invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 PID: 9256 Comm: syz-executor.2 Not tainted 6.9.0-rc7-syzkaller-00023-g6d7ddd805123 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:__phys_addr+0x120/0x150 arch/x86/mm/physaddr.c:23 Code: 10 00 75 39 48 8b 1d 7f ca 1b 0c 48 89 ee bf ff ff ff 1f e8 62 52 4f 00 48 01 eb 48 81 fd ff ff ff 1f 76 a7 e8 41 57 4f 00 90 <0f> 0b 48 c7 c7 fd 3d 9f 8f e8 a2 a3 aa 00 e9 52 ff ff ff 48 c7 c7 RSP: 0018:ffffc90004a074a0 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 000000007ffff75e RCX: ffffc9000a179000 RDX: 0000000000040000 RSI: ffffffff813e75af RDI: 0000000000000007 RBP: 000000007ffff75e R08: 0000000000000007 R09: 000000001fffffff R10: 000000007ffff75e R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000001 R14: 00000000663c9e5b R15: ffffed1007a7010e FS: 00007f8d07a0e6c0(0000) GS:ffff88806b200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000557aa37d8000 CR3: 000000003d2d8000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: virt_to_folio include/linux/mm.h:1306 [inline] kfree+0x6c/0x3a0 mm/slub.c:4388 bch2_fs_recovery+0xfe9/0x3c40 fs/bcachefs/recovery.c:905 bch2_fs_start+0x2e9/0x600 fs/bcachefs/super.c:1043 bch2_fs_open+0xf87/0x1110 fs/bcachefs/super.c:2102 bch2_mount+0xdcc/0x1130 fs/bcachefs/fs.c:1903 legacy_get_tree+0x109/0x220 fs/fs_context.c:662 vfs_get_tree+0x8f/0x380 fs/super.c:1779 do_new_mount fs/namespace.c:3352 [inline] path_mount+0x14e6/0x1f20 fs/namespace.c:3679 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount fs/namespace.c:3875 [inline] __x64_sys_mount+0x297/0x320 fs/namespace.c:3875 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8d06c7f46a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8d07a0def8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f8d07a0df80 RCX: 00007f8d06c7f46a RDX: 00000000200001c0 RSI: 0000000020005b40 RDI: 00007f8d07a0df40 RBP: 00000000200001c0 R08: 00007f8d07a0df80 R09: 0000000000800040 R10: 0000000000800040 R11: 0000000000000202 R12: 0000000020005b40 R13: 00007f8d07a0df40 R14: 0000000000005b86 R15: 0000000020000340 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__phys_addr+0x120/0x150 arch/x86/mm/physaddr.c:23 Code: 10 00 75 39 48 8b 1d 7f ca 1b 0c 48 89 ee bf ff ff ff 1f e8 62 52 4f 00 48 01 eb 48 81 fd ff ff ff 1f 76 a7 e8 41 57 4f 00 90 <0f> 0b 48 c7 c7 fd 3d 9f 8f e8 a2 a3 aa 00 e9 52 ff ff ff 48 c7 c7 RSP: 0018:ffffc90004a074a0 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 000000007ffff75e RCX: ffffc9000a179000 RDX: 0000000000040000 RSI: ffffffff813e75af RDI: 0000000000000007 RBP: 000000007ffff75e R08: 0000000000000007 R09: 000000001fffffff R10: 000000007ffff75e R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000001 R14: 00000000663c9e5b R15: ffffed1007a7010e FS: 00007f8d07a0e6c0(0000) GS:ffff88806b300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30b27000 CR3: 000000003d2d8000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400