==================================================================
BUG: KASAN: slab-use-after-free in _raw_spin_lock_irq+0x3d/0x50
Read of size 1 at addr ffff8881bcd0f018 by task syz.5.1046/12204

CPU: 0 UID: 0 PID: 12204 Comm: syz.5.1046 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 print_address_description+0x55/0x1e0
 print_report+0x58/0x70
 kasan_report+0x117/0x150
 __kasan_check_byte+0x2a/0x40
 lock_acquire+0x7d/0x350
 _raw_spin_lock_irq+0x3d/0x50
 gadget_dev_open+0x4b/0x1b0
 do_dentry_open+0x816/0x1380
 vfs_open+0x3b/0x340
 path_openat+0x1443/0x1d60
 do_file_open+0x23e/0x4a0
 do_sys_openat2+0x115/0x200
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff4bab9e159
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:00007ff4bbb4a028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007ff4bae25fa0 RCX: 00007ff4bab9e159
RDX: 0000000000000802 RSI: 0000200000000300 RDI: ffffffffffffff9c
RBP: 00007ff4bac35024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff4bae26038 R14: 00007ff4bae25fa0 R15: 00007ffff0fae8f8
 </TASK>

Allocated by task 31:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_noprof+0x36b/0x720
 ieee802_11_parse_elems_full+0x14b/0x2de0
 ieee80211_ibss_rx_queued_mgmt+0x509/0x2c40
 ieee80211_iface_work+0x78a/0x1010
 cfg80211_wiphy_work+0x29e/0x420
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

Freed by task 31:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x40/0x50
 __kasan_slab_free+0x5c/0x80
 kfree+0x1c5/0x650
 ieee80211_ibss_rx_queued_mgmt+0x1ea1/0x2c40
 ieee80211_iface_work+0x78a/0x1010
 cfg80211_wiphy_work+0x29e/0x420
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

The buggy address belongs to the object at ffff8881bcd0f000
 which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 24 bytes inside of
 freed 1024-byte region [ffff8881bcd0f000, ffff8881bcd0f400)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1bcd08
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000000040(head|node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000040 ffff888100041dc0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 057ff00000000040 ffff888100041dc0 dead000000000100 dead000000000122
head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 057ff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 26, tgid 26 (ksoftirqd/1), ts 50087600467
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x2209/0x2280
 __alloc_frozen_pages_noprof+0x217/0x5a0
 allocate_slab+0x7d/0x620
 refill_objects+0x2d5/0x350
 __pcs_replace_empty_main+0x2c8/0x6c0
 __kmalloc_noprof+0x47b/0x720
 ieee802_11_parse_elems_full+0x14b/0x2de0
 ieee80211_inform_bss+0x163/0x10d0
 cfg80211_inform_single_bss_data+0xd9c/0x1be0
 cfg80211_inform_bss_data+0x263/0x3cc0
 cfg80211_inform_bss_frame_data+0x3c7/0x840
 ieee80211_bss_info_update+0x791/0xa50
 ieee80211_scan_rx+0x552/0xa40
 ieee80211_rx_list+0x2d0e/0x3b00
 ieee80211_rx_napi+0x1ad/0x3d0
page last free pid 95 tgid 95 ts 50025819557 stack trace:
 __free_frozen_pages+0xc93/0xd90
 __slab_free+0x274/0x2c0
 qlist_free_all+0x99/0x100
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 __kmalloc_cache_noprof+0x29f/0x600
 ipv6_add_addr+0x55e/0x1110
 addrconf_add_linklocal+0x20c/0x460
 addrconf_addr_gen+0x2f8/0x360
 addrconf_notify+0xb1e/0x1050
 notifier_call_chain+0x1a5/0x3d0
 netif_state_change+0x27d/0x3a0
 __linkwatch_run_queue+0x52a/0x800
 linkwatch_event+0x4c/0x60
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0

Memory state around the buggy address:
 ffff8881bcd0ef00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff8881bcd0ef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff8881bcd0f000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                            ^
 ffff8881bcd0f080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881bcd0f100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
