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 __lock_acquire+0x78/0x2100 kernel/locking/lockdep.c:5091 Read of size 8 at addr ffff8880455469a0 by task kworker/u4:5/1032 CPU: 0 UID: 0 PID: 1032 Comm: kworker/u4:5 Not tainted 6.14.0-rc3-syzkaller-00012-g2408a807bfc3 #0 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 lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x169/0x550 mm/kasan/report.c:489 kasan_report+0x143/0x180 mm/kasan/report.c:602 __lock_acquire+0x78/0x2100 kernel/locking/lockdep.c:5091 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5851 __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:352 [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:1284 __sta_info_destroy_part2+0x35e/0x450 net/mac80211/sta_info.c:1494 __sta_info_destroy net/mac80211/sta_info.c:1510 [inline] sta_info_destroy_addr+0xf4/0x140 net/mac80211/sta_info.c:1522 ieee80211_destroy_auth_data+0x123/0x250 net/mac80211/mlme.c:4414 ieee80211_sta_work+0x12c6/0x3610 net/mac80211/mlme.c:8019 cfg80211_wiphy_work+0x2f0/0x490 net/wireless/core.c:435 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xabe/0x18e0 kernel/workqueue.c:3317 worker_thread+0x870/0xd30 kernel/workqueue.c:3398 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Allocated by task 5323: 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:4115 [inline] slab_alloc_node mm/slub.c:4164 [inline] kmem_cache_alloc_lru_noprof+0x1dd/0x390 mm/slub.c:4183 __d_alloc+0x31/0x740 fs/dcache.c:1664 d_alloc fs/dcache.c:1743 [inline] d_alloc_parallel+0xdf/0x1630 fs/dcache.c:2507 __lookup_slow+0x117/0x400 fs/namei.c:1778 lookup_one_len+0x1ef/0x300 fs/namei.c:2907 start_creating+0x187/0x310 fs/debugfs/inode.c:391 debugfs_create_dir+0x25/0x430 fs/debugfs/inode.c:586 ieee80211_sta_debugfs_add+0x132/0x840 net/mac80211/debugfs_sta.c:1259 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+0xeff/0x1310 net/mac80211/mlme.c:8563 ieee80211_mgd_auth+0xedb/0x1750 net/mac80211/mlme.c:8828 rdev_auth net/wireless/rdev-ops.h:486 [inline] cfg80211_mlme_auth+0x59f/0x970 net/wireless/mlme.c:291 cfg80211_conn_do_work+0x601/0xeb0 net/wireless/sme.c:183 cfg80211_sme_connect net/wireless/sme.c:626 [inline] cfg80211_connect+0x190a/0x22f0 net/wireless/sme.c:1525 nl80211_connect+0x19ec/0x2140 net/wireless/nl80211.c:12236 genl_family_rcv_msg_doit net/netlink/genetlink.c:1115 [inline] genl_family_rcv_msg net/netlink/genetlink.c:1195 [inline] genl_rcv_msg+0xb1f/0xec0 net/netlink/genetlink.c:1210 netlink_rcv_skb+0x206/0x480 net/netlink/af_netlink.c:2543 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1219 netlink_unicast_kernel net/netlink/af_netlink.c:1322 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1348 netlink_sendmsg+0x8de/0xcb0 net/netlink/af_netlink.c:1892 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:733 ____sys_sendmsg+0x53a/0x860 net/socket.c:2573 ___sys_sendmsg net/socket.c:2627 [inline] __sys_sendmsg+0x269/0x350 net/socket.c:2659 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 16: 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:2353 [inline] slab_free mm/slub.c:4609 [inline] kmem_cache_free+0x195/0x410 mm/slub.c:4711 rcu_do_batch kernel/rcu/tree.c:2546 [inline] rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2802 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561 run_ksoftirqd+0xca/0x130 kernel/softirq.c:950 smpboot_thread_fn+0x544/0xa30 kernel/smpboot.c:164 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Last potentially related work creation: kasan_save_stack+0x3f/0x60 mm/kasan/common.c:47 kasan_record_aux_stack+0xaa/0xc0 mm/kasan/generic.c:548 __call_rcu_common kernel/rcu/tree.c:3065 [inline] call_rcu+0x168/0xac0 kernel/rcu/tree.c:3172 __dentry_kill+0x497/0x630 fs/dcache.c:662 dput+0x19f/0x2b0 fs/dcache.c:885 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+0xc4/0x14d0 net/mac80211/debugfs_netdev.c:1034 drv_remove_interface+0x1e1/0x590 net/mac80211/driver-ops.c:120 _ieee80211_change_mac net/mac80211/iface.c:277 [inline] ieee80211_change_mac+0xab2/0x1160 net/mac80211/iface.c:309 dev_set_mac_address+0x327/0x510 net/core/dev.c:9430 bond_set_mac_address+0x28e/0x830 drivers/net/bonding/bond_main.c:4903 dev_set_mac_address+0x327/0x510 net/core/dev.c:9430 dev_set_mac_address_user+0x31/0x50 net/core/dev.c:9449 do_setlink+0x784/0x4300 net/core/rtnetlink.c:3073 rtnl_changelink net/core/rtnetlink.c:3733 [inline] __rtnl_newlink net/core/rtnetlink.c:3885 [inline] rtnl_newlink+0x1704/0x1d30 net/core/rtnetlink.c:4022 rtnetlink_rcv_msg+0x791/0xcf0 net/core/rtnetlink.c:6912 netlink_rcv_skb+0x206/0x480 net/netlink/af_netlink.c:2543 netlink_unicast_kernel net/netlink/af_netlink.c:1322 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1348 netlink_sendmsg+0x8de/0xcb0 net/netlink/af_netlink.c:1892 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:733 ____sys_sendmsg+0x53a/0x860 net/socket.c:2573 ___sys_sendmsg net/socket.c:2627 [inline] __sys_sendmsg+0x269/0x350 net/socket.c:2659 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff8880455468d0 which belongs to the cache dentry of size 312 The buggy address is located 208 bytes inside of freed 312-byte region [ffff8880455468d0, ffff888045546a08) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x45546 head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff8880364e9301 flags: 0x4fff00000000040(head|node=1|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 04fff00000000040 ffff88803040b8c0 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000150015 00000000f5000000 ffff8880364e9301 head: 04fff00000000040 ffff88803040b8c0 dead000000000122 0000000000000000 head: 0000000000000000 0000000000150015 00000000f5000000 ffff8880364e9301 head: 04fff00000000001 ffffea0001155181 ffffffffffffffff 0000000000000000 head: 0000000000000002 0000000000000000 00000000ffffffff 0000000000000000 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_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_RECLAIMABLE), pid 5323, tgid 5322 (syz.0.0), ts 69211436262, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4739 alloc_pages_mpol+0x311/0x660 mm/mempolicy.c:2270 alloc_slab_page mm/slub.c:2423 [inline] allocate_slab+0x8f/0x3a0 mm/slub.c:2587 new_slab mm/slub.c:2640 [inline] ___slab_alloc+0xc27/0x14a0 mm/slub.c:3826 __slab_alloc+0x58/0xa0 mm/slub.c:3916 __slab_alloc_node mm/slub.c:3991 [inline] slab_alloc_node mm/slub.c:4152 [inline] kmem_cache_alloc_lru_noprof+0x26c/0x390 mm/slub.c:4183 __d_alloc+0x31/0x740 fs/dcache.c:1664 d_alloc fs/dcache.c:1743 [inline] d_alloc_parallel+0xdf/0x1630 fs/dcache.c:2507 __lookup_slow+0x117/0x400 fs/namei.c:1778 lookup_one_len+0x1ef/0x300 fs/namei.c:2907 start_creating+0x187/0x310 fs/debugfs/inode.c:391 __debugfs_create_file+0x7d/0x500 fs/debugfs/inode.c:437 debugfs_create_file_short+0x40/0x60 fs/debugfs/inode.c:485 add_link_files net/mac80211/debugfs_netdev.c:987 [inline] ieee80211_debugfs_add_netdev net/mac80211/debugfs_netdev.c:1013 [inline] ieee80211_debugfs_recreate_netdev+0xf61/0x14d0 net/mac80211/debugfs_netdev.c:1035 page_owner free stack trace missing Memory state around the buggy address: ffff888045546880: fb fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb ffff888045546900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888045546980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888045546a00: fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb ffff888045546a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================