hpfs: filesystem error: warning: spare dnodes used, try chkdsk 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/0xb0 lib/string.c:400 Read of size 1 at addr ffff88807f8d18a6 by task syz.1.173/5004 CPU: 0 PID: 5004 Comm: syz.1.173 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 strcmp+0x6b/0xb0 lib/string.c:400 hpfs_get_ea+0x111/0xc80 fs/hpfs/ea.c:139 hpfs_read_inode+0x19a/0x1000 fs/hpfs/inode.c:63 hpfs_fill_super+0x12d1/0x1eb0 fs/hpfs/super.c:712 mount_bdev+0x287/0x3c0 fs/super.c:1400 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x24a/0xa40 fs/namespace.c:3025 do_mount fs/namespace.c:3368 [inline] __do_sys_mount fs/namespace.c:3576 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3553 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f8ce2f3334a 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:00007f8ce1198e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f8ce1198ef0 RCX: 00007f8ce2f3334a RDX: 000020000000a000 RSI: 0000200000009ec0 RDI: 00007f8ce1198eb0 RBP: 000020000000a000 R08: 00007f8ce1198ef0 R09: 0000000003a00041 R10: 0000000003a00041 R11: 0000000000000246 R12: 0000200000009ec0 R13: 00007f8ce1198eb0 R14: 0000000000009e30 R15: 0000200000000140 The buggy address belongs to the page: page:ffffea0001fe3440 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x7f8d1 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea0001fe3488 ffffea0001fe3408 0000000000000000 raw: 0000000000000001 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 0x1112c4a(GFP_NOFS|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL|__GFP_MOVABLE|__GFP_SKIP_KASAN_POISON), pid 3561, ts 30835505376, free_ts 114274380658 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5487 __page_cache_alloc+0xd2/0x3f0 mm/filemap.c:1022 page_cache_ra_unbounded+0x255/0x930 mm/readahead.c:216 page_cache_async_readahead include/linux/pagemap.h:856 [inline] filemap_readahead mm/filemap.c:2525 [inline] filemap_get_pages mm/filemap.c:2567 [inline] filemap_read+0x738/0x2480 mm/filemap.c:2634 __kernel_read+0x4eb/0x910 fs/read_write.c:443 integrity_kernel_read+0x86/0xd0 security/integrity/iint.c:228 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline] ima_calc_file_hash+0x1546/0x18e0 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x2ef/0x760 security/integrity/ima/ima_api.c:255 process_measurement+0xfb9/0x1a10 security/integrity/ima/ima_main.c:351 ima_file_check+0xc1/0x100 security/integrity/ima/ima_main.c:533 do_open fs/namei.c:3610 [inline] path_openat+0x2735/0x2f30 fs/namei.c:3742 do_filp_open+0x1b3/0x3e0 fs/namei.c:3769 do_sys_openat2+0x142/0x4a0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_openat fs/open.c:1285 [inline] __se_sys_openat fs/open.c:1280 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1280 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page_list+0x122/0x7e0 mm/page_alloc.c:3433 release_pages+0x184b/0x1bb0 mm/swap.c:963 __pagevec_release+0x6d/0xe0 mm/swap.c:983 pagevec_release include/linux/pagevec.h:81 [inline] __invalidate_mapping_pages+0x4e4/0x5e0 mm/truncate.c:509 drop_pagecache_sb+0x19a/0x230 fs/drop_caches.c:39 iterate_supers+0x11e/0x1d0 fs/super.c:718 drop_caches_sysctl_handler+0x8e/0x160 fs/drop_caches.c:62 proc_sys_call_handler+0x458/0x6c0 fs/proc/proc_sysctl.c:588 call_write_iter include/linux/fs.h:2172 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x712/0xd00 fs/read_write.c:594 ksys_write+0x14d/0x250 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff88807f8d1780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88807f8d1800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88807f8d1880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88807f8d1900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88807f8d1980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================