memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4992 'syz-executor407' 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: 0 PID: 4992 Comm: syz-executor407 Not tainted 6.4.0-rc6-syzkaller-00242-g1639fae5132b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 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 01 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 0c 01 00 00 41 8b 06 8d 7c 00 04 be c0 RSP: 0018:ffffc90003a9f300 EFLAGS: 00010202 RAX: 1ffff92000753e7f RBX: ffffc90003a9f3f8 RCX: ffff8880276b1dc0 RDX: 0000000000000000 RSI: ffffc90003a9f3e0 RDI: ffffc90003a9f3f0 RBP: 0000000000000000 R08: ffffffff82648b5f R09: 0000000000000000 R10: ffffc90003a9f3e0 R11: dffffc0000000001 R12: ffffc90003a9f3e0 R13: dffffc0000000000 R14: 0000000000000040 R15: 0000000000000008 FS: 0000555556da8300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000005fdeb8 CR3: 000000002275a000 CR4: 00000000003506f0 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+0x4f4/0xb60 fs/hfs/extent.c:366 block_read_full_folio+0x47b/0x1000 fs/buffer.c:2349 filemap_read_folio+0x19d/0x7a0 mm/filemap.c:2427 do_read_cache_folio+0x134/0x820 mm/filemap.c:3686 do_read_cache_page+0x32/0x220 mm/filemap.c:3752 read_mapping_page include/linux/pagemap.h:772 [inline] hfs_btree_open+0x50b/0xf20 fs/hfs/btree.c:78 hfs_mdb_get+0x1443/0x21b0 fs/hfs/mdb.c:199 hfs_fill_super+0x107d/0x1790 fs/hfs/super.c:406 mount_bdev+0x2d0/0x3f0 fs/super.c:1380 legacy_get_tree+0xef/0x190 fs/fs_context.c:610 vfs_get_tree+0x8c/0x270 fs/super.c:1510 do_new_mount+0x28f/0xae0 fs/namespace.c:3039 do_mount fs/namespace.c:3382 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f26f4f90b5a 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:00007ffde9466e58 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f26f4f90b5a RDX: 0000000020000000 RSI: 00000000200001c0 RDI: 00007ffde9466e70 RBP: 00007ffde9466e70 R08: 00007ffde9466eb0 R09: 00000000000002d8 R10: 000000000300041c R11: 0000000000000286 R12: 0000000000000004 R13: 0000555556da82c0 R14: 000000000300041c R15: 00007ffde9466eb0 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 01 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 0c 01 00 00 41 8b 06 8d 7c 00 04 be c0 RSP: 0018:ffffc90003a9f300 EFLAGS: 00010202 RAX: 1ffff92000753e7f RBX: ffffc90003a9f3f8 RCX: ffff8880276b1dc0 RDX: 0000000000000000 RSI: ffffc90003a9f3e0 RDI: ffffc90003a9f3f0 RBP: 0000000000000000 R08: ffffffff82648b5f R09: 0000000000000000 R10: ffffc90003a9f3e0 R11: dffffc0000000001 R12: ffffc90003a9f3e0 R13: dffffc0000000000 R14: 0000000000000040 R15: 0000000000000008 FS: 0000555556da8300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000005fdeb8 CR3: 000000002275a000 CR4: 00000000003506f0 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 callq 0x3c80420b 8: 28 00 sub %al,(%rax) a: 74 08 je 0x14 c: 48 89 df mov %rbx,%rdi f: e8 24 01 80 ff callq 0xff800138 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 0c 01 00 00 jne 0x143 37: 41 8b 06 mov (%r14),%eax 3a: 8d 7c 00 04 lea 0x4(%rax,%rax,1),%edi 3e: be .byte 0xbe 3f: c0 .byte 0xc0