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: 5355 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 dd 3d 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:ffffc9000d477540 EFLAGS: 00010206 RAX: 0000000000000039 RBX: 00000000000001c8 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88801fc32a08 RBP: ffffc9000d477638 R08: 0000000000000004 R09: 0000000000000004 R10: ffffe8ffffc489cc R11: fffff91ffff8913b R12: dffffc0000000000 R13: ffffe8ffffc39c60 R14: ffffe8ffffc48980 R15: 1ffff92001a8eeb0 FS: 00007f8e6672a6c0(0000) GS:ffff88808d20f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fffcbded808 CR3: 0000000033b09000 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+0x92/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:0x7f8e6599038a 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:00007f8e66729e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f8e66729ef0 RCX: 00007f8e6599038a RDX: 00002000000000c0 RSI: 0000200000000080 RDI: 00007f8e66729eb0 RBP: 00002000000000c0 R08: 00007f8e66729ef0 R09: 0000000000200000 R10: 0000000000200000 R11: 0000000000000246 R12: 0000200000000080 R13: 00007f8e66729eb0 R14: 00000000000059a8 R15: 0000200000000600 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 dd 3d 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:ffffc9000d477540 EFLAGS: 00010206 RAX: 0000000000000039 RBX: 00000000000001c8 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88801fc32a08 RBP: ffffc9000d477638 R08: 0000000000000004 R09: 0000000000000004 R10: ffffe8ffffc489cc R11: fffff91ffff8913b R12: dffffc0000000000 R13: ffffe8ffffc39c60 R14: ffffe8ffffc48980 R15: 1ffff92001a8eeb0 FS: 00007f8e6672a6c0(0000) GS:ffff88808d20f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fffcbded808 CR3: 0000000033b09000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: e8 dd 3d c6 fd call 0xfdc63de2 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