loop0: detected capacity change from 0 to 64 syz.0.0: attempt to access beyond end of device loop0: rw=0, sector=15108, nr_sectors = 1 limit=64 Buffer I/O error on dev loop0, logical block 15108, async page read syz.0.0: attempt to access beyond end of device loop0: rw=0, sector=15109, nr_sectors = 1 limit=64 Buffer I/O error on dev loop0, logical block 15109, async page read syz.0.0: attempt to access beyond end of device loop0: rw=0, sector=15110, nr_sectors = 1 limit=64 Buffer I/O error on dev loop0, logical block 15110, async page read Oops: general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047] CPU: 0 UID: 0 PID: 5322 Comm: syz.0.0 Not tainted 6.15.0-rc3-syzkaller-00008-ga33b5a08cbbd #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:hfs_find_init+0x72/0x1f0 fs/hfs/bfind.c:21 Code: d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 24 a4 80 ff 48 c7 03 00 00 00 00 48 89 2c 24 4c 8d 75 40 4d 89 f7 49 c1 ef 03 <43> 0f b6 04 2f 84 c0 0f 85 15 01 00 00 41 8b 06 8d 3c 00 83 c7 04 RSP: 0018:ffffc9000d4574e0 EFLAGS: 00010202 RAX: 1ffff92001a8aebb RBX: ffffc9000d4575d8 RCX: 0000000000100000 RDX: ffffc9000dd82000 RSI: 0000000000004815 RDI: ffffc9000d4575d0 RBP: 0000000000000000 R08: ffffffff82ad821f R09: 0000000000000000 R10: ffffc9000d4575c0 R11: fffff52001a8aebf R12: ffffc9000d4575c0 R13: dffffc0000000000 R14: 0000000000000040 R15: 0000000000000008 FS: 00007fe3e0c046c0(0000) GS:ffff88808c59a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4b58b95ed8 CR3: 0000000040d02000 CR4: 0000000000352ef0 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+0x522/0xb80 fs/hfs/extent.c:366 block_read_full_folio+0x2d3/0x850 fs/buffer.c:2392 filemap_read_folio+0x14a/0x3b0 mm/filemap.c:2401 do_read_cache_folio+0x373/0x5b0 mm/filemap.c:3885 do_read_cache_page mm/filemap.c:3951 [inline] read_cache_page+0x5b/0x170 mm/filemap.c:3960 read_mapping_page include/linux/pagemap.h:989 [inline] hfs_btree_open+0x506/0xf40 fs/hfs/btree.c:78 hfs_mdb_get+0x14a1/0x2210 fs/hfs/mdb.c:199 hfs_fill_super+0x391/0x710 fs/hfs/super.c:337 get_tree_bdev_flags+0x490/0x5c0 fs/super.c:1636 vfs_get_tree+0x90/0x2b0 fs/super.c:1759 do_new_mount+0x2cf/0xb70 fs/namespace.c:3881 do_mount fs/namespace.c:4221 [inline] __do_sys_mount fs/namespace.c:4432 [inline] __se_sys_mount+0x38c/0x400 fs/namespace.c:4409 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe3dfd8f90a 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:00007fe3e0c03e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fe3e0c03ef0 RCX: 00007fe3dfd8f90a RDX: 0000200000000080 RSI: 0000200000000300 RDI: 00007fe3e0c03eb0 RBP: 0000200000000080 R08: 00007fe3e0c03ef0 R09: 0000000000200000 R10: 0000000000200000 R11: 0000000000000246 R12: 0000200000000300 R13: 00007fe3e0c03eb0 R14: 000000000000033a R15: 0000200000000540 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfs_find_init+0x72/0x1f0 fs/hfs/bfind.c:21 Code: d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 24 a4 80 ff 48 c7 03 00 00 00 00 48 89 2c 24 4c 8d 75 40 4d 89 f7 49 c1 ef 03 <43> 0f b6 04 2f 84 c0 0f 85 15 01 00 00 41 8b 06 8d 3c 00 83 c7 04 RSP: 0018:ffffc9000d4574e0 EFLAGS: 00010202 RAX: 1ffff92001a8aebb RBX: ffffc9000d4575d8 RCX: 0000000000100000 RDX: ffffc9000dd82000 RSI: 0000000000004815 RDI: ffffc9000d4575d0 RBP: 0000000000000000 R08: ffffffff82ad821f R09: 0000000000000000 R10: ffffc9000d4575c0 R11: fffff52001a8aebf R12: ffffc9000d4575c0 R13: dffffc0000000000 R14: 0000000000000040 R15: 0000000000000008 FS: 00007fe3e0c046c0(0000) GS:ffff88808c59a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4b58b95ed8 CR3: 0000000040d02000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: d8 48 c1 fmuls -0x3f(%rax) 3: e8 03 42 80 3c call 0x3c80420b 8: 28 00 sub %al,(%rax) a: 74 08 je 0x14 c: 48 89 df mov %rbx,%rdi f: e8 24 a4 80 ff call 0xff80a438 14: 48 c7 03 00 00 00 00 movq $0x0,(%rbx) 1b: 48 89 2c 24 mov %rbp,(%rsp) 1f: 4c 8d 75 40 lea 0x40(%rbp),%r14 23: 4d 89 f7 mov %r14,%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 15 01 00 00 jne 0x14c 37: 41 8b 06 mov (%r14),%eax 3a: 8d 3c 00 lea (%rax,%rax,1),%edi 3d: 83 c7 04 add $0x4,%edi