wlan1: send auth to 08:02:11:00:00:00 (try 2/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 ffff88803a2b59c8 by task kworker/u32:9/1154 CPU: 3 UID: 0 PID: 1154 Comm: kworker/u32:9 Not tainted syzkaller #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 lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 __kasan_check_byte+0x36/0x50 mm/kasan/common.c:568 kasan_check_byte include/linux/kasan.h:399 [inline] lock_acquire kernel/locking/lockdep.c:5842 [inline] lock_acquire+0xfc/0x350 kernel/locking/lockdep.c:5825 __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/0x50 lib/lockref.c:50 dget include/linux/dcache.h:347 [inline] __simple_recursive_removal+0x3d/0x610 fs/libfs.c:609 debugfs_remove+0x5d/0x80 fs/debugfs/inode.c:799 ieee80211_sta_debugfs_remove+0x38/0x80 net/mac80211/debugfs_sta.c:1279 __sta_info_destroy_part2+0x32c/0x540 net/mac80211/sta_info.c:1550 __sta_info_destroy net/mac80211/sta_info.c:1566 [inline] __sta_info_destroy net/mac80211/sta_info.c:1557 [inline] sta_info_destroy_addr+0x98/0x150 net/mac80211/sta_info.c:1578 ieee80211_destroy_auth_data+0x17a/0x300 net/mac80211/mlme.c:4681 ieee80211_sta_work+0x2335/0x3060 net/mac80211/mlme.c:8411 ieee80211_iface_work+0x4a8/0x1360 net/mac80211/iface.c:1772 cfg80211_wiphy_work+0x2c4/0x580 net/wireless/core.c:435 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c2/0x780 kernel/kthread.c:463 ret_from_fork+0x56a/0x730 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 53: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:330 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:356 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4191 [inline] slab_alloc_node mm/slub.c:4240 [inline] kmem_cache_alloc_lru_noprof+0x1d0/0x3b0 mm/slub.c:4259 __d_alloc+0x32/0xae0 fs/dcache.c:1690 d_alloc_parallel+0x111/0x1480 fs/dcache.c:2549 __lookup_slow+0x193/0x460 fs/namei.c:1793 lookup_noperm+0xe1/0x110 fs/namei.c:2954 simple_start_creating+0xd1/0x1b0 fs/libfs.c:2303 start_creating.part.0+0x82/0x190 fs/debugfs/inode.c:396 start_creating fs/debugfs/inode.c:373 [inline] debugfs_create_dir+0x6c/0x5f0 fs/debugfs/inode.c:580 ieee80211_sta_debugfs_add+0x13b/0x9a0 net/mac80211/debugfs_sta.c:1254 sta_info_insert_finish net/mac80211/sta_info.c:941 [inline] sta_info_insert_rcu+0xd8f/0x1b70 net/mac80211/sta_info.c:1009 sta_info_insert+0x16/0xd0 net/mac80211/sta_info.c:1014 ieee80211_prep_connection+0x7b4/0x1930 net/mac80211/mlme.c:9010 ieee80211_mgd_auth+0xdcd/0x19c0 net/mac80211/mlme.c:9275 rdev_auth net/wireless/rdev-ops.h:486 [inline] cfg80211_mlme_auth+0x564/0x980 net/wireless/mlme.c:291 cfg80211_conn_do_work+0x64c/0xfd0 net/wireless/sme.c:182 cfg80211_conn_work+0x268/0x3f0 net/wireless/sme.c:272 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c2/0x780 kernel/kthread.c:463 ret_from_fork+0x56a/0x730 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Freed by task 0: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:243 [inline] __kasan_slab_free+0x60/0x70 mm/kasan/common.c:275 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2422 [inline] slab_free mm/slub.c:4695 [inline] kmem_cache_free+0x2d1/0x4d0 mm/slub.c:4797 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x799/0x1530 kernel/rcu/tree.c:2861 handle_softirqs+0x219/0x8e0 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Last potentially related work creation: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:548 __call_rcu_common.constprop.0+0xa5/0xa10 kernel/rcu/tree.c:3123 dentry_free+0xc2/0x160 fs/dcache.c:442 __dentry_kill+0x498/0x600 fs/dcache.c:688 dput.part.0+0x4b1/0x9b0 fs/dcache.c:911 dput+0x1f/0x30 fs/dcache.c:901 find_next_child+0x18f/0x280 fs/libfs.c:600 __simple_recursive_removal+0x2c4/0x610 fs/libfs.c:617 debugfs_remove+0x5d/0x80 fs/debugfs/inode.c:799 ieee80211_debugfs_remove_netdev net/mac80211/debugfs_netdev.c:1021 [inline] ieee80211_debugfs_recreate_netdev+0xb5/0x17e0 net/mac80211/debugfs_netdev.c:1034 drv_remove_interface+0x2bf/0x640 net/mac80211/driver-ops.c:125 _ieee80211_change_mac net/mac80211/iface.c:277 [inline] ieee80211_change_mac+0xa69/0x14a0 net/mac80211/iface.c:309 netif_set_mac_address+0x303/0x4a0 net/core/dev.c:9785 dev_set_mac_address_user+0xc6/0x270 net/core/dev_api.c:95 dev_ifsioc+0x1457/0x1f70 net/core/dev_ioctl.c:591 dev_ioctl+0x223/0x10e0 net/core/dev_ioctl.c:838 sock_do_ioctl+0x19d/0x280 net/socket.c:1252 sock_ioctl+0x227/0x6b0 net/socket.c:1359 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:598 [inline] __se_sys_ioctl fs/ioctl.c:584 [inline] __x64_sys_ioctl+0x18b/0x210 fs/ioctl.c:584 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88803a2b58f8 which belongs to the cache dentry of size 312 The buggy address is located 208 bytes inside of freed 312-byte region [ffff88803a2b58f8, ffff88803a2b5a30) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803a2b4eb0 pfn:0x3a2b4 head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888053d10401 ksm flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88810005fcc0 ffffea0001449380 dead000000000003 raw: ffff88803a2b4eb0 0000000000150011 00000000f5000000 ffff888053d10401 head: 00fff00000000040 ffff88810005fcc0 ffffea0001449380 dead000000000003 head: ffff88803a2b4eb0 0000000000150011 00000000f5000000 ffff888053d10401 head: 00fff00000000001 ffffea0000e8ad01 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 6025, tgid 6025 (udevd), ts 71150680800, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:2492 [inline] allocate_slab mm/slub.c:2660 [inline] new_slab+0x247/0x330 mm/slub.c:2714 ___slab_alloc+0xcf2/0x1750 mm/slub.c:3901 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3992 __slab_alloc_node mm/slub.c:4067 [inline] slab_alloc_node mm/slub.c:4228 [inline] kmem_cache_alloc_lru_noprof+0xf4/0x3b0 mm/slub.c:4259 __d_alloc+0x32/0xae0 fs/dcache.c:1690 d_alloc_parallel+0x111/0x1480 fs/dcache.c:2549 lookup_open.isra.0+0x665/0x1580 fs/namei.c:3630 open_last_lookups fs/namei.c:3807 [inline] path_openat+0x893/0x2cb0 fs/namei.c:4043 do_filp_open+0x20b/0x470 fs/namei.c:4073 do_sys_openat2+0x11b/0x1d0 fs/open.c:1435 do_sys_open fs/open.c:1450 [inline] __do_sys_openat fs/open.c:1466 [inline] __se_sys_openat fs/open.c:1461 [inline] __x64_sys_openat+0x174/0x210 fs/open.c:1461 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 page_owner free stack trace missing Memory state around the buggy address: ffff88803a2b5880: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc fa ffff88803a2b5900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88803a2b5980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88803a2b5a00: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fa fb ffff88803a2b5a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================