================================================================== 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 ffff88805535e9a0 by task syz.5.623/9185 CPU: 1 UID: 0 PID: 9185 Comm: syz.5.623 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 __kasan_check_byte+0x36/0x50 mm/kasan/common.c:585 kasan_check_byte include/linux/kasan.h:402 [inline] lock_acquire kernel/locking/lockdep.c:5916 [inline] lock_acquire+0x132/0x380 kernel/locking/lockdep.c:5899 __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/0x50 lib/lockref.c:50 dget include/linux/dcache.h:364 [inline] __simple_recursive_removal+0x3d/0x5c0 fs/libfs.c:601 debugfs_remove+0x5d/0x80 fs/debugfs/inode.c:784 ieee80211_sta_debugfs_remove+0x38/0x80 net/mac80211/debugfs_sta.c:1277 __sta_info_destroy_part2+0x318/0x510 net/mac80211/sta_info.c:1613 __sta_info_flush+0x4f6/0x720 net/mac80211/sta_info.c:1746 sta_info_flush net/mac80211/sta_info.h:984 [inline] ieee80211_ibss_disconnect+0x195/0xbc0 net/mac80211/ibss.c:672 ieee80211_ibss_leave+0x4a/0x160 net/mac80211/ibss.c:1789 rdev_leave_ibss net/wireless/rdev-ops.h:577 [inline] cfg80211_leave_ibss+0x1ab/0x490 net/wireless/ibss.c:207 cfg80211_leave_locked+0x1ad/0x470 net/wireless/core.c:1544 cfg80211_leave+0x5d/0x90 net/wireless/core.c:1605 cfg80211_netdev_notifier_call+0x30c/0x1140 net/wireless/core.c:1776 notifier_call_chain+0x99/0x3f0 kernel/notifier.c:85 call_netdevice_notifiers_info+0xbe/0x110 net/core/dev.c:2275 call_netdevice_notifiers_extack net/core/dev.c:2313 [inline] call_netdevice_notifiers net/core/dev.c:2327 [inline] __dev_close_many+0xff/0x710 net/core/dev.c:1769 __dev_close net/core/dev.c:1811 [inline] __dev_change_flags+0x307/0x850 net/core/dev.c:9853 netif_change_flags+0x8d/0x160 net/core/dev.c:9920 do_setlink.isra.0+0x1ac4/0x3e60 net/core/rtnetlink.c:3271 rtnl_group_changelink net/core/rtnetlink.c:3924 [inline] __rtnl_newlink net/core/rtnetlink.c:4090 [inline] rtnl_newlink+0x1dc4/0x2620 net/core/rtnetlink.c:4220 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:7137 netlink_rcv_skb+0x159/0x420 net/netlink/af_netlink.c:2579 netlink_unicast_kernel net/netlink/af_netlink.c:1338 [inline] netlink_unicast+0x65f/0x950 net/netlink/af_netlink.c:1364 netlink_sendmsg+0x8b0/0xda0 net/netlink/af_netlink.c:1923 sock_sendmsg_nosec net/socket.c:800 [inline] __sock_sendmsg net/socket.c:815 [inline] ____sys_sendmsg+0xa4d/0xbe0 net/socket.c:2713 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2767 __sys_sendmsg+0x160/0x210 net/socket.c:2799 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f318eb9e559 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:00007f318f9cd028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f318ee25fa0 RCX: 00007f318eb9e559 RDX: 0000000000000004 RSI: 0000200000000140 RDI: 000000000000000c RBP: 00007f318ec35ab8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f318ee26038 R14: 00007f318ee25fa0 R15: 00007fff622016d8 Allocated by task 5600: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:351 [inline] __kasan_slab_alloc+0x89/0x90 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+0x265/0x6a0 mm/slub.c:5029 __d_alloc+0x35/0xa50 fs/dcache.c:1909 d_alloc_parallel+0x105/0x14c0 fs/dcache.c:2772 lookup_open+0x6bb/0x1990 fs/namei.c:4471 open_last_lookups fs/namei.c:4766 [inline] path_openat+0x10a0/0x2450 fs/namei.c:4996 do_file_open+0x20e/0x430 fs/namei.c:5028 do_sys_openat2+0x10f/0x1e0 fs/open.c:1417 do_sys_open fs/open.c:1423 [inline] __do_sys_openat fs/open.c:1439 [inline] __se_sys_openat fs/open.c:1434 [inline] __x64_sys_openat+0x12d/0x210 fs/open.c:1434 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 4958: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:264 [inline] __kasan_slab_free+0x5f/0x80 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+0x127/0x6c0 mm/slub.c:6636 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x5f0/0x1260 kernel/rcu/tree.c:2919 handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645 do_softirq kernel/softirq.c:546 [inline] do_softirq+0xaf/0xf0 kernel/softirq.c:533 __local_bh_enable_ip+0xff/0x120 kernel/softirq.c:473 local_bh_enable include/linux/bottom_half.h:33 [inline] __alloc_skb+0x5db/0x710 net/core/skbuff.c:699 alloc_skb include/linux/skbuff.h:1384 [inline] alloc_skb_with_frags+0xdd/0x760 net/core/skbuff.c:6803 sock_alloc_send_pskb+0x801/0x980 net/core/sock.c:3022 unix_dgram_sendmsg+0x3c7/0x1810 net/unix/af_unix.c:2144 sock_sendmsg_nosec net/socket.c:800 [inline] __sock_sendmsg net/socket.c:815 [inline] __sys_sendto+0x48b/0x4e0 net/socket.c:2281 __do_sys_sendto net/socket.c:2288 [inline] __se_sys_sendto net/socket.c:2284 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2284 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Last potentially related work creation: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:556 __call_rcu_common.constprop.0+0xa5/0x9b0 kernel/rcu/tree.c:3181 dentry_free+0x152/0x2c0 fs/dcache.c:450 dentry_kill+0x5e8/0xc20 fs/dcache.c:845 finish_dput fs/dcache.c:1001 [inline] dput.part.0+0xd7/0x240 fs/dcache.c:1042 dput+0x1f/0x30 fs/dcache.c:1037 handle_mounts fs/namei.c:1753 [inline] step_into_slowpath+0xc53/0xf90 fs/namei.c:2104 step_into fs/namei.c:2152 [inline] open_last_lookups fs/namei.c:4779 [inline] path_openat+0xeef/0x2450 fs/namei.c:4996 do_file_open+0x20e/0x430 fs/namei.c:5028 do_sys_openat2+0x10f/0x1e0 fs/open.c:1417 do_sys_open fs/open.c:1423 [inline] __do_sys_openat fs/open.c:1439 [inline] __se_sys_openat fs/open.c:1434 [inline] __x64_sys_openat+0x12d/0x210 fs/open.c:1434 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88805535e8d0 which belongs to the cache dentry of size 312 The buggy address is located 208 bytes inside of freed 312-byte region [ffff88805535e8d0, ffff88805535ea08) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5535e head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88805535fed9 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801eab13c0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000200150015 00000000f5000000 ffff88805535fed9 head: 00fff00000000040 ffff88801eab13c0 dead000000000100 dead000000000122 head: 0000000000000000 0000000200150015 00000000f5000000 ffff88805535fed9 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 5604, tgid 5604 (syz-executor), ts 69726382339 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x110d/0x35d0 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x2eb/0x3300 mm/page_alloc.c:5436 alloc_slab_page mm/slub.c:3347 [inline] allocate_slab mm/slub.c:3462 [inline] new_slab+0xa9/0x6e0 mm/slub.c:3513 refill_objects+0xe3/0x410 mm/slub.c:7418 refill_sheaf mm/slub.c:2885 [inline] __pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4774 alloc_from_pcs mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:4984 [inline] kmem_cache_alloc_lru_noprof+0x4c0/0x6a0 mm/slub.c:5029 __d_alloc+0x35/0xa50 fs/dcache.c:1909 d_alloc+0x4a/0x1e0 fs/dcache.c:1992 lookup_one_qstr_excl+0x171/0x250 fs/namei.c:1806 __start_dirop fs/namei.c:2920 [inline] start_dirop+0x59/0xb0 fs/namei.c:2942 simple_start_creating+0xf9/0x110 fs/libfs.c:2308 debugfs_start_creating.part.0+0x7b/0x150 fs/debugfs/inode.c:397 debugfs_start_creating fs/debugfs/inode.c:371 [inline] __debugfs_create_file+0xa9/0x500 fs/debugfs/inode.c:431 debugfs_create_file_short+0x41/0x60 fs/debugfs/inode.c:474 add_files net/mac80211/debugfs_netdev.c:952 [inline] ieee80211_debugfs_add_netdev net/mac80211/debugfs_netdev.c:1019 [inline] ieee80211_debugfs_recreate_netdev+0x2e5/0x1790 net/mac80211/debugfs_netdev.c:1043 page last free pid 1 tgid 1 ts 15807278676 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] free_pages_prepare+0x586/0xe00 mm/page_alloc.c:1463 __free_contig_range_common+0x14f/0x250 mm/page_alloc.c:7072 debug_vm_pgtable_free_huge_page mm/debug_vm_pgtable.c:980 [inline] destroy_args+0xa8/0x7a0 mm/debug_vm_pgtable.c:993 debug_vm_pgtable+0x1d69/0x3490 mm/debug_vm_pgtable.c:1368 do_one_initcall+0x11c/0x6f0 init/main.c:1362 do_initcall_level init/main.c:1424 [inline] do_initcalls init/main.c:1440 [inline] do_basic_setup init/main.c:1460 [inline] kernel_init_freeable+0x6ea/0x7b0 init/main.c:1675 kernel_init+0x21/0x1e0 init/main.c:1565 ret_from_fork+0x730/0xd60 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: ffff88805535e880: fb fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb ffff88805535e900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88805535e980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88805535ea00: fb fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 ffff88805535ea80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================