================================================================== BUG: KASAN: slab-use-after-free in __raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline] BUG: KASAN: slab-use-after-free in _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:173 Read of size 1 at addr ffff88805a44c248 by task kworker/u10:2/6041 CPU: 0 UID: 0 PID: 6041 Comm: kworker/u10:2 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Workqueue: netns cleanup_net Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 __kasan_check_byte+0x36/0x50 mm/kasan/common.c:585 kasan_check_byte include/linux/kasan.h:402 [inline] lock_acquire kernel/locking/lockdep.c:5916 [inline] lock_acquire+0x132/0x380 kernel/locking/lockdep.c:5899 __raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:173 spin_lock include/linux/spinlock.h:347 [inline] lockref_get+0x15/0x50 lib/lockref.c:50 dget include/linux/dcache.h:364 [inline] __simple_recursive_removal+0x3d/0x5c0 fs/libfs.c:601 debugfs_remove+0x5d/0x80 fs/debugfs/inode.c:784 ieee80211_sta_debugfs_remove+0x38/0x80 net/mac80211/debugfs_sta.c:1277 __sta_info_destroy_part2+0x318/0x510 net/mac80211/sta_info.c:1613 __sta_info_flush+0x4f6/0x720 net/mac80211/sta_info.c:1746 sta_info_flush net/mac80211/sta_info.h:984 [inline] ieee80211_ibss_disconnect+0x195/0xbc0 net/mac80211/ibss.c:672 ieee80211_ibss_leave+0x4a/0x160 net/mac80211/ibss.c:1789 rdev_leave_ibss net/wireless/rdev-ops.h:577 [inline] cfg80211_leave_ibss+0x1ab/0x490 net/wireless/ibss.c:207 cfg80211_leave_locked+0x1ad/0x470 net/wireless/core.c:1544 cfg80211_leave+0x5d/0x90 net/wireless/core.c:1605 cfg80211_netdev_notifier_call+0x30c/0x1140 net/wireless/core.c:1776 notifier_call_chain+0x99/0x3f0 kernel/notifier.c:85 call_netdevice_notifiers_info+0xbe/0x110 net/core/dev.c:2275 call_netdevice_notifiers_extack net/core/dev.c:2313 [inline] call_netdevice_notifiers net/core/dev.c:2327 [inline] __dev_close_many+0xff/0x710 net/core/dev.c:1769 netif_close_many+0x243/0x810 net/core/dev.c:1824 netif_close net/core/dev.c:1842 [inline] netif_close+0x17f/0x230 net/core/dev.c:1836 dev_close+0xaa/0x240 net/core/dev_api.c:221 cfg80211_shutdown_all_interfaces+0xb4/0x250 net/wireless/core.c:387 ieee80211_remove_interfaces+0xc3/0x6e0 net/mac80211/iface.c:2505 ieee80211_unregister_hw+0x55/0x360 net/mac80211/main.c:1721 mac80211_hwsim_del_radio drivers/net/wireless/virtual/mac80211_hwsim_main.c:6256 [inline] hwsim_exit_net+0x891/0x1500 drivers/net/wireless/virtual/mac80211_hwsim_main.c:7269 ops_exit_list net/core/net_namespace.c:200 [inline] ops_undo_list+0x2ee/0xab0 net/core/net_namespace.c:253 cleanup_net+0x499/0x920 net/core/net_namespace.c:706 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396 process_scheduled_works kernel/workqueue.c:3479 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 4990: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:351 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:377 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4683 [inline] slab_alloc_node mm/slub.c:4996 [inline] kmem_cache_alloc_lru_noprof+0x265/0x6a0 mm/slub.c:5029 __d_alloc+0x35/0xa50 fs/dcache.c:1909 d_alloc_parallel+0x105/0x14c0 fs/dcache.c:2772 lookup_open+0x6bb/0x1990 fs/namei.c:4500 open_last_lookups fs/namei.c:4796 [inline] path_openat+0xa2c/0x2440 fs/namei.c:5026 do_file_open+0x20e/0x430 fs/namei.c:5058 do_sys_openat2+0x10f/0x1e0 fs/open.c:1417 do_sys_open fs/open.c:1423 [inline] __do_sys_openat fs/open.c:1439 [inline] __se_sys_openat fs/open.c:1434 [inline] __x64_sys_openat+0x12d/0x210 fs/open.c:1434 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x121/0x770 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 4990: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:264 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2748 [inline] slab_free mm/slub.c:6509 [inline] kmem_cache_free+0x127/0x6c0 mm/slub.c:6636 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x5f0/0x1260 kernel/rcu/tree.c:2919 handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0x16a/0x210 kernel/softirq.c:758 irq_exit_rcu+0x9/0x30 kernel/softirq.c:775 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 Last potentially related work creation: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:556 __call_rcu_common.constprop.0+0xa5/0x9b0 kernel/rcu/tree.c:3181 dentry_free+0x152/0x2c0 fs/dcache.c:450 dentry_kill+0x5e8/0xc20 fs/dcache.c:845 finish_dput fs/dcache.c:1001 [inline] dput.part.0+0xd7/0x240 fs/dcache.c:1042 dput+0x1f/0x30 fs/dcache.c:1037 end_dirop fs/namei.c:2985 [inline] filename_unlinkat+0x45c/0x730 fs/namei.c:5751 __do_sys_unlink fs/namei.c:5783 [inline] __se_sys_unlink fs/namei.c:5780 [inline] __x64_sys_unlink+0x46/0x70 fs/namei.c:5780 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x121/0x770 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88805a44c178 which belongs to the cache dentry of size 312 The buggy address is located 208 bytes inside of freed 312-byte region [ffff88805a44c178, ffff88805a44c2b0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5a44c head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88805a44ded9 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801eab08c0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000200150015 00000000f5000000 ffff88805a44ded9 head: 00fff00000000040 ffff88801eab08c0 dead000000000100 dead000000000122 head: 0000000000000000 0000000200150015 00000000f5000000 ffff88805a44ded9 head: 00fff00000000001 ffffffffffffff81 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Reclaimable, gfp_mask 0xd20d0(__GFP_RECLAIMABLE|__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 43, tgid 43 (kworker/u8:2), ts 85037573510 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x110d/0x35d0 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x2eb/0x3300 mm/page_alloc.c:5436 alloc_slab_page mm/slub.c:3347 [inline] allocate_slab mm/slub.c:3462 [inline] new_slab+0xa9/0x6e0 mm/slub.c:3513 refill_objects+0xe3/0x410 mm/slub.c:7418 refill_sheaf mm/slub.c:2885 [inline] __pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4774 alloc_from_pcs mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:4984 [inline] kmem_cache_alloc_lru_noprof+0x4c0/0x6a0 mm/slub.c:5029 __d_alloc+0x35/0xa50 fs/dcache.c:1909 d_alloc+0x4a/0x1e0 fs/dcache.c:1992 lookup_one_qstr_excl+0x171/0x250 fs/namei.c:1806 __start_dirop fs/namei.c:2949 [inline] start_dirop+0x59/0xb0 fs/namei.c:2971 simple_start_creating+0xf9/0x110 fs/libfs.c:2308 debugfs_start_creating.part.0+0x7b/0x150 fs/debugfs/inode.c:397 debugfs_start_creating fs/debugfs/inode.c:371 [inline] __debugfs_create_file+0xa9/0x500 fs/debugfs/inode.c:431 debugfs_create_file_short+0x41/0x60 fs/debugfs/inode.c:474 ieee80211_link_sta_debugfs_add+0x16c/0x4e0 net/mac80211/debugfs_sta.c:1314 page last free pid 1 tgid 1 ts 24860355454 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] free_pages_prepare+0x586/0xe00 mm/page_alloc.c:1463 __free_contig_range_common+0x14f/0x250 mm/page_alloc.c:7072 debug_vm_pgtable_free_huge_page mm/debug_vm_pgtable.c:980 [inline] destroy_args+0xa8/0x7a0 mm/debug_vm_pgtable.c:993 debug_vm_pgtable+0x1d69/0x3490 mm/debug_vm_pgtable.c:1368 do_one_initcall+0x11c/0x6f0 init/main.c:1362 do_initcall_level init/main.c:1424 [inline] do_initcalls init/main.c:1440 [inline] do_basic_setup init/main.c:1460 [inline] kernel_init_freeable+0x6ea/0x7b0 init/main.c:1675 kernel_init+0x21/0x1e0 init/main.c:1565 ret_from_fork+0x730/0xd60 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: ffff88805a44c100: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fa ffff88805a44c180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88805a44c200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88805a44c280: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fa fb ffff88805a44c300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================