hpfs: filesystem error: improperly stopped 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 HPFS: de_next_de: de->length = 84ba HPFS: dnode_end_de: dnode->first_free = 7b3184b6 ================================================================== BUG: KASAN: slab-use-after-free in hpfs_count_dnodes+0x874/0xb70 fs/hpfs/dnode.c:773 Read of size 2 at addr ffff888032f0d4d0 by task syz.3.20/6570 CPU: 0 UID: 0 PID: 6570 Comm: syz.3.20 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 hpfs_count_dnodes+0x874/0xb70 fs/hpfs/dnode.c:773 hpfs_read_inode+0xc79/0x1050 fs/hpfs/inode.c:128 hpfs_fill_super+0x123d/0x1fa0 fs/hpfs/super.c:651 get_tree_bdev_flags+0x431/0x4f0 fs/super.c:1694 vfs_get_tree+0x92/0x2a0 fs/super.c:1754 fc_mount fs/namespace.c:1193 [inline] do_new_mount_fc fs/namespace.c:3758 [inline] do_new_mount+0x341/0xd30 fs/namespace.c:3834 do_mount fs/namespace.c:4167 [inline] __do_sys_mount fs/namespace.c:4383 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4360 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd66463b90a 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:00007fd663c9de58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fd663c9dee0 RCX: 00007fd66463b90a RDX: 000020000000a000 RSI: 0000200000009ec0 RDI: 00007fd663c9dea0 RBP: 000020000000a000 R08: 00007fd663c9dee0 R09: 0000000003200041 R10: 0000000003200041 R11: 0000000000000246 R12: 0000200000009ec0 R13: 00007fd663c9dea0 R14: 0000000000009e21 R15: 0000200000000000 Allocated by task 6192: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4569 [inline] slab_alloc_node mm/slub.c:4898 [inline] kmem_cache_alloc_noprof+0x33b/0x680 mm/slub.c:4905 sk_prot_alloc+0x57/0x210 net/core/sock.c:2241 sk_alloc+0x3a/0x390 net/core/sock.c:2303 unix_create1+0xb0/0x7d0 net/unix/af_unix.c:-1 unix_create+0x16b/0x210 net/unix/af_unix.c:1169 __sock_create+0x4b2/0x9d0 net/socket.c:1664 sock_create net/socket.c:1722 [inline] __sys_socket_create net/socket.c:1759 [inline] __sys_socket+0xd6/0x1b0 net/socket.c:1806 __do_sys_socket net/socket.c:1820 [inline] __se_sys_socket net/socket.c:1818 [inline] __x64_sys_socket+0x7a/0x90 net/socket.c:1818 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 6192: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2689 [inline] slab_free mm/slub.c:6250 [inline] kmem_cache_free+0x187/0x6c0 mm/slub.c:6377 sk_prot_free net/core/sock.c:2284 [inline] __sk_destruct+0x73c/0x9d0 net/core/sock.c:2386 sock_put include/net/sock.h:2010 [inline] unix_release_sock+0xa72/0xcc0 net/unix/af_unix.c:732 unix_release+0x92/0xd0 net/unix/af_unix.c:1184 __sock_release net/socket.c:722 [inline] sock_close+0xc3/0x240 net/socket.c:1514 __fput+0x461/0xa70 fs/file_table.c:510 fput_close_sync+0x11f/0x240 fs/file_table.c:615 __do_sys_close fs/open.c:1507 [inline] __se_sys_close fs/open.c:1492 [inline] __x64_sys_close+0x7e/0x110 fs/open.c:1492 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888032f0cd00 which belongs to the cache UNIX of size 2688 The buggy address is located 2000 bytes inside of freed 2688-byte region [ffff888032f0cd00, ffff888032f0d780) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x32f08 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888032f0f901 flags: 0x80000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0080000000000040 ffff888140abb3c0 dead000000000100 dead000000000122 raw: 0000000000000000 00000008000b000b 00000000f5000000 ffff888032f0f901 head: 0080000000000040 ffff888140abb3c0 dead000000000100 dead000000000122 head: 0000000000000000 00000008000b000b 00000000f5000000 ffff888032f0f901 head: 0080000000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6192, tgid 6192 (syz-executor), ts 156838652468, free_ts 156723741633 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x27c8/0x2840 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226 alloc_slab_page mm/slub.c:3278 [inline] allocate_slab+0x77/0x660 mm/slub.c:3467 new_slab mm/slub.c:3525 [inline] refill_objects+0x33c/0x3d0 mm/slub.c:7255 refill_sheaf mm/slub.c:2816 [inline] __pcs_replace_empty_main+0x373/0x720 mm/slub.c:4651 alloc_from_pcs mm/slub.c:4749 [inline] slab_alloc_node mm/slub.c:4883 [inline] kmem_cache_alloc_noprof+0x433/0x680 mm/slub.c:4905 sk_prot_alloc+0x57/0x210 net/core/sock.c:2241 sk_alloc+0x3a/0x390 net/core/sock.c:2303 unix_create1+0xb0/0x7d0 net/unix/af_unix.c:-1 unix_create+0x16b/0x210 net/unix/af_unix.c:1169 __sock_create+0x4b2/0x9d0 net/socket.c:1664 sock_create net/socket.c:1722 [inline] __sys_socket_create net/socket.c:1759 [inline] __sys_socket+0xd6/0x1b0 net/socket.c:1806 __do_sys_socket net/socket.c:1820 [inline] __se_sys_socket net/socket.c:1818 [inline] __x64_sys_socket+0x7a/0x90 net/socket.c:1818 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6228 tgid 6228 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0xfa6/0x10f0 mm/page_alloc.c:2943 __slab_free+0x252/0x2a0 mm/slub.c:5612 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4569 [inline] slab_alloc_node mm/slub.c:4898 [inline] kmem_cache_alloc_noprof+0x33b/0x680 mm/slub.c:4905 vm_area_dup+0x2b/0x670 mm/vma_init.c:123 dup_mmap+0x8b7/0x1d50 mm/mmap.c:1786 dup_mm kernel/fork.c:1534 [inline] copy_mm+0x13b/0x4a0 kernel/fork.c:1586 copy_process+0x1f24/0x4450 kernel/fork.c:2264 kernel_clone+0x283/0x870 kernel/fork.c:2721 __do_sys_clone kernel/fork.c:2862 [inline] __se_sys_clone kernel/fork.c:2846 [inline] __x64_sys_clone+0x1b6/0x230 kernel/fork.c:2846 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888032f0d380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888032f0d400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888032f0d480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888032f0d500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888032f0d580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================