wlan1: send auth to 08:02:11:00:00:00 (try 2/3) wlan1: send auth to 08:02:11:00:00:00 (try 3/3) 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 ffff8880441999c8 by task kworker/u4:11/3026 CPU: 0 UID: 0 PID: 3026 Comm: kworker/u4:11 Not tainted 6.15.0-rc6-syzkaller-00278-g172a9d94339c #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 Workqueue: events_unbound cfg80211_wiphy_work Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xb4/0x290 mm/kasan/report.c:521 kasan_report+0x118/0x150 mm/kasan/report.c:634 __kasan_check_byte+0x2a/0x40 mm/kasan/common.c:557 kasan_check_byte include/linux/kasan.h:399 [inline] lock_acquire+0x8d/0x360 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:345 [inline] simple_recursive_removal+0x35/0x8e0 fs/libfs.c:610 debugfs_remove+0x5b/0x70 fs/debugfs/inode.c:805 ieee80211_sta_debugfs_remove+0x40/0x70 net/mac80211/debugfs_sta.c:1285 __sta_info_destroy_part2+0x352/0x450 net/mac80211/sta_info.c:1508 __sta_info_destroy net/mac80211/sta_info.c:1524 [inline] sta_info_destroy_addr+0xf5/0x140 net/mac80211/sta_info.c:1536 ieee80211_destroy_auth_data+0x12d/0x260 net/mac80211/mlme.c:4593 ieee80211_sta_work+0x11cf/0x3600 net/mac80211/mlme.c:8306 cfg80211_wiphy_work+0x2dc/0x460 net/wireless/core.c:435 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xade/0x17a0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x711/0x8a0 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 5315: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:345 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4147 [inline] slab_alloc_node mm/slub.c:4196 [inline] kmem_cache_alloc_lru_noprof+0x1c6/0x3d0 mm/slub.c:4215 __d_alloc+0x31/0x6f0 fs/dcache.c:1681 d_alloc fs/dcache.c:1760 [inline] d_alloc_parallel+0xe0/0x14e0 fs/dcache.c:2525 __lookup_slow+0x116/0x3d0 fs/namei.c:1802 lookup_one_len+0x1aa/0x310 fs/namei.c:2955 start_creating+0x18d/0x310 fs/debugfs/inode.c:391 debugfs_create_dir+0x28/0x420 fs/debugfs/inode.c:586 ieee80211_sta_debugfs_add+0x12c/0x850 net/mac80211/debugfs_sta.c:1260 sta_info_insert_finish net/mac80211/sta_info.c:899 [inline] sta_info_insert_rcu+0xfac/0x1940 net/mac80211/sta_info.c:967 sta_info_insert+0x16/0xc0 net/mac80211/sta_info.c:972 ieee80211_prep_connection+0x10cd/0x1600 net/mac80211/mlme.c:8850 ieee80211_mgd_auth+0xee3/0x1770 net/mac80211/mlme.c:9115 rdev_auth net/wireless/rdev-ops.h:486 [inline] cfg80211_mlme_auth+0x632/0x9c0 net/wireless/mlme.c:291 cfg80211_conn_do_work+0x501/0xd10 net/wireless/sme.c:183 cfg80211_conn_work+0x2c0/0x440 net/wireless/sme.c:273 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xade/0x17a0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x711/0x8a0 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+0x3e/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x62/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2380 [inline] slab_free mm/slub.c:4642 [inline] kmem_cache_free+0x192/0x3f0 mm/slub.c:4744 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2824 handle_softirqs+0x283/0x870 kernel/softirq.c:579 run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968 smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:164 kthread+0x711/0x8a0 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+0x3e/0x60 mm/kasan/common.c:47 kasan_record_aux_stack+0xbc/0xd0 mm/kasan/generic.c:548 __call_rcu_common kernel/rcu/tree.c:3082 [inline] call_rcu+0x142/0x990 kernel/rcu/tree.c:3202 __dentry_kill+0x4d2/0x660 fs/dcache.c:679 dput+0x19f/0x2b0 fs/dcache.c:902 find_next_child fs/libfs.c:603 [inline] simple_recursive_removal+0x2c2/0x8e0 fs/libfs.c:618 debugfs_remove+0x5b/0x70 fs/debugfs/inode.c:805 ieee80211_debugfs_remove_netdev net/mac80211/debugfs_netdev.c:1021 [inline] ieee80211_debugfs_recreate_netdev+0xbf/0x1460 net/mac80211/debugfs_netdev.c:1034 drv_remove_interface+0x1fa/0x590 net/mac80211/driver-ops.c:125 _ieee80211_change_mac net/mac80211/iface.c:277 [inline] ieee80211_change_mac+0x912/0x12c0 net/mac80211/iface.c:309 netif_set_mac_address+0x2fc/0x4c0 net/core/dev.c:9584 do_setlink+0x908/0x40d0 net/core/rtnetlink.c:3103 rtnl_setlink+0x604/0x900 net/core/rtnetlink.c:3466 rtnetlink_rcv_msg+0x7cf/0xb70 net/core/rtnetlink.c:6955 netlink_rcv_skb+0x219/0x490 net/netlink/af_netlink.c:2534 netlink_unicast_kernel net/netlink/af_netlink.c:1313 [inline] netlink_unicast+0x75b/0x8d0 net/netlink/af_netlink.c:1339 netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1883 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg+0x219/0x270 net/socket.c:727 ____sys_sendmsg+0x505/0x830 net/socket.c:2566 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2620 __sys_sendmsg net/socket.c:2652 [inline] __do_sys_sendmsg net/socket.c:2657 [inline] __se_sys_sendmsg net/socket.c:2655 [inline] __x64_sys_sendmsg+0x19b/0x260 net/socket.c:2655 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff8880441998f8 which belongs to the cache dentry of size 312 The buggy address is located 208 bytes inside of freed 312-byte region [ffff8880441998f8, ffff888044199a30) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44198 head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888036150001 flags: 0x4fff00000000040(head|node=1|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 04fff00000000040 ffff88801b2ce780 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000150015 00000000f5000000 ffff888036150001 head: 04fff00000000040 ffff88801b2ce780 dead000000000122 0000000000000000 head: 0000000000000000 0000000000150015 00000000f5000000 ffff888036150001 head: 04fff00000000001 ffffea0001106601 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 5325, tgid 5323 (syz.0.0), ts 85405380095, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1d8/0x230 mm/page_alloc.c:1718 prep_new_page mm/page_alloc.c:1726 [inline] get_page_from_freelist+0x21ce/0x22b0 mm/page_alloc.c:3688 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4970 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2301 alloc_slab_page mm/slub.c:2450 [inline] allocate_slab+0x8a/0x3b0 mm/slub.c:2618 new_slab mm/slub.c:2672 [inline] ___slab_alloc+0xbfc/0x1480 mm/slub.c:3858 __slab_alloc mm/slub.c:3948 [inline] __slab_alloc_node mm/slub.c:4023 [inline] slab_alloc_node mm/slub.c:4184 [inline] kmem_cache_alloc_lru_noprof+0x288/0x3d0 mm/slub.c:4215 __d_alloc+0x31/0x6f0 fs/dcache.c:1681 d_alloc fs/dcache.c:1760 [inline] d_alloc_parallel+0xe0/0x14e0 fs/dcache.c:2525 __lookup_slow+0x116/0x3d0 fs/namei.c:1802 lookup_one_len+0x1aa/0x310 fs/namei.c:2955 start_creating+0x18d/0x310 fs/debugfs/inode.c:391 __debugfs_create_file+0x79/0x4f0 fs/debugfs/inode.c:437 debugfs_create_file_short+0x3f/0x60 fs/debugfs/inode.c:485 add_sta_files net/mac80211/debugfs_netdev.c:843 [inline] add_files net/mac80211/debugfs_netdev.c:958 [inline] ieee80211_debugfs_add_netdev net/mac80211/debugfs_netdev.c:1011 [inline] ieee80211_debugfs_recreate_netdev+0xb6f/0x1460 net/mac80211/debugfs_netdev.c:1035 ieee80211_runtime_change_iftype net/mac80211/iface.c:1911 [inline] ieee80211_if_change_type+0x53a/0x990 net/mac80211/iface.c:1933 page_owner free stack trace missing Memory state around the buggy address: ffff888044199880: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc fa ffff888044199900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888044199980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888044199a00: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fa fb ffff888044199a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================