general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047] CPU: 0 PID: 5168 Comm: syz-executor639 Not tainted 6.8.0-rc7-syzkaller-00130-g135288b73cef #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:hfs_find_init+0x74/0x220 fs/hfs/bfind.c:21 Code: c1 ea 03 80 3c 02 00 0f 85 a4 01 00 00 4c 8d 6b 40 48 c7 45 18 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 53 01 00 00 8b 43 40 be c0 0c RSP: 0018:ffffc900034df4a0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff8267ab62 RDX: 0000000000000008 RSI: ffffffff8266b7e5 RDI: ffffc900034df518 RBP: ffffc900034df500 R08: 0000000000000004 R09: 0000000000000004 R10: 0000000000000000 R11: ffffffff9341e718 R12: 0000000000000004 R13: 0000000000000040 R14: ffff888022f8014a R15: 0000000000000000 FS: 0000555556d21380(0000) GS:ffff88806b200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc970a07c00 CR3: 0000000026728000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfs_ext_read_extent+0x19c/0x9e0 fs/hfs/extent.c:200 hfs_get_block+0x55f/0x830 fs/hfs/extent.c:366 block_read_full_folio+0x38f/0xa70 fs/buffer.c:2382 filemap_read_folio+0xe9/0x2c0 mm/filemap.c:2324 do_read_cache_folio+0x209/0x550 mm/filemap.c:3703 do_read_cache_page mm/filemap.c:3769 [inline] read_cache_page+0x5b/0x160 mm/filemap.c:3778 read_mapping_page include/linux/pagemap.h:888 [inline] hfs_btree_open+0x662/0x1050 fs/hfs/btree.c:78 hfs_mdb_get+0x15d4/0x2030 fs/hfs/mdb.c:199 hfs_fill_super+0xb1e/0x16f0 fs/hfs/super.c:406 mount_bdev+0x1e3/0x2d0 fs/super.c:1658 legacy_get_tree+0x109/0x220 fs/fs_context.c:662 vfs_get_tree+0x8f/0x380 fs/super.c:1779 do_new_mount fs/namespace.c:3352 [inline] path_mount+0x14ea/0x1f20 fs/namespace.c:3679 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount fs/namespace.c:3875 [inline] __x64_sys_mount+0x297/0x320 fs/namespace.c:3875 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd5/0x270 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7fc97901890a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd27b22cc8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ffd27b22cd0 RCX: 00007fc97901890a RDX: 0000000020000080 RSI: 0000000020000280 RDI: 00007ffd27b22cd0 RBP: 0000000000000004 R08: 00007ffd27b22d10 R09: 0000000000000255 R10: 00000000010184c9 R11: 0000000000000286 R12: 00007ffd27b22d10 R13: 0000000000000003 R14: 0000000000008000 R15: 0000000000000001 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfs_find_init+0x74/0x220 fs/hfs/bfind.c:21 Code: c1 ea 03 80 3c 02 00 0f 85 a4 01 00 00 4c 8d 6b 40 48 c7 45 18 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 53 01 00 00 8b 43 40 be c0 0c RSP: 0018:ffffc900034df4a0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff8267ab62 RDX: 0000000000000008 RSI: ffffffff8266b7e5 RDI: ffffc900034df518 RBP: ffffc900034df500 R08: 0000000000000004 R09: 0000000000000004 R10: 0000000000000000 R11: ffffffff9341e718 R12: 0000000000000004 R13: 0000000000000040 R14: ffff888022f8014a R15: 0000000000000000 FS: 0000555556d21380(0000) GS:ffff88806b500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000560029f1f0a0 CR3: 0000000026728000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: c1 ea 03 shr $0x3,%edx 3: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 7: 0f 85 a4 01 00 00 jne 0x1b1 d: 4c 8d 6b 40 lea 0x40(%rbx),%r13 11: 48 c7 45 18 00 00 00 movq $0x0,0x18(%rbp) 18: 00 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 4c 89 ea mov %r13,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 74 08 je 0x3a 32: 3c 03 cmp $0x3,%al 34: 0f 8e 53 01 00 00 jle 0x18d 3a: 8b 43 40 mov 0x40(%rbx),%eax 3d: be .byte 0xbe 3e: c0 .byte 0xc0 3f: 0c .byte 0xc