================================================================== BUG: KASAN: slab-use-after-free in __raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline] BUG: KASAN: slab-use-after-free in _raw_spin_lock+0x48/0x60 kernel/locking/spinlock.c:173 Read of size 1 at addr ffff0000fcd7c9a0 by task syz.2.760/9122 CPU: 1 UID: 0 PID: 9122 Comm: syz.2.760 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/23/2026 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xb0/0x238 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:482 kasan_report+0x8c/0xc4 mm/kasan/report.c:595 __kasan_check_byte+0x3c/0x54 mm/kasan/common.c:585 kasan_check_byte include/linux/kasan.h:402 [inline] lock_acquire+0xa4/0x320 kernel/locking/lockdep.c:5916 __raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline] _raw_spin_lock+0x48/0x60 kernel/locking/spinlock.c:173 spin_lock include/linux/spinlock.h:347 [inline] lockref_get+0x20/0x78 lib/lockref.c:50 dget include/linux/dcache.h:364 [inline] __simple_recursive_removal+0x40/0x430 fs/libfs.c:601 simple_recursive_removal+0x2c/0x3c fs/libfs.c:646 debugfs_remove+0x60/0x88 fs/debugfs/inode.c:784 ieee80211_sta_debugfs_remove+0x44/0x6c net/mac80211/debugfs_sta.c:1277 __sta_info_destroy_part2+0x2fc/0x3e0 net/mac80211/sta_info.c:1613 __sta_info_flush+0x4c0/0x5f0 net/mac80211/sta_info.c:1746 sta_info_flush net/mac80211/sta_info.h:984 [inline] ieee80211_ibss_disconnect+0x250/0x6c8 net/mac80211/ibss.c:672 ieee80211_ibss_leave+0x4c/0x114 net/mac80211/ibss.c:1789 ieee80211_leave_ibss+0x20/0x30 net/mac80211/cfg.c:3621 rdev_leave_ibss net/wireless/rdev-ops.h:577 [inline] cfg80211_leave_ibss+0x1c8/0x454 net/wireless/ibss.c:207 cfg80211_leave_locked+0x11c/0x338 net/wireless/core.c:1544 cfg80211_change_iface+0x2a4/0x990 net/wireless/util.c:1316 nl80211_set_interface+0x458/0x6b4 net/wireless/nl80211.c:5109 genl_family_rcv_msg_doit+0x1e4/0x2d4 net/netlink/genetlink.c:1114 genl_family_rcv_msg net/netlink/genetlink.c:1194 [inline] genl_rcv_msg+0x43c/0x620 net/netlink/genetlink.c:1209 netlink_rcv_skb+0x238/0x414 net/netlink/af_netlink.c:2575 genl_rcv+0x38/0x50 net/netlink/genetlink.c:1218 netlink_unicast_kernel net/netlink/af_netlink.c:1338 [inline] netlink_unicast+0x600/0x7f8 net/netlink/af_netlink.c:1364 netlink_sendmsg+0x648/0x948 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:800 [inline] __sock_sendmsg+0xc8/0x17c net/socket.c:815 ____sys_sendmsg+0x3d0/0x6c8 net/socket.c:2713 ___sys_sendmsg+0x198/0x224 net/socket.c:2767 __sys_sendmsg+0x158/0x204 net/socket.c:2799 __do_sys_sendmsg net/socket.c:2804 [inline] __se_sys_sendmsg net/socket.c:2802 [inline] __arm64_sys_sendmsg+0x88/0x9c net/socket.c:2802 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:796 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:815 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 Allocated by task 4345: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:78 kasan_save_alloc_info+0x40/0x50 mm/kasan/generic.c:570 unpoison_slab_object mm/kasan/common.c:351 [inline] __kasan_slab_alloc+0x70/0x88 mm/kasan/common.c:377 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4683 [inline] slab_alloc_node mm/slub.c:4996 [inline] kmem_cache_alloc_lru_noprof+0x26c/0x5d8 mm/slub.c:5029 __d_alloc+0x50/0x600 fs/dcache.c:1909 d_alloc_parallel+0xc4/0xf2c fs/dcache.c:2772 lookup_open+0x234/0x1180 fs/namei.c:4500 open_last_lookups fs/namei.c:4796 [inline] path_openat+0x50c/0x18f0 fs/namei.c:5026 do_file_open+0x1c8/0x2e8 fs/namei.c:5058 do_sys_openat2+0x114/0x1e8 fs/open.c:1417 do_sys_open+0xb0/0xe0 fs/open.c:1423 __do_sys_openat fs/open.c:1439 [inline] __se_sys_openat fs/open.c:1434 [inline] __arm64_sys_openat+0xa8/0xc4 fs/open.c:1434 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:796 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:815 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 Freed by task 6489: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:78 kasan_save_free_info+0x54/0x6c mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:264 [inline] __kasan_slab_free+0x74/0xa4 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2748 [inline] slab_free mm/slub.c:6509 [inline] kmem_cache_free+0x184/0x680 mm/slub.c:6636 __d_free+0x30/0x40 fs/dcache.c:346 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x790/0xfbc kernel/rcu/tree.c:2919 rcu_core_si+0x10/0x1c kernel/rcu/tree.c:2936 handle_softirqs+0x324/0xcbc kernel/softirq.c:645 __do_softirq+0x14/0x20 kernel/softirq.c:679 Last potentially related work creation: kasan_save_stack+0x40/0x6c mm/kasan/common.c:57 kasan_record_aux_stack+0xb0/0xc8 mm/kasan/generic.c:556 __call_rcu_common kernel/rcu/tree.c:3181 [inline] call_rcu+0x104/0x634 kernel/rcu/tree.c:3301 dentry_free+0x100/0x308 fs/dcache.c:-1 dentry_kill+0x47c/0x7b0 fs/dcache.c:845 finish_dput+0x28/0x224 fs/dcache.c:1001 dput+0x60/0x64 fs/dcache.c:1042 end_dirop+0x80/0x94 fs/namei.c:2985 filename_unlinkat+0x2ec/0x45c fs/namei.c:5751 __do_sys_unlinkat fs/namei.c:5777 [inline] __se_sys_unlinkat fs/namei.c:5769 [inline] __arm64_sys_unlinkat+0xe0/0x108 fs/namei.c:5769 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:796 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:815 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 The buggy address belongs to the object at ffff0000fcd7c8d0 which belongs to the cache dentry of size 312 The buggy address is located 208 bytes inside of freed 312-byte region [ffff0000fcd7c8d0, ffff0000fcd7ca08) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff0000fcd7c000 pfn:0x13cd7c head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff0000fcd7ded9 flags: 0x5ffc00000000240(workingset|head|node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000240 ffff0000c186fa00 fffffdffc3e0b590 fffffdffc36b5f10 raw: ffff0000fcd7c000 000000020015000b 00000000f5000000 ffff0000fcd7ded9 head: 05ffc00000000240 ffff0000c186fa00 fffffdffc3e0b590 fffffdffc36b5f10 head: ffff0000fcd7c000 000000020015000b 00000000f5000000 ffff0000fcd7ded9 head: 05ffc00000000001 fffffdffc3f35f01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000fcd7c880: fb fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb ffff0000fcd7c900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff0000fcd7c980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000fcd7ca00: fb fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 ffff0000fcd7ca80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== Unable to handle kernel NULL pointer dereference at virtual address 00000000000000d8 Mem abort info: ESR = 0x0000000096000006 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x06: level 2 translation fault Data abort info: ISV = 0, ISS = 0x00000006, ISS2 = 0x00000000 CM = 0, WnR = 0, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0 user pgtable: 4k pages, 48-bit VAs, pgdp=00000001041b9000 [00000000000000d8] pgd=080000013246d403, p4d=080000013246d403, pud=0800000124709403, pmd=0000000000000000 Internal error: Oops: 0000000096000006 [#1] SMP Modules linked in: CPU: 1 UID: 0 PID: 9122 Comm: syz.2.760 Tainted: G B syzkaller #0 PREEMPT Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/23/2026 pstate: 63400005 (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:122 [inline] pc : __cmpxchg_acq arch/arm64/include/asm/cmpxchg.h:170 [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 kernel/locking/rwsem.c:268 [inline] pc : __down_write_common kernel/locking/rwsem.c:1346 [inline] pc : __down_write kernel/locking/rwsem.c:1356 [inline] pc : down_write_nested+0xe8/0x2a8 kernel/locking/rwsem.c:1758 lr : instrument_read_write include/linux/instrumented.h:55 [inline] lr : atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:4457 [inline] lr : rwsem_write_trylock kernel/locking/rwsem.c:268 [inline] lr : __down_write_common kernel/locking/rwsem.c:1346 [inline] lr : __down_write kernel/locking/rwsem.c:1356 [inline] lr : down_write_nested+0xd8/0x2a8 kernel/locking/rwsem.c:1758 sp : ffff800095696ce0 x29: ffff800095696d40 x28: ffff0000d1cec000 x27: dfff800000000000 x26: 1fffe0001a39d82f x25: ffff0000d1cec178 x24: ffff800095696ce0 x23: dfff800000000000 x22: ffff700012ad2d9c x21: 0000000000000002 x20: 67b1800080d4c1ac x19: 00000000000000d8 x18: 1fffe000349fbc28 x17: 0000000000000003 x16: ffff8000897a7000 x15: ffff8000898576c0 x14: ffff0001a4fde14c x13: 0000000000000001 x12: 0000000000000000 x11: 0000000000000000 x10: 0000000000000001 x9 : 0000000000000000 x8 : 0000000000000000 x7 : 0000000000000000 x6 : ffff800080d4c1ac x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800080452254 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:122 [inline] (P) __cmpxchg_acq arch/arm64/include/asm/cmpxchg.h:170 [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 kernel/locking/rwsem.c:268 [inline] (P) __down_write_common kernel/locking/rwsem.c:1346 [inline] (P) __down_write kernel/locking/rwsem.c:1356 [inline] (P) down_write_nested+0xe8/0x2a8 kernel/locking/rwsem.c:1758 (P) inode_lock_nested include/linux/fs.h:1069 [inline] __simple_recursive_removal+0x7c/0x430 fs/libfs.c:606 simple_recursive_removal+0x2c/0x3c fs/libfs.c:646 debugfs_remove+0x60/0x88 fs/debugfs/inode.c:784 ieee80211_sta_debugfs_remove+0x44/0x6c net/mac80211/debugfs_sta.c:1277 __sta_info_destroy_part2+0x2fc/0x3e0 net/mac80211/sta_info.c:1613 __sta_info_flush+0x4c0/0x5f0 net/mac80211/sta_info.c:1746 sta_info_flush net/mac80211/sta_info.h:984 [inline] ieee80211_ibss_disconnect+0x250/0x6c8 net/mac80211/ibss.c:672 ieee80211_ibss_leave+0x4c/0x114 net/mac80211/ibss.c:1789 ieee80211_leave_ibss+0x20/0x30 net/mac80211/cfg.c:3621 rdev_leave_ibss net/wireless/rdev-ops.h:577 [inline] cfg80211_leave_ibss+0x1c8/0x454 net/wireless/ibss.c:207 cfg80211_leave_locked+0x11c/0x338 net/wireless/core.c:1544 cfg80211_change_iface+0x2a4/0x990 net/wireless/util.c:1316 nl80211_set_interface+0x458/0x6b4 net/wireless/nl80211.c:5109 genl_family_rcv_msg_doit+0x1e4/0x2d4 net/netlink/genetlink.c:1114 genl_family_rcv_msg net/netlink/genetlink.c:1194 [inline] genl_rcv_msg+0x43c/0x620 net/netlink/genetlink.c:1209 netlink_rcv_skb+0x238/0x414 net/netlink/af_netlink.c:2575 genl_rcv+0x38/0x50 net/netlink/genetlink.c:1218 netlink_unicast_kernel net/netlink/af_netlink.c:1338 [inline] netlink_unicast+0x600/0x7f8 net/netlink/af_netlink.c:1364 netlink_sendmsg+0x648/0x948 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:800 [inline] __sock_sendmsg+0xc8/0x17c net/socket.c:815 ____sys_sendmsg+0x3d0/0x6c8 net/socket.c:2713 ___sys_sendmsg+0x198/0x224 net/socket.c:2767 __sys_sendmsg+0x158/0x204 net/socket.c:2799 __do_sys_sendmsg net/socket.c:2804 [inline] __se_sys_sendmsg net/socket.c:2802 [inline] __arm64_sys_sendmsg+0x88/0x9c net/socket.c:2802 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:796 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:815 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 Code: f94013e8 d503201f aa0803e9 5280002a (c8e97e6a) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: f94013e8 ldr x8, [sp, #32] 4: d503201f nop 8: aa0803e9 mov x9, x8 c: 5280002a mov w10, #0x1 // #1 * 10: c8e97e6a casa x9, x10, [x19] <-- trapping instruction