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: 3628 Comm: syz-executor244 Not tainted 6.1.0-rc8-syzkaller-00164-g4cee37b3a4e6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:hfs_find_init+0x74/0x240 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 0c RSP: 0018:ffffc90003d0f528 EFLAGS: 00010212 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000008 RSI: ffffffff8245a0b5 RDI: ffffc90003d0f5a8 RBP: ffffc90003d0f590 R08: 0000000000000004 R09: 0000000000000004 R10: 0000000000000000 R11: 1ffffffff21154cb R12: 0000000000000004 R13: 0000000000000040 R14: ffff8880769c814a R15: ffffc90003d0f590 FS: 0000555556283300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000005d84c8 CR3: 000000001d6df000 CR4: 0000000000350ee0 Call Trace: hfs_ext_read_extent+0x18d/0xa20 fs/hfs/extent.c:200 hfs_get_block+0x48d/0x820 fs/hfs/extent.c:366 block_read_full_folio+0x35b/0x9d0 fs/buffer.c:2271 filemap_read_folio+0xdb/0x2c0 mm/filemap.c:2407 do_read_cache_folio+0x1df/0x510 mm/filemap.c:3534 do_read_cache_page mm/filemap.c:3576 [inline] read_cache_page+0x5d/0x170 mm/filemap.c:3585 read_mapping_page include/linux/pagemap.h:756 [inline] hfs_btree_open+0x78e/0xff0 fs/hfs/btree.c:78 hfs_mdb_get+0x15b8/0x1f10 fs/hfs/mdb.c:199 hfs_fill_super+0xa5f/0x1340 fs/hfs/super.c:406 mount_bdev+0x351/0x410 fs/super.c:1401 legacy_get_tree+0x109/0x220 fs/fs_context.c:610 vfs_get_tree+0x8d/0x2f0 fs/super.c:1531 do_new_mount fs/namespace.c:3040 [inline] path_mount+0x132a/0x1e20 fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __x64_sys_mount+0x283/0x300 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd3fbca0b6a Code: 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc837da638 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fd3fbca0b6a RDX: 0000000020000240 RSI: 0000000020000280 RDI: 00007ffc837da640 RBP: 00007ffc837da640 R08: 00007ffc837da680 R09: 0000000000000258 R10: 0000000000000003 R11: 0000000000000286 R12: 0000000000000004 R13: 00005555562832c0 R14: 00007ffc837da680 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfs_find_init+0x74/0x240 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 0c RSP: 0018:ffffc90003d0f528 EFLAGS: 00010212 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000008 RSI: ffffffff8245a0b5 RDI: ffffc90003d0f5a8 RBP: ffffc90003d0f590 R08: 0000000000000004 R09: 0000000000000004 R10: 0000000000000000 R11: 1ffffffff21154cb R12: 0000000000000004 R13: 0000000000000040 R14: ffff8880769c814a R15: ffffc90003d0f590 FS: 0000555556283300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd3fbc9f610 CR3: 000000001d6df000 CR4: 0000000000350ef0 ---------------- 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 3f: 0c .byte 0xc