================================================================== 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+0x2e/0x40 kernel/locking/spinlock.c:173 Read of size 1 at addr ffff88807b601930 by task syz.9.6795/30168 CPU: 0 UID: 0 PID: 30168 Comm: syz.9.6795 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 __kasan_check_byte+0x2a/0x40 mm/kasan/common.c:585 kasan_check_byte include/linux/kasan.h:402 [inline] lock_acquire+0x7d/0x350 kernel/locking/lockdep.c:5916 __raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:173 spin_lock include/linux/spinlock.h:347 [inline] lockref_get+0x15/0x60 lib/lockref.c:50 dget include/linux/dcache.h:370 [inline] __simple_recursive_removal+0x33/0x520 fs/libfs.c:601 debugfs_remove+0x5b/0x70 fs/debugfs/inode.c:784 ieee80211_sta_debugfs_remove+0x40/0x70 net/mac80211/debugfs_sta.c:1277 __sta_info_destroy_part2+0x32b/0x410 net/mac80211/sta_info.c:1613 __sta_info_flush+0x5b6/0x700 net/mac80211/sta_info.c:1746 sta_info_flush net/mac80211/sta_info.h:986 [inline] ieee80211_ibss_disconnect+0x316/0x800 net/mac80211/ibss.c:672 ieee80211_ibss_leave+0x47/0x140 net/mac80211/ibss.c:1789 rdev_leave_ibss net/wireless/rdev-ops.h:616 [inline] cfg80211_leave_ibss+0x1d7/0x410 net/wireless/ibss.c:208 cfg80211_leave+0x186/0x200 net/wireless/core.c:1667 cfg80211_netdev_notifier_call+0x1f4/0x1340 net/wireless/core.c:1841 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:86 call_netdevice_notifiers_extack net/core/dev.c:2351 [inline] call_netdevice_notifiers net/core/dev.c:2365 [inline] __dev_close_many+0x114/0x6e0 net/core/dev.c:1807 netif_close_many+0x249/0x660 net/core/dev.c:1862 netif_close+0x160/0x220 net/core/dev.c:1880 dev_close+0xf7/0x210 net/core/dev_api.c:221 nl80211_del_interface+0xcd/0x140 net/wireless/nl80211.c:5412 genl_family_rcv_msg_doit+0x233/0x340 net/netlink/genetlink.c:1114 genl_family_rcv_msg net/netlink/genetlink.c:1194 [inline] genl_rcv_msg+0x614/0x7a0 net/netlink/genetlink.c:1209 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2584 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1218 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1920 sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800 __sock_sendmsg net/socket.c:818 [inline] ____sys_sendmsg+0x54e/0x850 net/socket.c:2715 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2769 __sys_sendmsg net/socket.c:2801 [inline] __do_sys_sendmsg net/socket.c:2806 [inline] __se_sys_sendmsg net/socket.c:2804 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2804 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f998e39f559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f998f194028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f998e625fa0 RCX: 00007f998e39f559 RDX: 0000000000000000 RSI: 00002000000193c0 RDI: 0000000000000008 RBP: 00007f998e436b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f998e626038 R14: 00007f998e625fa0 R15: 00007ffd90aeff58 Allocated by task 4995: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:351 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:377 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4720 [inline] slab_alloc_node mm/slub.c:5033 [inline] kmem_cache_alloc_lru_noprof+0x29e/0x5f0 mm/slub.c:5066 __d_alloc+0x37/0x820 fs/dcache.c:1923 __d_alloc_parallel+0xde/0x1700 fs/dcache.c:2865 lookup_open+0x2c2/0x1970 fs/namei.c:4473 open_last_lookups fs/namei.c:4768 [inline] path_openat+0x70c/0x20f0 fs/namei.c:5007 do_file_open+0x23e/0x4a0 fs/namei.c:5039 do_sys_openat2+0x115/0x200 fs/open.c:1442 do_sys_open fs/open.c:1448 [inline] __do_sys_openat fs/open.c:1464 [inline] __se_sys_openat fs/open.c:1459 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1459 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 4984: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:264 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2780 [inline] slab_free mm/slub.c:6630 [inline] kmem_cache_free+0x182/0x650 mm/slub.c:6757 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x92e/0x1230 kernel/rcu/tree.c:2919 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 do_softirq+0x77/0xd0 kernel/softirq.c:569 __local_bh_enable_ip+0x100/0x140 kernel/softirq.c:473 local_bh_enable include/linux/bottom_half.h:33 [inline] __alloc_skb+0x1b1/0x7a0 net/core/skbuff.c:700 alloc_skb include/linux/skbuff.h:1390 [inline] alloc_skb_with_frags+0xc6/0x760 net/core/skbuff.c:6898 sock_alloc_send_pskb+0xc69/0xd90 net/core/sock.c:3093 unix_dgram_sendmsg+0x4ff/0x17e0 net/unix/af_unix.c:2148 sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800 __sock_sendmsg net/socket.c:818 [inline] __sys_sendto+0x408/0x5a0 net/socket.c:2283 __do_sys_sendto net/socket.c:2290 [inline] __se_sys_sendto net/socket.c:2286 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2286 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556 __call_rcu_common kernel/rcu/tree.c:3287 [inline] call_rcu+0x86/0x300 kernel/rcu/tree.c:3395 dentry_kill+0x530/0x910 fs/dcache.c:859 shrink_kill fs/dcache.c:1289 [inline] shrink_dentry_list+0x209/0x310 fs/dcache.c:1306 shrink_dcache_tree+0xe7/0x410 fs/dcache.c:1741 shrink_dcache_parent fs/dcache.c:1783 [inline] d_invalidate+0xde/0x260 fs/dcache.c:1891 lookup_fast+0x3c8/0x5d0 fs/namei.c:1885 walk_component fs/namei.c:2278 [inline] link_path_walk+0x712/0x1910 fs/namei.c:2656 path_openat+0x1b7/0x20f0 fs/namei.c:5006 do_file_open+0x23e/0x4a0 fs/namei.c:5039 do_sys_openat2+0x115/0x200 fs/open.c:1442 do_sys_open fs/open.c:1448 [inline] __do_sys_openat fs/open.c:1464 [inline] __se_sys_openat fs/open.c:1459 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1459 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88807b601860 which belongs to the cache dentry of size 352 The buggy address is located 208 bytes inside of freed 352-byte region [ffff88807b601860, ffff88807b6019c0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88807b601380 pfn:0x7b600 head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff8880789d8801 flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000240 ffff88801d2b18c0 ffffea0001e8ec10 ffffea00009fcf90 raw: ffff88807b601380 0000000200130006 00000000f5000000 ffff8880789d8801 head: 00fff00000000240 ffff88801d2b18c0 ffffea0001e8ec10 ffffea00009fcf90 head: ffff88807b601380 0000000200130006 00000000f5000000 ffff8880789d8801 head: 00fff00000000001 ffffffffffffff81 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 5009, tgid 5009 (udevadm), ts 30202533131 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1856 prep_new_page mm/page_alloc.c:1864 [inline] get_page_from_freelist+0x220f/0x2280 mm/page_alloc.c:3935 __alloc_frozen_pages_noprof+0x1fe/0x410 mm/page_alloc.c:5444 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab+0x7d/0x5e0 mm/slub.c:3499 new_slab mm/slub.c:3550 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7539 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4811 alloc_from_pcs mm/slub.c:4887 [inline] slab_alloc_node mm/slub.c:5021 [inline] kmem_cache_alloc_lru_noprof+0x37e/0x5f0 mm/slub.c:5066 __d_alloc+0x37/0x820 fs/dcache.c:1923 __d_alloc_parallel+0xde/0x1700 fs/dcache.c:2865 __lookup_slow+0x82/0x2f0 fs/namei.c:1904 lookup_slow+0x59/0x80 fs/namei.c:1936 walk_component fs/namei.c:2282 [inline] lookup_last fs/namei.c:2789 [inline] path_lookupat+0x3f5/0x8c0 fs/namei.c:2813 filename_lookup+0x265/0x5d0 fs/namei.c:2842 vfs_statx+0xfc/0x200 fs/stat.c:357 vfs_fstatat+0x11b/0x170 fs/stat.c:377 __do_sys_newfstatat fs/stat.c:542 [inline] __se_sys_newfstatat+0x118/0x3a0 fs/stat.c:536 page last free pid 1 tgid 1 ts 23546902035 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1403 [inline] free_pages_prepare+0x9eb/0xaf0 mm/page_alloc.c:1448 __free_contig_range_common+0x174/0x340 mm/page_alloc.c:7062 destroy_args+0x4e5/0x570 mm/debug_vm_pgtable.c:993 debug_vm_pgtable+0x3f8/0x410 mm/debug_vm_pgtable.c:1368 do_one_initcall+0x250/0x870 init/main.c:1419 do_initcall_level+0x10a/0x1a0 init/main.c:1481 do_initcalls+0x59/0xa0 init/main.c:1497 kernel_init_freeable+0x29d/0x3e0 init/main.c:1732 kernel_init+0x22/0x1d0 init/main.c:1622 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff88807b601800: 00 00 00 00 fc fc fc fc fc fc fc fc fa fb fb fb ffff88807b601880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88807b601900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807b601980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88807b601a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================