loop0: detected capacity change from 0 to 32768 bcachefs (/dev/loop0): error reading default superblock: checksum error, type crc32c_nonzero: got 1ef4af3a should be 29d2fb78 Oops: general protection fault, probably for non-canonical address 0xdffffc0000008ffd: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: probably user-memory-access in range [0x0000000000047fe8-0x0000000000047fef] CPU: 0 UID: 0 PID: 6442 Comm: syz-executor Not tainted 6.12.0-rc5-syzkaller-g6c52d4da1c74 #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:gen_poly_key.isra.0+0x10d/0x330 fs/bcachefs/checksum.c:200 Code: 00 00 00 00 05 00 00 00 80 89 44 24 0c e8 0b cc ed fd 49 8d bd e8 7f 04 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 ce 01 00 00 4c 89 fa 4d 8b 8d e8 7f 04 00 48 b8 RSP: 0018:ffffc9000410edf8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 1ffff92000821dc1 RCX: 0000000000000000 RDX: 0000000000008ffd RSI: 0000000000000000 RDI: 0000000000047fe8 RBP: ffffc9000410eed0 R08: 0000000000000001 R09: 0000000000000000 R10: ffffc9000410ee48 R11: 0000000000000000 R12: ffffc9000410ee48 R13: 0000000000000000 R14: ffffc9000410efd8 R15: ffffc9000410ee34 FS: 00007f7538fff6c0(0000) GS:ffff88806a600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f75311ff000 CR3: 0000000046c4c000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_checksum+0x1f9/0x2e0 fs/bcachefs/checksum.c:236 read_one_super+0x530/0x14e0 fs/bcachefs/super-io.c:680 __bch2_read_super+0xac8/0x10d0 fs/bcachefs/super-io.c:807 bch2_fs_open+0x2d0/0x10d0 fs/bcachefs/super.c:2032 bch2_fs_get_tree+0x1004/0x16f0 fs/bcachefs/fs.c:2157 vfs_get_tree+0x8f/0x380 fs/super.c:1800 do_new_mount fs/namespace.c:3507 [inline] path_mount+0x14e6/0x1f20 fs/namespace.c:3834 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount fs/namespace.c:4034 [inline] __x64_sys_mount+0x294/0x320 fs/namespace.c:4034 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f753947e5ea 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:00007f7538ffeef8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f7538ffef80 RCX: 00007f753947e5ea RDX: 0000000020005d80 RSI: 0000000020005dc0 RDI: 00007f7538ffef40 RBP: 0000000020005d80 R08: 00007f7538ffef80 R09: 0000000000000480 R10: 0000000000000480 R11: 0000000000000246 R12: 0000000020005dc0 R13: 00007f7538ffef40 R14: 0000000000005da1 R15: 0000000020005e00 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:gen_poly_key.isra.0+0x10d/0x330 fs/bcachefs/checksum.c:200 Code: 00 00 00 00 05 00 00 00 80 89 44 24 0c e8 0b cc ed fd 49 8d bd e8 7f 04 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 ce 01 00 00 4c 89 fa 4d 8b 8d e8 7f 04 00 48 b8 RSP: 0018:ffffc9000410edf8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 1ffff92000821dc1 RCX: 0000000000000000 RDX: 0000000000008ffd RSI: 0000000000000000 RDI: 0000000000047fe8 RBP: ffffc9000410eed0 R08: 0000000000000001 R09: 0000000000000000 R10: ffffc9000410ee48 R11: 0000000000000000 R12: ffffc9000410ee48 R13: 0000000000000000 R14: ffffc9000410efd8 R15: ffffc9000410ee34 FS: 00007f7538fff6c0(0000) GS:ffff88806a700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f35a7e4e000 CR3: 0000000046c4c000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 00 00 add %al,(%rax) 4: 05 00 00 00 80 add $0x80000000,%eax 9: 89 44 24 0c mov %eax,0xc(%rsp) d: e8 0b cc ed fd call 0xfdedcc1d 12: 49 8d bd e8 7f 04 00 lea 0x47fe8(%r13),%rdi 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 ce 01 00 00 jne 0x202 34: 4c 89 fa mov %r15,%rdx 37: 4d 8b 8d e8 7f 04 00 mov 0x47fe8(%r13),%r9 3e: 48 rex.W 3f: b8 .byte 0xb8