loop0: detected capacity change from 0 to 32768 bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-0600-8265-f57f48ba6d81) 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: 5109 Comm: syz.0.0 Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #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 fs/bcachefs/checksum.c:200 [inline] RIP: 0010:bch2_checksum+0x1c5/0x770 fs/bcachefs/checksum.c:236 Code: f6 e8 0f 2d d8 fd 48 8b 44 24 28 4c 8d b0 e8 7f 04 00 ba 20 00 00 00 48 8d 7c 24 60 31 f6 e8 f2 2c d8 fd 4c 89 f0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 f7 e8 0c 2a d8 fd 49 8b 3e 48 b8 00 00 RSP: 0018:ffffc9000b056b40 EFLAGS: 00010202 RAX: 0000000000008ffd RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc9000b056bc0 RBP: ffffc9000b056eb0 R08: ffffc9000b056bbf R09: 0000000000000000 R10: ffffc9000b056ba0 R11: fffff5200160ad78 R12: ffffc9000b056be0 R13: dffffc0000000000 R14: 0000000000047fe8 R15: 1ffff9200160ad70 FS: 00007fcc8f5266c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffca67fb198 CR3: 000000003e124000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: read_one_super+0xd87/0xf40 fs/bcachefs/super-io.c:680 __bch2_read_super+0xe74/0x1380 fs/bcachefs/super-io.c:807 bch2_fs_open+0x270/0x2f80 fs/bcachefs/super.c:2032 bch2_fs_get_tree+0x738/0x1710 fs/bcachefs/fs.c:2161 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:4057 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4034 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:0x7fcc8e77f79a 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:00007fcc8f525e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fcc8f525ef0 RCX: 00007fcc8e77f79a RDX: 00000000200058c0 RSI: 0000000020005900 RDI: 00007fcc8f525eb0 RBP: 00000000200058c0 R08: 00007fcc8f525ef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020005900 R13: 00007fcc8f525eb0 R14: 00000000000058e5 R15: 0000000020000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:gen_poly_key fs/bcachefs/checksum.c:200 [inline] RIP: 0010:bch2_checksum+0x1c5/0x770 fs/bcachefs/checksum.c:236 Code: f6 e8 0f 2d d8 fd 48 8b 44 24 28 4c 8d b0 e8 7f 04 00 ba 20 00 00 00 48 8d 7c 24 60 31 f6 e8 f2 2c d8 fd 4c 89 f0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 f7 e8 0c 2a d8 fd 49 8b 3e 48 b8 00 00 RSP: 0018:ffffc9000b056b40 EFLAGS: 00010202 RAX: 0000000000008ffd RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc9000b056bc0 RBP: ffffc9000b056eb0 R08: ffffc9000b056bbf R09: 0000000000000000 R10: ffffc9000b056ba0 R11: fffff5200160ad78 R12: ffffc9000b056be0 R13: dffffc0000000000 R14: 0000000000047fe8 R15: 1ffff9200160ad70 FS: 00007fcc8f5266c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000564244b67000 CR3: 000000003e124000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: f6 e8 imul %al 2: 0f 2d d8 cvtps2pi %xmm0,%mm3 5: fd std 6: 48 8b 44 24 28 mov 0x28(%rsp),%rax b: 4c 8d b0 e8 7f 04 00 lea 0x47fe8(%rax),%r14 12: ba 20 00 00 00 mov $0x20,%edx 17: 48 8d 7c 24 60 lea 0x60(%rsp),%rdi 1c: 31 f6 xor %esi,%esi 1e: e8 f2 2c d8 fd call 0xfdd82d15 23: 4c 89 f0 mov %r14,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 f7 mov %r14,%rdi 34: e8 0c 2a d8 fd call 0xfdd82a45 39: 49 8b 3e mov (%r14),%rdi 3c: 48 rex.W 3d: b8 .byte 0xb8