================================================================== 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 ffff88802520d2b0 by task kworker/u8:3/21224 CPU: 1 UID: 0 PID: 21224 Comm: kworker/u8:3 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Workqueue: events_unbound cfg80211_wiphy_work 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 __kasan_check_byte+0x2a/0x40 mm/kasan/common.c:585 kasan_check_byte include/linux/kasan.h:402 [inline] lock_acquire+0x7d/0x350 kernel/locking/lockdep.c:5916 __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/0x60 lib/lockref.c:50 dget include/linux/dcache.h:370 [inline] __simple_recursive_removal+0x33/0x520 fs/libfs.c:601 debugfs_remove+0x5b/0x70 fs/debugfs/inode.c:784 ieee80211_sta_debugfs_remove+0x40/0x70 net/mac80211/debugfs_sta.c:1277 __sta_info_destroy_part2+0x32b/0x410 net/mac80211/sta_info.c:1613 __sta_info_flush+0x5b6/0x700 net/mac80211/sta_info.c:1746 sta_info_flush net/mac80211/sta_info.h:986 [inline] ieee80211_ibss_disconnect+0x316/0x800 net/mac80211/ibss.c:672 ieee80211_ibss_leave+0x47/0x140 net/mac80211/ibss.c:1789 rdev_leave_ibss net/wireless/rdev-ops.h:616 [inline] cfg80211_leave_ibss+0x1d7/0x410 net/wireless/ibss.c:208 reg_leave_invalid_chans_wk+0x152/0x200 net/wireless/reg.c:2518 cfg80211_wiphy_work+0x29e/0x420 net/wireless/core.c:610 process_one_work kernel/workqueue.c:3495 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3578 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3659 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 26811: 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:351 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:377 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4720 [inline] slab_alloc_node mm/slub.c:5033 [inline] kmem_cache_alloc_lru_noprof+0x29e/0x5f0 mm/slub.c:5066 __d_alloc+0x37/0x820 fs/dcache.c:1923 d_alloc+0x4b/0x190 fs/dcache.c:2009 lookup_one_qstr_excl+0xd8/0x360 fs/namei.c:1806 __start_dirop fs/namei.c:2920 [inline] start_dirop+0x5c/0x90 fs/namei.c:2942 simple_start_creating+0xcc/0x110 fs/libfs.c:2308 debugfs_start_creating+0xca/0x1b0 fs/debugfs/inode.c:397 __debugfs_create_file+0x6f/0x400 fs/debugfs/inode.c:431 debugfs_create_file_short+0x3f/0x60 fs/debugfs/inode.c:474 add_common_files net/mac80211/debugfs_netdev.c:834 [inline] add_files net/mac80211/debugfs_netdev.c:955 [inline] ieee80211_debugfs_add_netdev net/mac80211/debugfs_netdev.c:1019 [inline] ieee80211_debugfs_recreate_netdev+0x3c9/0x14b0 net/mac80211/debugfs_netdev.c:1049 ieee80211_if_change_type+0x141/0x940 net/mac80211/iface.c:2125 ieee80211_change_iface+0xdc/0x4b0 net/mac80211/cfg.c:275 rdev_change_virtual_intf net/wireless/rdev-ops.h:74 [inline] cfg80211_change_iface+0x40f/0x9c0 net/wireless/util.c:1368 nl80211_set_interface+0x78e/0xaa0 net/wireless/nl80211.c:5252 genl_family_rcv_msg_doit+0x233/0x340 net/netlink/genetlink.c:1114 genl_family_rcv_msg net/netlink/genetlink.c:1194 [inline] genl_rcv_msg+0x614/0x7a0 net/netlink/genetlink.c:1209 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2576 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1218 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1920 sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800 __sock_sendmsg net/socket.c:818 [inline] __sys_sendto+0x408/0x5a0 net/socket.c:2283 __do_sys_sendto net/socket.c:2290 [inline] __se_sys_sendto net/socket.c:2286 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2286 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 25: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:264 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2780 [inline] slab_free mm/slub.c:6630 [inline] kmem_cache_free+0x182/0x650 mm/slub.c:6757 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x92e/0x1230 kernel/rcu/tree.c:2919 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1133 smpboot_thread_fn+0x5f8/0xb30 kernel/smpboot.c:162 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 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:57 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556 __call_rcu_common kernel/rcu/tree.c:3287 [inline] call_rcu+0x86/0x300 kernel/rcu/tree.c:3395 dentry_kill+0x530/0x910 fs/dcache.c:859 finish_dput+0x1a/0x260 fs/dcache.c:1015 find_next_child+0x1e7/0x250 fs/libfs.c:592 __simple_recursive_removal+0x10b/0x520 fs/libfs.c:609 debugfs_remove+0x5b/0x70 fs/debugfs/inode.c:784 ieee80211_debugfs_remove_netdev net/mac80211/debugfs_netdev.c:1029 [inline] ieee80211_debugfs_recreate_netdev+0xba/0x14b0 net/mac80211/debugfs_netdev.c:1048 drv_remove_interface+0x1e6/0x580 net/mac80211/driver-ops.c:125 ieee80211_do_stop+0x1bff/0x2450 net/mac80211/iface.c:765 ieee80211_stop+0x1ab/0x200 net/mac80211/iface.c:871 __dev_close_many+0x361/0x6e0 net/core/dev.c:1836 netif_close_many+0x249/0x660 net/core/dev.c:1862 netif_close+0x160/0x220 net/core/dev.c:1880 dev_close+0xf7/0x210 net/core/dev_api.c:221 nl80211_del_interface+0xcd/0x140 net/wireless/nl80211.c:5412 genl_family_rcv_msg_doit+0x233/0x340 net/netlink/genetlink.c:1114 genl_family_rcv_msg net/netlink/genetlink.c:1194 [inline] genl_rcv_msg+0x614/0x7a0 net/netlink/genetlink.c:1209 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2576 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1218 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1920 sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800 __sock_sendmsg net/socket.c:818 [inline] ____sys_sendmsg+0x54e/0x850 net/socket.c:2715 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2769 __sys_sendmsg net/socket.c:2801 [inline] __do_sys_sendmsg net/socket.c:2806 [inline] __se_sys_sendmsg net/socket.c:2804 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2804 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88802520d1e0 which belongs to the cache dentry of size 352 The buggy address is located 208 bytes inside of freed 352-byte region [ffff88802520d1e0, ffff88802520d340) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802520c820 pfn:0x2520c head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888034caa501 flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000240 ffff88801d6c83c0 ffffea0000948090 ffffea0001dd6e90 raw: ffff88802520c820 0000000200130012 00000000f5000000 ffff888034caa501 head: 00fff00000000240 ffff88801d6c83c0 ffffea0000948090 ffffea0001dd6e90 head: ffff88802520c820 0000000200130012 00000000f5000000 ffff888034caa501 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 697, tgid 697 (kworker/u8:8), ts 5467335790 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1856 prep_new_page mm/page_alloc.c:1864 [inline] get_page_from_freelist+0x220f/0x2280 mm/page_alloc.c:3935 __alloc_frozen_pages_noprof+0x1fe/0x410 mm/page_alloc.c:5459 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab+0x7d/0x5e0 mm/slub.c:3499 new_slab mm/slub.c:3550 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7539 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4811 alloc_from_pcs mm/slub.c:4887 [inline] slab_alloc_node mm/slub.c:5021 [inline] kmem_cache_alloc_lru_noprof+0x37e/0x5f0 mm/slub.c:5066 __d_alloc+0x37/0x820 fs/dcache.c:1923 __d_alloc_parallel+0xde/0x1700 fs/dcache.c:2865 __lookup_slow+0x82/0x2f0 fs/namei.c:1904 lookup_slow+0x59/0x80 fs/namei.c:1936 walk_component fs/namei.c:2282 [inline] link_path_walk+0xd22/0x1910 fs/namei.c:2656 path_openat+0x1b7/0x20f0 fs/namei.c:5006 do_file_open+0x23e/0x4a0 fs/namei.c:5039 do_open_execat+0x12b/0x590 fs/exec.c:786 alloc_bprm+0x24/0x640 fs/exec.c:1514 page_owner free stack trace missing Memory state around the buggy address: ffff88802520d180: 00 00 00 00 fc fc fc fc fc fc fc fc fa fb fb fb ffff88802520d200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88802520d280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88802520d300: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88802520d380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================