hpfs: filesystem error: map_dirent: not a directory hpfs: hpfs_map_4sectors(): unaligned read hpfs: filesystem error: unable to find root dir gfs2: Unexpected value for 'norecovery' ================================================================== BUG: KASAN: use-after-free in hpfs_bplus_lookup+0x4f4/0x880 fs/hpfs/anode.c:38 Read of size 4 at addr ffff88806171f004 by task syz.2.175/7463 CPU: 1 UID: 0 PID: 7463 Comm: syz.2.175 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xba/0x230 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 hpfs_bplus_lookup+0x4f4/0x880 fs/hpfs/anode.c:38 hpfs_bmap+0x230/0x4e0 fs/hpfs/file.c:54 hpfs_get_block+0xa8/0x6e0 fs/hpfs/file.c:87 do_mpage_readpage+0x801/0x1980 fs/mpage.c:222 mpage_readahead+0x407/0x830 fs/mpage.c:371 read_pages+0x193/0x5a0 mm/readahead.c:163 page_cache_ra_unbounded+0x68a/0x8c0 mm/readahead.c:302 filemap_get_pages+0x47c/0x1e60 mm/filemap.c:2690 filemap_read+0x44a/0x1240 mm/filemap.c:2800 __kernel_read+0x50d/0x9c0 fs/read_write.c:532 integrity_kernel_read+0x89/0xd0 security/integrity/iint.c:28 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:480 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline] ima_calc_file_hash+0x12cf/0x1800 security/integrity/ima/ima_crypto.c:568 ima_collect_measurement+0x491/0x930 security/integrity/ima/ima_api.c:293 process_measurement+0x12d9/0x1c90 security/integrity/ima/ima_main.c:407 ima_file_check+0xe1/0x130 security/integrity/ima/ima_main.c:667 security_file_post_open+0xb3/0x260 security/security.c:2652 do_open fs/namei.c:4673 [inline] path_openat+0x2e82/0x38a0 fs/namei.c:4830 do_file_open+0x23e/0x4a0 fs/namei.c:4859 do_sys_openat2+0x113/0x200 fs/open.c:1366 do_sys_open fs/open.c:1372 [inline] __do_sys_openat fs/open.c:1388 [inline] __se_sys_openat fs/open.c:1383 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1383 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f818e61c629 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f818c82c028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f818e896180 RCX: 00007f818e61c629 RDX: 0000000000000000 RSI: 0000200000000100 RDI: ffffffffffffff9c RBP: 00007f818e6b2b39 R08: 0000000000000000 R09: 0000000000000000 R10: 650ce4b086bd440d R11: 0000000000000246 R12: 0000000000000000 R13: 00007f818e896218 R14: 00007f818e896180 R15: 00007ffe96fa78a8 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x7f81844dd pfn:0x6171f flags: 0x80000000000000(node=0|zone=1) raw: 0080000000000000 ffffea00018f6048 ffffea0001818888 0000000000000000 raw: 00000007f81844dd 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_ZERO|__GFP_COMP), pid 7463, tgid 7457 (syz.2.175), ts 203624286771, free_ts 203644884738 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x228/0x280 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0x28bb/0x2950 mm/page_alloc.c:3950 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5245 alloc_pages_mpol+0xd1/0x380 mm/mempolicy.c:2486 folio_alloc_mpol_noprof mm/mempolicy.c:2505 [inline] vma_alloc_folio_noprof+0xea/0x290 mm/mempolicy.c:2540 folio_prealloc mm/memory.c:-1 [inline] alloc_anon_folio mm/memory.c:5168 [inline] do_anonymous_page mm/memory.c:5225 [inline] do_pte_missing+0x86c/0x2e60 mm/memory.c:4402 handle_pte_fault mm/memory.c:6276 [inline] __handle_mm_fault mm/memory.c:6414 [inline] handle_mm_fault+0xd0a/0x13c0 mm/memory.c:6583 do_user_addr_fault+0xa73/0x1360 arch/x86/mm/fault.c:1334 handle_page_fault arch/x86/mm/fault.c:1474 [inline] exc_page_fault+0x6a/0xc0 arch/x86/mm/fault.c:1527 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618 page last free pid 7463 tgid 7457 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] free_unref_folios+0xd5e/0x19d0 mm/page_alloc.c:3035 folios_put_refs+0x56f/0x680 mm/swap.c:1002 free_pages_and_swap_cache+0x537/0x5b0 mm/swap_state.c:357 __tlb_batch_free_encoded_pages mm/mmu_gather.c:137 [inline] tlb_batch_pages_flush mm/mmu_gather.c:150 [inline] tlb_flush_mmu_free mm/mmu_gather.c:398 [inline] tlb_flush_mmu+0x6d3/0xa30 mm/mmu_gather.c:405 tlb_finish_mmu+0xf9/0x230 mm/mmu_gather.c:530 vms_clear_ptes+0x44d/0x570 mm/vma.c:1278 vms_complete_munmap_vmas+0x205/0x890 mm/vma.c:1320 do_vmi_align_munmap+0x3bd/0x4d0 mm/vma.c:1579 do_vmi_munmap+0x252/0x2d0 mm/vma.c:1627 __vm_munmap+0x22c/0x3d0 mm/vma.c:3247 __do_sys_munmap mm/mmap.c:1077 [inline] __se_sys_munmap mm/mmap.c:1074 [inline] __x64_sys_munmap+0x60/0x70 mm/mmap.c:1074 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88806171ef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806171ef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806171f000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88806171f080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806171f100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================