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+0x48/0x60 kernel/locking/spinlock.c:154 Read of size 1 at addr ffff0000f01599c8 by task kworker/u8:6/316 CPU: 0 UID: 0 PID: 316 Comm: kworker/u8:6 Not tainted 6.15.0-rc7-syzkaller-00085-gd7fa1af5b33e #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: events_unbound cfg80211_wiphy_work Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:466 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xa8/0x254 mm/kasan/report.c:408 print_report+0x68/0x84 mm/kasan/report.c:521 kasan_report+0xb0/0x110 mm/kasan/report.c:634 __kasan_check_byte+0x3c/0x54 mm/kasan/common.c:557 kasan_check_byte include/linux/kasan.h:399 [inline] lock_acquire+0xb0/0x2e0 kernel/locking/lockdep.c:5840 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x48/0x60 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] lockref_get+0x20/0x78 lib/lockref.c:50 dget include/linux/dcache.h:345 [inline] simple_recursive_removal+0x40/0x718 fs/libfs.c:610 debugfs_remove+0x60/0x88 fs/debugfs/inode.c:805 ieee80211_sta_debugfs_remove+0x44/0x6c net/mac80211/debugfs_sta.c:1285 __sta_info_destroy_part2+0x300/0x3f4 net/mac80211/sta_info.c:1508 __sta_info_destroy net/mac80211/sta_info.c:1524 [inline] sta_info_destroy_addr+0xfc/0x148 net/mac80211/sta_info.c:1536 ieee80211_destroy_auth_data+0x11c/0x240 net/mac80211/mlme.c:4593 ieee80211_sta_work+0xc04/0x2ca0 net/mac80211/mlme.c:8306 ieee80211_iface_work+0xc70/0xd20 net/mac80211/iface.c:1698 cfg80211_wiphy_work+0x2a8/0x48c net/wireless/core.c:435 process_one_work+0x7e8/0x156c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3400 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:847 Allocated by task 8617: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:68 kasan_save_alloc_info+0x44/0x54 mm/kasan/generic.c:562 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_slab_alloc+0x70/0x88 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+0x23c/0x3ec mm/slub.c:4215 __d_alloc+0x44/0x648 fs/dcache.c:1681 d_alloc fs/dcache.c:1760 [inline] d_alloc_parallel+0x80/0x1110 fs/dcache.c:2525 __lookup_slow+0x104/0x378 fs/namei.c:1802 lookup_one_len+0x17c/0x2b0 fs/namei.c:2955 start_creating+0x19c/0x2e0 fs/debugfs/inode.c:391 debugfs_create_dir+0x30/0x3c8 fs/debugfs/inode.c:586 ieee80211_sta_debugfs_add+0x110/0x6cc net/mac80211/debugfs_sta.c:1260 sta_info_insert_finish net/mac80211/sta_info.c:899 [inline] sta_info_insert_rcu+0xc5c/0x1498 net/mac80211/sta_info.c:967 sta_info_insert+0x20/0xcc net/mac80211/sta_info.c:972 ieee80211_prep_connection+0xe4c/0x12cc net/mac80211/mlme.c:8850 ieee80211_mgd_auth+0xc18/0x139c net/mac80211/mlme.c:9115 ieee80211_auth+0x28/0x38 net/mac80211/cfg.c:2953 rdev_auth net/wireless/rdev-ops.h:486 [inline] cfg80211_mlme_auth+0x4a0/0x898 net/wireless/mlme.c:291 cfg80211_conn_do_work+0x3d4/0x9ec net/wireless/sme.c:183 cfg80211_conn_work+0x224/0x384 net/wireless/sme.c:273 process_one_work+0x7e8/0x156c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3400 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:847 Freed by task 12: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:68 kasan_save_free_info+0x58/0x70 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x68/0x88 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+0x184/0x550 mm/slub.c:4744 __d_free+0x28/0x38 fs/dcache.c:336 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0x848/0x17a4 kernel/rcu/tree.c:2824 rcu_core_si+0x10/0x1c kernel/rcu/tree.c:2841 handle_softirqs+0x328/0xc88 kernel/softirq.c:579 __do_softirq+0x14/0x20 kernel/softirq.c:613 Last potentially related work creation: kasan_save_stack+0x40/0x6c mm/kasan/common.c:47 kasan_record_aux_stack+0xb0/0xc8 mm/kasan/generic.c:548 __call_rcu_common kernel/rcu/tree.c:3082 [inline] call_rcu+0xfc/0x96c kernel/rcu/tree.c:3202 dentry_free+0xa4/0x170 fs/dcache.c:-1 __dentry_kill+0x434/0x594 fs/dcache.c:679 dput+0x1b8/0x290 fs/dcache.c:902 find_next_child fs/libfs.c:603 [inline] simple_recursive_removal+0x240/0x718 fs/libfs.c:618 debugfs_remove+0x60/0x88 fs/debugfs/inode.c:805 ieee80211_debugfs_remove_netdev net/mac80211/debugfs_netdev.c:1021 [inline] ieee80211_debugfs_recreate_netdev+0xb8/0x133c net/mac80211/debugfs_netdev.c:1034 drv_remove_interface+0x1cc/0x598 net/mac80211/driver-ops.c:125 _ieee80211_change_mac net/mac80211/iface.c:277 [inline] ieee80211_change_mac+0x8a4/0xf20 net/mac80211/iface.c:309 netif_set_mac_address+0x1ec/0x408 net/core/dev.c:9584 dev_set_mac_address_user+0x10c/0x21c net/core/dev_api.c:94 dev_ifsioc+0x940/0xb90 net/core/dev_ioctl.c:577 dev_ioctl+0x4b0/0xc74 net/core/dev_ioctl.c:821 sock_do_ioctl+0x200/0x2b4 net/socket.c:1204 sock_ioctl+0x57c/0x84c net/socket.c:1311 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl fs/ioctl.c:892 [inline] __arm64_sys_ioctl+0x14c/0x1c4 fs/ioctl.c:892 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 The buggy address belongs to the object at ffff0000f01598f8 which belongs to the cache dentry of size 312 The buggy address is located 208 bytes inside of freed 312-byte region [ffff0000f01598f8, ffff0000f0159a30) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x130158 head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff0000c2591401 anon flags: 0x5ffc00000000040(head|node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000040 ffff0000c18b08c0 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000150015 00000000f5000000 ffff0000c2591401 head: 05ffc00000000040 ffff0000c18b08c0 0000000000000000 dead000000000001 head: 0000000000000000 0000000000150015 00000000f5000000 ffff0000c2591401 head: 05ffc00000000001 fffffdffc3c05601 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000f0159880: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc fa ffff0000f0159900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff0000f0159980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000f0159a00: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fa fb ffff0000f0159a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== Unable to handle kernel NULL pointer dereference at virtual address 00000000000000d8 Mem abort info: ESR = 0x0000000096000004 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x04: level 0 translation fault Data abort info: ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000 CM = 0, WnR = 0, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 user pgtable: 4k pages, 48-bit VAs, pgdp=000000010d3db000 [00000000000000d8] pgd=0000000000000000, p4d=0000000000000000 Internal error: Oops: 0000000096000004 [#1] SMP Modules linked in: CPU: 0 UID: 0 PID: 316 Comm: kworker/u8:6 Tainted: G B 6.15.0-rc7-syzkaller-00085-gd7fa1af5b33e #0 PREEMPT Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: events_unbound cfg80211_wiphy_work pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __lse__cmpxchg_case_acq_64 arch/arm64/include/asm/atomic_lse.h:272 [inline] pc : __cmpxchg_case_acq_64 arch/arm64/include/asm/cmpxchg.h:121 [inline] pc : __cmpxchg_acq arch/arm64/include/asm/cmpxchg.h:169 [inline] pc : raw_atomic64_cmpxchg_acquire include/linux/atomic/atomic-arch-fallback.h:4181 [inline] pc : raw_atomic64_try_cmpxchg_acquire include/linux/atomic/atomic-arch-fallback.h:4299 [inline] pc : raw_atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-long.h:1482 [inline] pc : atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:4458 [inline] pc : rwsem_write_trylock+0x9c/0x34c kernel/locking/rwsem.c:267 lr : instrument_atomic_read_write include/linux/instrumented.h:96 [inline] lr : atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:4457 [inline] lr : rwsem_write_trylock+0x8c/0x34c kernel/locking/rwsem.c:267 sp : ffff80009bc573a0 x29: ffff80009bc57420 x28: ffff0000d4da0d80 x27: 0000000000000003 x26: dfff800000000000 x25: dfff800000000000 x24: 0000000000000000 x23: 0000000000000000 x22: 1ffff0001378ae78 x21: dfff800000000000 x20: ffff80009bc573c0 x19: 00000000000000d8 x18: 1fffe0003386aa76 x17: ffff80008f31e000 x16: ffff800080519464 x15: 0000000000000001 x14: 1ffff0001378ae7c x13: 0000000000000000 x12: 0000000000000000 x11: ffff70001378ae7d x10: dfff800000000000 x9 : 1ffff0001378ae7c x8 : 0000000000000001 x7 : 0000000000000004 x6 : ffff800080dc29e8 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff8000805194f0 x2 : 0000000000000001 x1 : 0000000000000008 x0 : 0000000000000001 Call trace: __lse__cmpxchg_case_acq_64 arch/arm64/include/asm/atomic_lse.h:272 [inline] (P) __cmpxchg_case_acq_64 arch/arm64/include/asm/cmpxchg.h:121 [inline] (P) __cmpxchg_acq arch/arm64/include/asm/cmpxchg.h:169 [inline] (P) raw_atomic64_cmpxchg_acquire include/linux/atomic/atomic-arch-fallback.h:4181 [inline] (P) raw_atomic64_try_cmpxchg_acquire include/linux/atomic/atomic-arch-fallback.h:4299 [inline] (P) raw_atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-long.h:1482 [inline] (P) atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:4458 [inline] (P) rwsem_write_trylock+0x9c/0x34c kernel/locking/rwsem.c:267 (P) __down_write_common kernel/locking/rwsem.c:1303 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0x60/0xc0 kernel/locking/rwsem.c:1578 inode_lock include/linux/fs.h:867 [inline] simple_recursive_removal+0x88/0x718 fs/libfs.c:615 debugfs_remove+0x60/0x88 fs/debugfs/inode.c:805 ieee80211_sta_debugfs_remove+0x44/0x6c net/mac80211/debugfs_sta.c:1285 __sta_info_destroy_part2+0x300/0x3f4 net/mac80211/sta_info.c:1508 __sta_info_destroy net/mac80211/sta_info.c:1524 [inline] sta_info_destroy_addr+0xfc/0x148 net/mac80211/sta_info.c:1536 ieee80211_destroy_auth_data+0x11c/0x240 net/mac80211/mlme.c:4593 ieee80211_sta_work+0xc04/0x2ca0 net/mac80211/mlme.c:8306 ieee80211_iface_work+0xc70/0xd20 net/mac80211/iface.c:1698 cfg80211_wiphy_work+0x2a8/0x48c net/wireless/core.c:435 process_one_work+0x7e8/0x156c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3400 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:847 Code: f94023f7 d503201f aa1703f8 52800028 (c8f87e68) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: f94023f7 ldr x23, [sp, #64] 4: d503201f nop 8: aa1703f8 mov x24, x23 c: 52800028 mov w8, #0x1 // #1 * 10: c8f87e68 casa x24, x8, [x19] <-- trapping instruction