hpfs: hpfs_map_sector(): read error hpfs: code page support is disabled ================================================================== BUG: KASAN: use-after-free in strcmp+0x6f/0xb0 lib/string.c:288 Read of size 1 at addr ffff88802f34f8a6 by task syz.2.14/5929 CPU: 0 PID: 5929 Comm: syz.2.14 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xac/0x220 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 strcmp+0x6f/0xb0 lib/string.c:288 hpfs_get_ea+0x115/0xda0 fs/hpfs/ea.c:139 hpfs_read_inode+0x19e/0x1010 fs/hpfs/inode.c:63 hpfs_fill_super+0x12d5/0x1ec0 fs/hpfs/super.c:712 mount_bdev+0x22b/0x2d0 fs/super.c:1643 legacy_get_tree+0xea/0x180 fs/fs_context.c:662 vfs_get_tree+0x8c/0x280 fs/super.c:1764 do_new_mount+0x24b/0xa40 fs/namespace.c:3377 do_mount fs/namespace.c:3717 [inline] __do_sys_mount fs/namespace.c:3926 [inline] __se_sys_mount+0x2da/0x3c0 fs/namespace.c:3903 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f344399034a 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:00007f3444826e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f3444826ef0 RCX: 00007f344399034a RDX: 000020000000a000 RSI: 0000200000000000 RDI: 00007f3444826eb0 RBP: 000020000000a000 R08: 00007f3444826ef0 R09: 0000000003200041 R10: 0000000003200041 R11: 0000000000000246 R12: 0000200000000000 R13: 00007f3444826eb0 R14: 0000000000009e15 R15: 0000200000000040 The buggy address belongs to the physical page: page:ffffea0000bcd3c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x200000000 pfn:0x2f34f flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000200000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5630, tgid 5630 (sh), ts 48339180578, free_ts 70759032330 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1cd/0x210 mm/page_alloc.c:1554 prep_new_page mm/page_alloc.c:1561 [inline] get_page_from_freelist+0x195c/0x19f0 mm/page_alloc.c:3191 __alloc_pages+0x1e3/0x460 mm/page_alloc.c:4457 alloc_slab_page+0x5d/0x170 mm/slub.c:1881 allocate_slab mm/slub.c:2028 [inline] new_slab+0x87/0x2e0 mm/slub.c:2081 ___slab_alloc+0xc6d/0x1300 mm/slub.c:3253 __slab_alloc mm/slub.c:3339 [inline] __slab_alloc_node mm/slub.c:3392 [inline] slab_alloc_node mm/slub.c:3485 [inline] slab_alloc mm/slub.c:3503 [inline] __kmem_cache_alloc_lru mm/slub.c:3510 [inline] kmem_cache_alloc+0x1b7/0x2e0 mm/slub.c:3519 mt_alloc_one lib/maple_tree.c:160 [inline] mas_alloc_nodes+0x2f8/0x8c0 lib/maple_tree.c:1265 mas_node_count_gfp lib/maple_tree.c:1345 [inline] mas_preallocate+0xa44/0x1190 lib/maple_tree.c:5533 vma_iter_prealloc mm/internal.h:1152 [inline] __mmap_region mm/mmap.c:2783 [inline] mmap_region+0xdbf/0x2020 mm/mmap.c:2941 do_mmap+0x92f/0x10a0 mm/mmap.c:1385 vm_mmap_pgoff+0x1c0/0x400 mm/util.c:556 elf_map+0x19e/0x2f0 fs/binfmt_elf.c:380 load_elf_interp+0x49c/0xd10 fs/binfmt_elf.c:663 load_elf_binary+0x19e2/0x2700 fs/binfmt_elf.c:1271 search_binary_handler fs/exec.c:1775 [inline] exec_binprm fs/exec.c:1817 [inline] bprm_execve+0xaeb/0x16f0 fs/exec.c:1892 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1154 [inline] free_unref_page_prepare+0x7ce/0x8e0 mm/page_alloc.c:2336 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2429 __slab_free+0x35e/0x410 mm/slub.c:3736 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x75/0xe0 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x143/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x6e/0x4d0 mm/slab.h:767 slab_alloc_node mm/slub.c:3495 [inline] slab_alloc mm/slub.c:3503 [inline] __kmem_cache_alloc_lru mm/slub.c:3510 [inline] kmem_cache_alloc+0x11e/0x2e0 mm/slub.c:3519 getname_flags+0xbb/0x500 fs/namei.c:140 vfs_fstatat+0x111/0x1b0 fs/stat.c:298 __do_sys_newfstatat fs/stat.c:463 [inline] __se_sys_newfstatat fs/stat.c:457 [inline] __x64_sys_newfstatat+0x117/0x190 fs/stat.c:457 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff88802f34f780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88802f34f800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88802f34f880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88802f34f900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88802f34f980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================