bcachefs (loop2): recovering from clean shutdown, journal seq 10 bcachefs (loop2): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 running recovery passes: check_allocations Oops: general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027] CPU: 0 UID: 0 PID: 9614 Comm: syz-executor.2 Not tainted 6.10.0-rc4-next-20240621-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:crypto_skcipher_alg include/crypto/skcipher.h:375 [inline] RIP: 0010:crypto_skcipher_encrypt+0x45/0x130 crypto/skcipher.c:637 Code: 1f fd 49 8d 5e 40 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 59 92 85 fd 48 8b 1b 48 8d 7b 18 48 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 05 e8 3f 92 85 fd 4c 8b 7b 18 48 83 c3 04 48 89 RSP: 0018:ffffc90004a8e178 EFLAGS: 00010202 RAX: 0000000000000004 RBX: 0000000000000008 RCX: 0000000000040000 RDX: ffffc9000a2da000 RSI: 000000000003ffff RDI: 0000000000000020 RBP: ffffc90004a8e710 R08: ffffc90004a8e27f R09: 0000000000000000 R10: ffffc90004a8e270 R11: fffff52000951c50 R12: dffffc0000000000 R13: dffffc0000000000 R14: ffffc90004a8e240 R15: 1ffff92000951c40 FS: 00007ff5f87fe6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5b44315d58 CR3: 00000000235d4000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_encrypt_sg fs/bcachefs/checksum.c:108 [inline] do_encrypt+0x66b/0x7d0 fs/bcachefs/checksum.c:150 gen_poly_key fs/bcachefs/checksum.c:191 [inline] bch2_checksum+0x1fc/0x770 fs/bcachefs/checksum.c:227 bch2_btree_node_read_done+0x1a73/0x6780 fs/bcachefs/btree_io.c:1077 btree_node_read_work+0x68b/0x1260 fs/bcachefs/btree_io.c:1348 bch2_btree_node_read+0x2433/0x2a10 __bch2_btree_root_read fs/bcachefs/btree_io.c:1772 [inline] bch2_btree_root_read+0x61e/0x970 fs/bcachefs/btree_io.c:1796 read_btree_roots+0x283/0x830 fs/bcachefs/recovery.c:516 bch2_fs_recovery+0x259b/0x38d0 fs/bcachefs/recovery.c:844 bch2_fs_start+0x356/0x5b0 fs/bcachefs/super.c:1034 bch2_fs_get_tree+0xd42/0x16c0 fs/bcachefs/fs.c:1934 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: fd std 1: 49 8d 5e 40 lea 0x40(%r14),%rbx 5: 48 89 d8 mov %rbx,%rax 8: 48 c1 e8 03 shr $0x3,%rax c: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) 11: 74 08 je 0x1b 13: 48 89 df mov %rbx,%rdi 16: e8 59 92 85 fd call 0xfd859274 1b: 48 8b 1b mov (%rbx),%rbx 1e: 48 8d 7b 18 lea 0x18(%rbx),%rdi 22: 48 89 f8 mov %rdi,%rax 25: 48 c1 e8 03 shr $0x3,%rax * 29: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2e: 74 05 je 0x35 30: e8 3f 92 85 fd call 0xfd859274 35: 4c 8b 7b 18 mov 0x18(%rbx),%r15 39: 48 83 c3 04 add $0x4,%rbx 3d: 48 rex.W 3e: 89 .byte 0x89