loop0: rw=1, want=351, limit=64 kasan: GPF could be caused by NULL-ptr deref or user memory access attempt to access beyond end of device loop0: rw=1, want=352, limit=64 attempt to access beyond end of device general protection fault: 0000 [#1] PREEMPT SMP KASAN loop0: rw=1, want=353, limit=64 CPU: 0 PID: 27909 Comm: syz-executor.1 Not tainted 4.19.211-syzkaller #0 attempt to access beyond end of device Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 RIP: 0010:hfs_find_init+0x70/0x230 fs/hfs/bfind.c:21 Code: c1 ea 03 80 3c 02 00 0f 85 bc 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 6b 01 00 00 8b 43 40 be c0 00 loop0: rw=1, want=354, limit=64 RSP: 0018:ffff88804333f530 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90008e1d000 RDX: 0000000000000008 RSI: ffffffff81fd1c41 RDI: ffff88804333f5b0 RBP: ffff88804333f598 R08: 0000000000000000 R09: 0000000000000004 R10: 0000000000000004 R11: 0000000000000000 R12: ffff888090a0f280 R13: 0000000000000040 R14: ffff88809b62a772 R15: ffff88804333f598 FS: 00007fb82af50700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5e59000000 CR3: 00000000aa5d3000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfs_ext_read_extent+0x191/0xa20 fs/hfs/extent.c:200 hfs_get_block+0x53d/0x7e0 fs/hfs/extent.c:366 block_read_full_page+0x288/0xd10 fs/buffer.c:2259 do_read_cache_page+0x533/0x1170 mm/filemap.c:2828 read_mapping_page include/linux/pagemap.h:402 [inline] hfs_btree_open+0x6ae/0x1430 fs/hfs/btree.c:78 hfs_mdb_get+0x1402/0x1cf0 fs/hfs/mdb.c:193 hfs_fill_super+0xd6a/0x1310 fs/hfs/super.c:413 mount_bdev+0x2fc/0x3b0 fs/super.c:1158 mount_fs+0xa3/0x310 fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2492 [inline] do_mount+0x115c/0x2f50 fs/namespace.c:2822 ksys_mount+0xcf/0x130 fs/namespace.c:3038 __do_sys_mount fs/namespace.c:3052 [inline] __se_sys_mount fs/namespace.c:3049 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3049 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fb82c9df62a Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 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:00007fb82af4ff88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00000000000002a6 RCX: 00007fb82c9df62a RDX: 0000000020000440 RSI: 00000000200002c0 RDI: 00007fb82af4ffe0 RBP: 00007fb82af50020 R08: 00007fb82af50020 R09: 0000000002000000 R10: 0000000002000000 R11: 0000000000000202 R12: 0000000020000440 R13: 00000000200002c0 R14: 00007fb82af4ffe0 R15: 0000000020004080 Modules linked in: ---[ end trace 2ec8d5075eee8e1b ]--- attempt to access beyond end of device RIP: 0010:hfs_find_init+0x70/0x230 fs/hfs/bfind.c:21 loop0: rw=1, want=355, limit=64 Code: c1 ea 03 80 3c 02 00 0f 85 bc 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 6b 01 00 00 8b 43 40 be c0 00 attempt to access beyond end of device RSP: 0018:ffff88804333f530 EFLAGS: 00010202 loop0: rw=1, want=356, limit=64 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90008e1d000 attempt to access beyond end of device RDX: 0000000000000008 RSI: ffffffff81fd1c41 RDI: ffff88804333f5b0 loop0: rw=1, want=361, limit=64 RBP: ffff88804333f598 R08: 0000000000000000 R09: 0000000000000004 attempt to access beyond end of device R10: 0000000000000004 R11: 0000000000000000 R12: ffff888090a0f280 loop0: rw=1, want=421, limit=64 R13: 0000000000000040 R14: ffff88809b62a772 R15: ffff88804333f598 attempt to access beyond end of device FS: 00007fb82af50700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 loop0: rw=1, want=4165, limit=64 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 attempt to access beyond end of device CR2: 00005612b3cf9160 CR3: 00000000aa5d3000 CR4: 00000000003406f0 loop0: rw=1, want=4166, limit=64 attempt to access beyond end of device loop0: rw=1, want=4167, limit=64 attempt to access beyond end of device loop0: rw=1, want=4168, limit=64 attempt to access beyond end of device DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 loop0: rw=1, want=4169, limit=64 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 attempt to access beyond end of device ---------------- Code disassembly (best guess): 0: c1 ea 03 shr $0x3,%edx 3: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 7: 0f 85 bc 01 00 00 jne 0x1c9 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 6b 01 00 00 jle 0x1a5 3a: 8b 43 40 mov 0x40(%rbx),%eax 3d: be .byte 0xbe 3e: c0 .byte 0xc0