RBP: 00007f5838fed0a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000021 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007f5838303f60 R15: 00007ffe28acb8e8 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: 1 PID: 10908 Comm: syz.4.582 Not tainted 6.10.0-rc7-syzkaller-00266-g4d145e3f830b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:crypto_shash_alg include/crypto/hash.h:733 [inline] RIP: 0010:crypto_shash_update+0x49/0x90 crypto/shash.c:52 Code: e8 8c f1 29 fd 48 89 e8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 ef e8 d6 6f 8c fd 48 8b 5d 00 48 83 c3 20 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 b8 6f 8c fd 48 8b 1b 48 83 c3 a0 RSP: 0018:ffffc90004626f90 EFLAGS: 00010202 RAX: 0000000000000004 RBX: 0000000000000020 RCX: ffff888022b60000 RDX: 0000000000000000 RSI: ffff888067f38010 RDI: ffffc90004627100 RBP: ffffc90004627100 R08: ffffffff841bd1b7 R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1c887e3 R12: dffffc0000000000 R13: dffffc0000000000 R14: 0000000000000110 R15: ffff888067f38010 FS: 00007f5838fed6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055edf0dad680 CR3: 000000002bb68000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_checksum+0x5e9/0x770 fs/bcachefs/checksum.c:229 __bch2_btree_node_write+0x2e08/0x46b0 fs/bcachefs/btree_io.c:2171 bch2_btree_node_write+0x63/0x1f0 fs/bcachefs/btree_io.c:2307 btree_node_write_if_need fs/bcachefs/btree_io.h:151 [inline] __btree_node_flush+0x2ac/0x350 fs/bcachefs/btree_trans_commit.c:250 bch2_btree_node_flush0+0x27/0x40 fs/bcachefs/btree_trans_commit.c:259 journal_flush_pins+0x5f7/0xb20 fs/bcachefs/journal_reclaim.c:553 journal_flush_done+0xbc/0x260 fs/bcachefs/journal_reclaim.c:809 bch2_journal_flush_pins+0x18a/0x3a0 fs/bcachefs/journal_reclaim.c:839 bch2_journal_flush_all_pins fs/bcachefs/journal_reclaim.h:76 [inline] __bch2_fs_read_only+0x124/0x430 fs/bcachefs/super.c:276 bch2_fs_read_only+0xb52/0x1210 fs/bcachefs/super.c:356 bch2_remount+0x22a/0x580 fs/bcachefs/fs.c:1742 reconfigure_super+0x445/0x880 fs/super.c:1072 do_remount fs/namespace.c:2892 [inline] path_mount+0xc22/0xfa0 fs/namespace.c:3671 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3875 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:0x7f5838175bd9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f5838fed048 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f5838303f60 RCX: 00007f5838175bd9 RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000000 RBP: 00007f5838fed0a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000021 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007f5838303f60 R15: 00007ffe28acb8e8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:crypto_shash_alg include/crypto/hash.h:733 [inline] RIP: 0010:crypto_shash_update+0x49/0x90 crypto/shash.c:52 Code: e8 8c f1 29 fd 48 89 e8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 ef e8 d6 6f 8c fd 48 8b 5d 00 48 83 c3 20 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 b8 6f 8c fd 48 8b 1b 48 83 c3 a0 RSP: 0018:ffffc90004626f90 EFLAGS: 00010202 RAX: 0000000000000004 RBX: 0000000000000020 RCX: ffff888022b60000 RDX: 0000000000000000 RSI: ffff888067f38010 RDI: ffffc90004627100 RBP: ffffc90004627100 R08: ffffffff841bd1b7 R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1c887e3 R12: dffffc0000000000 R13: dffffc0000000000 R14: 0000000000000110 R15: ffff888067f38010 FS: 00007f5838fed6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000002bb68000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: e8 8c f1 29 fd call 0xfd29f191 5: 48 89 e8 mov %rbp,%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 ef mov %rbp,%rdi 16: e8 d6 6f 8c fd call 0xfd8c6ff1 1b: 48 8b 5d 00 mov 0x0(%rbp),%rbx 1f: 48 83 c3 20 add $0x20,%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 b8 6f 8c fd call 0xfd8c6ff1 39: 48 8b 1b mov (%rbx),%rbx 3c: 48 83 c3 a0 add $0xffffffffffffffa0,%rbx