loop0: detected capacity change from 0 to 128 ======================================================= WARNING: The mand mount option has been deprecated and and is ignored by this kernel. Remove the mand option from the mount to silence this warning. ======================================================= hpfs: filesystem error: invalid number of hotfixes: 2066844986, used: 2066844985; already mounted read-only 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 ================================================================== BUG: KASAN: slab-use-after-free in strcmp+0x6f/0xc0 lib/string.c:283 Read of size 1 at addr ffff8880009e08a6 by task syz.0.0/5322 CPU: 0 UID: 0 PID: 5322 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 strcmp+0x6f/0xc0 lib/string.c:283 hpfs_get_ea+0x114/0xdb0 fs/hpfs/ea.c:139 hpfs_read_inode+0x19d/0x1010 fs/hpfs/inode.c:63 hpfs_fill_super+0x129d/0x2040 fs/hpfs/super.c:650 get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1691 vfs_get_tree+0x92/0x2b0 fs/super.c:1751 fc_mount fs/namespace.c:1208 [inline] do_new_mount_fc fs/namespace.c:3651 [inline] do_new_mount+0x302/0xa10 fs/namespace.c:3727 do_mount fs/namespace.c:4050 [inline] __do_sys_mount fs/namespace.c:4238 [inline] __se_sys_mount+0x313/0x410 fs/namespace.c:4215 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3165f9076a 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:00007f3166ef8e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f3166ef8ef0 RCX: 00007f3165f9076a RDX: 000020000000a000 RSI: 0000200000009ec0 RDI: 00007f3166ef8eb0 RBP: 000020000000a000 R08: 00007f3166ef8ef0 R09: 0000000003a00041 R10: 0000000003a00041 R11: 0000000000000246 R12: 0000200000009ec0 R13: 00007f3166ef8eb0 R14: 0000000000009e22 R15: 0000200000000100 Allocated by task 5016: kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:77 unpoison_slab_object mm/kasan/common.c:342 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:368 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4955 [inline] slab_alloc_node mm/slub.c:5265 [inline] kmem_cache_alloc_lru_noprof+0x35d/0x6d0 mm/slub.c:5284 alloc_inode+0xb8/0x1b0 fs/inode.c:348 iget_locked+0x106/0x580 fs/inode.c:1445 kernfs_get_inode+0x4f/0x780 fs/kernfs/inode.c:253 kernfs_iop_lookup+0x1f6/0x320 fs/kernfs/dir.c:1236 __lookup_slow+0x297/0x3d0 fs/namei.c:1816 lookup_slow+0x53/0x70 fs/namei.c:1833 walk_component+0x2d2/0x400 fs/namei.c:2151 lookup_last fs/namei.c:2652 [inline] path_lookupat+0x163/0x430 fs/namei.c:2676 filename_lookup+0x212/0x570 fs/namei.c:2705 vfs_statx+0xf8/0x550 fs/stat.c:353 vfs_fstatat+0x118/0x170 fs/stat.c:375 __do_sys_newfstatat fs/stat.c:542 [inline] __se_sys_newfstatat fs/stat.c:536 [inline] __x64_sys_newfstatat+0x116/0x190 fs/stat.c:536 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 15: kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:77 __kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:587 kasan_save_free_info mm/kasan/kasan.h:406 [inline] poison_slab_object mm/kasan/common.c:252 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:284 kasan_slab_free include/linux/kasan.h:234 [inline] slab_free_hook mm/slub.c:2523 [inline] slab_free mm/slub.c:6611 [inline] kmem_cache_free+0x19b/0x690 mm/slub.c:6721 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0xcab/0x1770 kernel/rcu/tree.c:2861 handle_softirqs+0x286/0x870 kernel/softirq.c:622 run_ksoftirqd+0x9b/0x100 kernel/softirq.c:1063 smpboot_thread_fn+0x542/0xa60 kernel/smpboot.c:160 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:56 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:559 __call_rcu_common kernel/rcu/tree.c:3123 [inline] call_rcu+0x157/0x9c0 kernel/rcu/tree.c:3243 destroy_inode fs/inode.c:401 [inline] evict+0x847/0x9c0 fs/inode.c:834 __dentry_kill+0x209/0x660 fs/dcache.c:669 shrink_kill+0xa9/0x2c0 fs/dcache.c:1114 shrink_dentry_list+0x2e0/0x5e0 fs/dcache.c:1141 prune_dcache_sb+0x10e/0x180 fs/dcache.c:1222 super_cache_scan+0x369/0x4b0 fs/super.c:222 do_shrink_slab+0x6ef/0x1110 mm/shrinker.c:437 shrink_slab+0xd74/0x10d0 mm/shrinker.c:664 shrink_one+0x28a/0x7c0 mm/vmscan.c:4955 shrink_many mm/vmscan.c:5016 [inline] lru_gen_shrink_node mm/vmscan.c:5094 [inline] shrink_node+0x315d/0x3780 mm/vmscan.c:6081 kswapd_shrink_node mm/vmscan.c:6941 [inline] balance_pgdat mm/vmscan.c:7124 [inline] kswapd+0x147c/0x2800 mm/vmscan.c:7389 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff8880009e04f8 which belongs to the cache inode_cache of size 1144 The buggy address is located 942 bytes inside of freed 1144-byte region [ffff8880009e04f8, ffff8880009e0970) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880009e4f80 pfn:0x9e0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x7ff00000000240(workingset|head|node=0|zone=0|lastcpupid=0x7ff) page_type: f5(slab) raw: 007ff00000000240 ffff88801b6d58c0 ffffea0000026610 ffffea0000494410 raw: ffff8880009e4f80 0000000000190017 00000000f5000000 0000000000000000 head: 007ff00000000240 ffff88801b6d58c0 ffffea0000026610 ffffea0000494410 head: ffff8880009e4f80 0000000000190017 00000000f5000000 0000000000000000 head: 007ff00000000003 ffffea0000027801 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0xd20d0(__GFP_RECLAIMABLE|__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4720, tgid 4720 (udevadm), ts 27423381869, free_ts 27163971112 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1850 prep_new_page mm/page_alloc.c:1858 [inline] get_page_from_freelist+0x2365/0x2440 mm/page_alloc.c:3884 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5183 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:3039 [inline] allocate_slab+0x96/0x3a0 mm/slub.c:3212 new_slab mm/slub.c:3266 [inline] ___slab_alloc+0xe94/0x18a0 mm/slub.c:4636 __slab_alloc+0x65/0x100 mm/slub.c:4755 __slab_alloc_node mm/slub.c:4831 [inline] slab_alloc_node mm/slub.c:5253 [inline] kmem_cache_alloc_lru_noprof+0x3ef/0x6d0 mm/slub.c:5284 alloc_inode+0xb8/0x1b0 fs/inode.c:348 iget_locked+0x106/0x580 fs/inode.c:1445 kernfs_get_inode+0x4f/0x780 fs/kernfs/inode.c:253 kernfs_iop_lookup+0x1f6/0x320 fs/kernfs/dir.c:1236 __lookup_slow+0x297/0x3d0 fs/namei.c:1816 lookup_slow+0x53/0x70 fs/namei.c:1833 walk_component+0x2d2/0x400 fs/namei.c:2151 lookup_last fs/namei.c:2652 [inline] path_lookupat+0x163/0x430 fs/namei.c:2676 page last free pid 74 tgid 74 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] free_unref_folios+0xdb3/0x14f0 mm/page_alloc.c:2963 shrink_folio_list+0x295e/0x4c70 mm/vmscan.c:1569 evict_folios+0x471e/0x57c0 mm/vmscan.c:4745 try_to_shrink_lruvec+0x8a3/0xb50 mm/vmscan.c:4908 shrink_one+0x21b/0x7c0 mm/vmscan.c:4953 shrink_many mm/vmscan.c:5016 [inline] lru_gen_shrink_node mm/vmscan.c:5094 [inline] shrink_node+0x315d/0x3780 mm/vmscan.c:6081 kswapd_shrink_node mm/vmscan.c:6941 [inline] balance_pgdat mm/vmscan.c:7124 [inline] kswapd+0x147c/0x2800 mm/vmscan.c:7389 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff8880009e0780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880009e0800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880009e0880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880009e0900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff8880009e0980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc 00 00 ==================================================================