hpfs: You really don't want any checks? You are crazy...
hpfs: hpfs_map_sector(): read error
hpfs: code page support is disabled
==================================================================
BUG: KASAN: use-after-free in strcmp+0x6b/0xc0
Read of size 1 at addr ffff88817b1d28a6 by task syz.9.11135/22322

CPU: 0 UID: 0 PID: 22322 Comm: syz.9.11135 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 print_address_description+0x55/0x1e0
 print_report+0x58/0x70
 kasan_report+0x117/0x150
 strcmp+0x6b/0xc0
 hpfs_get_ea+0x134/0xee0
 hpfs_read_inode+0x1a6/0x1050
 hpfs_fill_super+0x123d/0x1fa0
 get_tree_bdev_flags+0x431/0x4f0
 vfs_get_tree+0x92/0x2a0
 do_new_mount+0x341/0xd30
 __se_sys_mount+0x31d/0x420
 do_syscall_64+0x174/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb012b9e0ca
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb013aa5e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fb013aa5ee0 RCX: 00007fb012b9e0ca
RDX: 0000200000000100 RSI: 0000200000000040 RDI: 00007fb013aa5ea0
RBP: 0000200000000100 R08: 00007fb013aa5ee0 R09: 0000000003200041
R10: 0000000003200041 R11: 0000000000000246 R12: 0000200000000040
R13: 00007fb013aa5ea0 R14: 0000000000009e15 R15: 00002000000000c0
 </TASK>

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x17b1d2
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000000000 ffffea0005f63bc8 ffffea0005f63c88 0000000000000000
raw: 0000000000000000 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 0x152c4a(GFP_NOFS|__GFP_HIGHMEM|__GFP_MOVABLE|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 22303, tgid 22302 (syz.5.11129), ts 2363344377745, free_ts 2364359852727
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x2367/0x23f0
 __alloc_frozen_pages_noprof+0x18d/0x380
 alloc_pages_mpol+0x235/0x490
 alloc_pages_noprof+0xac/0x2a0
 folio_alloc_noprof+0x1e/0x30
 filemap_alloc_folio_noprof+0x111/0x470
 page_cache_ra_order+0x5bd/0xf70
 filemap_get_pages+0x48f/0x1ec0
 filemap_read+0x447/0x1230
 erofs_file_read_iter+0x247/0x2d0
 __kernel_read+0x504/0x9b0
 integrity_kernel_read+0x89/0xd0
 ima_calc_file_hash+0x446/0x860
 ima_collect_measurement+0x51d/0x9c0
 process_measurement+0x12cd/0x1c80
page last free pid 18614 tgid 18614 stack trace:
 free_unref_folios+0xd68/0x1480
 folios_put_refs+0xa3d/0xb80
 truncate_inode_pages_range+0x3dd/0xe30
 erofs_evict_inode+0x67/0x90
 evict+0x61e/0xb10
 evict_inodes+0x75a/0x7f0
 generic_shutdown_super+0xaa/0x2d0
 kill_block_super+0x44/0x90
 erofs_kill_sb+0x7e/0x190
 deactivate_locked_super+0xbc/0x130
 cleanup_mnt+0x437/0x4d0
 task_work_run+0x1d9/0x270
 exit_to_user_mode_loop+0x193/0x680
 do_syscall_64+0x353/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88817b1d2780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88817b1d2800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff88817b1d2880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                               ^
 ffff88817b1d2900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88817b1d2980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
