wlan1: authentication with 08:02:11:00:00:00 timed out ================================================================== BUG: KASAN: slab-use-after-free in __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] BUG: KASAN: slab-use-after-free in _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 Read of size 1 at addr ffff88807a2023c0 by task kworker/u8:7/2997 CPU: 1 UID: 0 PID: 2997 Comm: kworker/u8:7 Not tainted 6.15.0-rc1-syzkaller-00221-gb65999e7238e #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: events_unbound cfg80211_wiphy_work Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0x16e/0x5b0 mm/kasan/report.c:521 kasan_report+0x143/0x180 mm/kasan/report.c:634 __kasan_check_byte+0x2c/0x40 mm/kasan/common.c:557 kasan_check_byte include/linux/kasan.h:399 [inline] lock_acquire+0x89/0x2f0 kernel/locking/lockdep.c:5840 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] lockref_get+0x15/0x60 lib/lockref.c:50 dget include/linux/dcache.h:351 [inline] simple_recursive_removal+0x35/0x8f0 fs/libfs.c:610 debugfs_remove+0x49/0x70 fs/debugfs/inode.c:805 ieee80211_sta_debugfs_remove+0x40/0x60 net/mac80211/debugfs_sta.c:1285 __sta_info_destroy_part2+0x35e/0x450 net/mac80211/sta_info.c:1508 __sta_info_destroy net/mac80211/sta_info.c:1524 [inline] sta_info_destroy_addr+0xf4/0x140 net/mac80211/sta_info.c:1536 ieee80211_destroy_auth_data+0x123/0x250 net/mac80211/mlme.c:4593 ieee80211_sta_work+0x12c8/0x3670 net/mac80211/mlme.c:8306 cfg80211_wiphy_work+0x2f0/0x490 net/wireless/core.c:435 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xac3/0x18e0 kernel/workqueue.c:3319 worker_thread+0x870/0xd50 kernel/workqueue.c:3400 kthread+0x7b7/0x940 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 47: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_slab_alloc+0x66/0x80 mm/kasan/common.c:345 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4151 [inline] slab_alloc_node mm/slub.c:4200 [inline] kmem_cache_alloc_lru_noprof+0x1e5/0x390 mm/slub.c:4219 __d_alloc+0x31/0x740 fs/dcache.c:1681 d_alloc fs/dcache.c:1760 [inline] d_alloc_parallel+0xe9/0x1660 fs/dcache.c:2525 __lookup_slow+0x127/0x400 fs/namei.c:1792 lookup_one_len+0x1f3/0x310 fs/namei.c:2920 start_creating+0x187/0x310 fs/debugfs/inode.c:391 debugfs_create_dir+0x25/0x430 fs/debugfs/inode.c:586 ieee80211_sta_debugfs_add+0x136/0x840 net/mac80211/debugfs_sta.c:1260 sta_info_insert_finish net/mac80211/sta_info.c:899 [inline] sta_info_insert_rcu+0xecf/0x1900 net/mac80211/sta_info.c:967 sta_info_insert+0x16/0xc0 net/mac80211/sta_info.c:972 ieee80211_prep_connection+0xf05/0x1310 net/mac80211/mlme.c:8850 ieee80211_mgd_auth+0xf04/0x1770 net/mac80211/mlme.c:9115 rdev_auth net/wireless/rdev-ops.h:486 [inline] cfg80211_mlme_auth+0x59f/0x970 net/wireless/mlme.c:291 cfg80211_conn_do_work+0x637/0xed0 net/wireless/sme.c:183 cfg80211_conn_work+0x2c2/0x530 net/wireless/sme.c:273 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xac3/0x18e0 kernel/workqueue.c:3319 worker_thread+0x870/0xd50 kernel/workqueue.c:3400 kthread+0x7b7/0x940 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Freed by task 15: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x59/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2389 [inline] slab_free mm/slub.c:4646 [inline] kmem_cache_free+0x197/0x410 mm/slub.c:4748 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0xaac/0x17a0 kernel/rcu/tree.c:2824 handle_softirqs+0x2d6/0x9b0 kernel/softirq.c:579 run_ksoftirqd+0xcf/0x130 kernel/softirq.c:968 smpboot_thread_fn+0x576/0xaa0 kernel/smpboot.c:164 kthread+0x7b7/0x940 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Last potentially related work creation: kasan_save_stack+0x3f/0x60 mm/kasan/common.c:47 kasan_record_aux_stack+0xbf/0xd0 mm/kasan/generic.c:548 __call_rcu_common kernel/rcu/tree.c:3082 [inline] call_rcu+0x172/0xad0 kernel/rcu/tree.c:3202 __dentry_kill+0x497/0x630 fs/dcache.c:679 dput+0x19f/0x2b0 fs/dcache.c:902 find_next_child fs/libfs.c:603 [inline] simple_recursive_removal+0x2bd/0x8f0 fs/libfs.c:618 debugfs_remove+0x49/0x70 fs/debugfs/inode.c:805 ieee80211_debugfs_remove_netdev net/mac80211/debugfs_netdev.c:1021 [inline] ieee80211_debugfs_recreate_netdev+0xc6/0x1520 net/mac80211/debugfs_netdev.c:1034 drv_remove_interface+0x208/0x5c0 net/mac80211/driver-ops.c:125 _ieee80211_change_mac net/mac80211/iface.c:277 [inline] ieee80211_change_mac+0xab2/0x1160 net/mac80211/iface.c:309 netif_set_mac_address+0x329/0x510 net/core/dev.c:9649 dev_set_mac_address_user+0x154/0x290 net/core/dev_api.c:94 dev_ioctl+0x819/0x1380 net/core/dev_ioctl.c:821 sock_do_ioctl+0x233/0x490 net/socket.c:1204 sock_ioctl+0x644/0x900 net/socket.c:1311 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88807a2022f0 which belongs to the cache dentry of size 312 The buggy address is located 208 bytes inside of freed 312-byte region [ffff88807a2022f0, ffff88807a202428) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7a202 head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 ksm flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff888140408780 ffffea0001e87c80 dead000000000003 raw: 0000000000000000 0000000000150015 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff888140408780 ffffea0001e87c80 dead000000000003 head: 0000000000000000 0000000000150015 00000000f5000000 0000000000000000 head: 00fff00000000001 ffffea0001e88081 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 5223, tgid 5223 (udevd), ts 44122036152, free_ts 23429402160 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1717 prep_new_page mm/page_alloc.c:1725 [inline] get_page_from_freelist+0x352b/0x36c0 mm/page_alloc.c:3652 __alloc_frozen_pages_noprof+0x211/0x5b0 mm/page_alloc.c:4934 alloc_pages_mpol+0x339/0x690 mm/mempolicy.c:2301 alloc_slab_page mm/slub.c:2459 [inline] allocate_slab+0x8f/0x3a0 mm/slub.c:2623 new_slab mm/slub.c:2676 [inline] ___slab_alloc+0xc3b/0x1500 mm/slub.c:3862 __slab_alloc+0x58/0xa0 mm/slub.c:3952 __slab_alloc_node mm/slub.c:4027 [inline] slab_alloc_node mm/slub.c:4188 [inline] kmem_cache_alloc_lru_noprof+0x274/0x390 mm/slub.c:4219 __d_alloc+0x31/0x740 fs/dcache.c:1681 d_alloc fs/dcache.c:1760 [inline] d_alloc_parallel+0xe9/0x1660 fs/dcache.c:2525 __lookup_slow+0x127/0x400 fs/namei.c:1792 lookup_slow+0x53/0x70 fs/namei.c:1824 walk_component+0x2f4/0x420 fs/namei.c:2128 lookup_last fs/namei.c:2626 [inline] path_lookupat+0x169/0x440 fs/namei.c:2650 filename_lookup+0x290/0x670 fs/namei.c:2679 vfs_statx+0xfe/0x200 fs/stat.c:346 page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0xde8/0x10a0 mm/page_alloc.c:2680 __free_pages mm/page_alloc.c:5044 [inline] free_contig_range+0x154/0x430 mm/page_alloc.c:6900 destroy_args+0x94/0x4b0 mm/debug_vm_pgtable.c:1017 debug_vm_pgtable+0x555/0x590 mm/debug_vm_pgtable.c:1397 do_one_initcall+0x24a/0x940 init/main.c:1257 do_initcall_level+0x157/0x210 init/main.c:1319 do_initcalls+0x71/0xd0 init/main.c:1335 kernel_init_freeable+0x432/0x5d0 init/main.c:1567 kernel_init+0x1d/0x2b0 init/main.c:1457 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff88807a202280: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fa fb ffff88807a202300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88807a202380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807a202400: fb fb fb fb fb fc fc fc fc fc fc fc fc fa fb fb ffff88807a202480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================