loop0: detected capacity change from 0 to 64 general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047] CPU: 1 PID: 5059 Comm: syz.0.15 Not tainted 5.15.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:hfs_find_init+0x66/0x1d0 fs/hfs/bfind.c:21 Code: 7e 18 4c 89 f8 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 ff e8 dc bd 90 ff 49 c7 07 00 00 00 00 48 8d 6b 40 49 89 ef 49 c1 ef 03 <43> 0f b6 04 2f 84 c0 0f 85 01 01 00 00 8b 45 00 8d 7c 00 04 be c0 RSP: 0018:ffffc900032af4e8 EFLAGS: 00010202 RAX: 1ffff92000655ebb RBX: 0000000000000000 RCX: ffff88807a058000 RDX: 0000000000000000 RSI: ffffc900032af5c0 RDI: ffffc900032af5d0 RBP: 0000000000000040 R08: dffffc0000000000 R09: ffffc900032af5c0 R10: fffff52000655ebf R11: 1ffff92000655eb8 R12: ffff8880732b4678 R13: dffffc0000000000 R14: ffffc900032af5c0 R15: 0000000000000008 FS: 00007f2773fef6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2774d528a0 CR3: 0000000077f83000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfs_ext_read_extent fs/hfs/extent.c:200 [inline] hfs_get_block+0x518/0xbd0 fs/hfs/extent.c:366 block_read_full_page+0x2e8/0xd10 fs/buffer.c:2290 do_read_cache_page+0x8a1/0x1030 mm/filemap.c:-1 read_mapping_page include/linux/pagemap.h:515 [inline] hfs_btree_open+0x549/0x11c0 fs/hfs/btree.c:78 hfs_mdb_get+0x12fc/0x2030 fs/hfs/mdb.c:199 hfs_fill_super+0xdf3/0x13f0 fs/hfs/super.c:406 mount_bdev+0x287/0x3c0 fs/super.c:1400 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x24a/0xa40 fs/namespace.c:3014 do_mount fs/namespace.c:3357 [inline] __do_sys_mount fs/namespace.c:3565 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3542 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f2774d70eba 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:00007f2773feee68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f2773feeef0 RCX: 00007f2774d70eba RDX: 00000000200000c0 RSI: 0000000020000200 RDI: 00007f2773feeeb0 RBP: 00000000200000c0 R08: 00007f2773feeef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000200 R13: 00007f2773feeeb0 R14: 00000000000002a4 R15: 0000000020002700 Modules linked in: ---[ end trace 023f2f7e87e2154a ]--- RIP: 0010:hfs_find_init+0x66/0x1d0 fs/hfs/bfind.c:21 Code: 7e 18 4c 89 f8 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 ff e8 dc bd 90 ff 49 c7 07 00 00 00 00 48 8d 6b 40 49 89 ef 49 c1 ef 03 <43> 0f b6 04 2f 84 c0 0f 85 01 01 00 00 8b 45 00 8d 7c 00 04 be c0 RSP: 0018:ffffc900032af4e8 EFLAGS: 00010202 RAX: 1ffff92000655ebb RBX: 0000000000000000 RCX: ffff88807a058000 RDX: 0000000000000000 RSI: ffffc900032af5c0 RDI: ffffc900032af5d0 RBP: 0000000000000040 R08: dffffc0000000000 R09: ffffc900032af5c0 R10: fffff52000655ebf R11: 1ffff92000655eb8 R12: ffff8880732b4678 R13: dffffc0000000000 R14: ffffc900032af5c0 R15: 0000000000000008 FS: 00007f2773fef6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000562352cdf9b0 CR3: 0000000077f83000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 7e 18 jle 0x1a 2: 4c 89 f8 mov %r15,%rax 5: 48 c1 e8 03 shr $0x3,%rax 9: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) e: 74 08 je 0x18 10: 4c 89 ff mov %r15,%rdi 13: e8 dc bd 90 ff call 0xff90bdf4 18: 49 c7 07 00 00 00 00 movq $0x0,(%r15) 1f: 48 8d 6b 40 lea 0x40(%rbx),%rbp 23: 49 89 ef mov %rbp,%r15 26: 49 c1 ef 03 shr $0x3,%r15 * 2a: 43 0f b6 04 2f movzbl (%r15,%r13,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 01 01 00 00 jne 0x138 37: 8b 45 00 mov 0x0(%rbp),%eax 3a: 8d 7c 00 04 lea 0x4(%rax,%rax,1),%edi 3e: be .byte 0xbe 3f: c0 .byte 0xc0