wlan1: send auth to aa:09:b7:99:c0:d7 (try 2/3) wlan1: send auth to aa:09:b7:99:c0:d7 (try 3/3) wlan1: authentication with aa:09:b7:99:c0:d7 timed out ================================================================== BUG: KASAN: slab-use-after-free in __lock_acquire+0x78/0x2100 kernel/locking/lockdep.c:5089 Read of size 8 at addr ffff888043b6f0f8 by task kworker/u4:11/1095 CPU: 0 UID: 0 PID: 1095 Comm: kworker/u4:11 Not tainted 6.13.0-rc2-syzkaller-00362-g2d8308bf5b67 #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:5089 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849 __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:340 [inline] simple_recursive_removal+0x35/0x8f0 fs/libfs.c:618 debugfs_remove+0x49/0x70 fs/debugfs/inode.c:812 ieee80211_sta_debugfs_remove+0x40/0x60 net/mac80211/debugfs_sta.c:1284 __sta_info_destroy_part2+0x35e/0x450 net/mac80211/sta_info.c:1476 __sta_info_destroy net/mac80211/sta_info.c:1492 [inline] sta_info_destroy_addr+0xf4/0x140 net/mac80211/sta_info.c:1504 ieee80211_destroy_auth_data+0x139/0x270 net/mac80211/mlme.c:4230 ieee80211_sta_work+0x1256/0x3890 net/mac80211/mlme.c:7878 cfg80211_wiphy_work+0x2db/0x480 net/wireless/core.c:440 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Allocated by task 5316: 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:4119 [inline] slab_alloc_node mm/slub.c:4168 [inline] kmem_cache_alloc_lru_noprof+0x1dd/0x390 mm/slub.c:4187 __d_alloc+0x31/0x700 fs/dcache.c:1646 d_alloc fs/dcache.c:1726 [inline] d_alloc_parallel+0xdf/0x1600 fs/dcache.c:2490 __lookup_slow+0x117/0x3f0 fs/namei.c:1776 lookup_one_len+0x18b/0x2d0 fs/namei.c:2905 start_creating+0x187/0x310 fs/debugfs/inode.c:378 debugfs_create_dir+0x25/0x430 fs/debugfs/inode.c:582 ieee80211_sta_debugfs_add+0x132/0x820 net/mac80211/debugfs_sta.c:1259 sta_info_insert_finish net/mac80211/sta_info.c:881 [inline] sta_info_insert_rcu+0xecf/0x1900 net/mac80211/sta_info.c:949 sta_info_insert+0x16/0xc0 net/mac80211/sta_info.c:954 ieee80211_prep_connection+0xecd/0x12d0 net/mac80211/mlme.c:8396 ieee80211_mgd_auth+0xd42/0x14c0 net/mac80211/mlme.c:8641 rdev_auth net/wireless/rdev-ops.h:486 [inline] cfg80211_mlme_auth+0x59f/0x970 net/wireless/mlme.c:291 cfg80211_conn_do_work+0x5ed/0xe60 net/wireless/sme.c:183 cfg80211_sme_connect net/wireless/sme.c:628 [inline] cfg80211_connect+0x1486/0x1d10 net/wireless/sme.c:1527 nl80211_connect+0x188f/0x1fe0 net/wireless/nl80211.c:12239 genl_family_rcv_msg_doit net/netlink/genetlink.c:1115 [inline] genl_family_rcv_msg net/netlink/genetlink.c:1195 [inline] genl_rcv_msg+0xb14/0xec0 net/netlink/genetlink.c:1210 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2542 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1219 netlink_unicast_kernel net/netlink/af_netlink.c:1321 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1347 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1891 sock_sendmsg_nosec net/socket.c:711 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:726 ____sys_sendmsg+0x52a/0x7e0 net/socket.c:2583 ___sys_sendmsg net/socket.c:2637 [inline] __sys_sendmsg+0x269/0x350 net/socket.c:2669 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 46: 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:582 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:4613 [inline] kmem_cache_free+0x195/0x410 mm/slub.c:4715 rcu_do_batch kernel/rcu/tree.c:2567 [inline] rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2823 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561 do_softirq+0x11b/0x1e0 kernel/softirq.c:462 __local_bh_enable_ip+0x1bb/0x200 kernel/softirq.c:389 spin_unlock_bh include/linux/spinlock.h:396 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:820 [inline] nsim_dev_trap_report_work+0x7c4/0xb50 drivers/net/netdevsim/dev.c:851 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 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+0xac/0xc0 mm/kasan/generic.c:544 __call_rcu_common kernel/rcu/tree.c:3086 [inline] call_rcu+0x167/0xa70 kernel/rcu/tree.c:3190 __dentry_kill+0x497/0x630 fs/dcache.c:644 dput+0x19f/0x2b0 fs/dcache.c:867 find_next_child fs/libfs.c:611 [inline] simple_recursive_removal+0x2bd/0x8f0 fs/libfs.c:626 debugfs_remove+0x49/0x70 fs/debugfs/inode.c:812 ieee80211_debugfs_remove_netdev net/mac80211/debugfs_netdev.c:1021 [inline] ieee80211_debugfs_recreate_netdev+0xc4/0x1400 net/mac80211/debugfs_netdev.c:1043 drv_remove_interface+0x1e1/0x590 net/mac80211/driver-ops.c:120 _ieee80211_change_mac net/mac80211/iface.c:277 [inline] ieee80211_change_mac+0xaf5/0x11e0 net/mac80211/iface.c:309 dev_set_mac_address+0x327/0x510 net/core/dev.c:9207 bond_set_mac_address+0x28e/0x7f0 drivers/net/bonding/bond_main.c:4903 dev_set_mac_address+0x327/0x510 net/core/dev.c:9207 dev_set_mac_address_user+0x31/0x50 net/core/dev.c:9226 do_setlink+0x74b/0x4210 net/core/rtnetlink.c:3064 rtnl_changelink net/core/rtnetlink.c:3723 [inline] __rtnl_newlink net/core/rtnetlink.c:3874 [inline] rtnl_newlink+0x1519/0x2150 net/core/rtnetlink.c:4011 rtnetlink_rcv_msg+0x791/0xcf0 net/core/rtnetlink.c:6921 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2542 netlink_unicast_kernel net/netlink/af_netlink.c:1321 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1347 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1891 sock_sendmsg_nosec net/socket.c:711 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:726 ____sys_sendmsg+0x52a/0x7e0 net/socket.c:2583 ___sys_sendmsg net/socket.c:2637 [inline] __sys_sendmsg+0x269/0x350 net/socket.c:2669 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 ffff888043b6f028 which belongs to the cache dentry of size 312 The buggy address is located 208 bytes inside of freed 312-byte region [ffff888043b6f028, ffff888043b6f160) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x43b6e head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88803674a601 anon flags: 0x4fff00000000040(head|node=1|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 04fff00000000040 ffff88801be918c0 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000150015 00000001f5000000 ffff88803674a601 head: 04fff00000000040 ffff88801be918c0 0000000000000000 dead000000000001 head: 0000000000000000 0000000000150015 00000001f5000000 ffff88803674a601 head: 04fff00000000001 ffffea00010edb81 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 5198, tgid 5198 (dhcpcd-run-hook), ts 46406744781, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1556 prep_new_page mm/page_alloc.c:1564 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3474 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4751 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2269 alloc_slab_page+0x6a/0x110 mm/slub.c:2423 allocate_slab+0x5a/0x2b0 mm/slub.c:2589 new_slab mm/slub.c:2642 [inline] ___slab_alloc+0xc27/0x14a0 mm/slub.c:3830 __slab_alloc+0x58/0xa0 mm/slub.c:3920 __slab_alloc_node mm/slub.c:3995 [inline] slab_alloc_node mm/slub.c:4156 [inline] kmem_cache_alloc_lru_noprof+0x26c/0x390 mm/slub.c:4187 __d_alloc+0x31/0x700 fs/dcache.c:1646 d_alloc fs/dcache.c:1726 [inline] d_alloc_parallel+0xdf/0x1600 fs/dcache.c:2490 __lookup_slow+0x117/0x3f0 fs/namei.c:1776 lookup_slow+0x53/0x70 fs/namei.c:1808 walk_component+0x2e1/0x410 fs/namei.c:2112 lookup_last fs/namei.c:2610 [inline] path_lookupat+0x16f/0x450 fs/namei.c:2634 filename_lookup+0x2a3/0x670 fs/namei.c:2663 page_owner free stack trace missing Memory state around the buggy address: ffff888043b6ef80: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ffff888043b6f000: fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb >ffff888043b6f080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888043b6f100: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff888043b6f180: fc fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================