==================================================================
BUG: KASAN: slab-out-of-bounds in ieee80211_add_virtual_monitor+0xaa5/0xd30
Read of size 1 at addr ffff888109687d50 by task syz.3.4627/22014

CPU: 1 UID: 0 PID: 22014 Comm: syz.3.4627 Not tainted syzkaller #0 PREEMPT(full) 
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+0x1a9/0x280
 print_report+0xba/0x230
 kasan_report+0x117/0x150
 ieee80211_add_virtual_monitor+0xaa5/0xd30
 ieee80211_do_stop+0x17da/0x1fd0
 ieee80211_stop+0x1af/0x230
 __dev_close_many+0x361/0x6d0
 netif_close_many+0x222/0x410
 netif_close+0x160/0x220
 dev_close+0xf7/0x210
 cfg80211_shutdown_all_interfaces+0xb0/0x1e0
 cfg80211_rfkill_set_block+0x2d/0x50
 rfkill_set_block+0x1cd/0x430
 rfkill_fop_write+0x43b/0x560
 vfs_write+0x296/0xba0
 ksys_write+0x150/0x270
 do_syscall_64+0xf0/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8c3a99ce59
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:00007f8c3b8b9028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f8c3ac15fa0 RCX: 00007f8c3a99ce59
RDX: 0000000000000008 RSI: 0000200000000080 RDI: 0000000000000005
RBP: 00007f8c3aa32e6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f8c3ac16038 R14: 00007f8c3ac15fa0 R15: 00007ffd67d2b0e8
 </TASK>

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109684
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x17ff00000000040(head|node=0|zone=2|lastcpupid=0x7ff)
page_type: f8(unknown)
raw: 017ff00000000040 0000000000000000 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
head: 017ff00000000040 0000000000000000 dead000000000122 0000000000000000
head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
head: 017ff00000000002 ffffea000425a101 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0x446dc0(GFP_KERNEL_ACCOUNT|__GFP_ZERO|__GFP_NOWARN|__GFP_RETRY_MAYFAIL|__GFP_COMP), pid 5612, tgid 5612 (syz-executor), ts 73013609591, free_ts 72241953161
 post_alloc_hook+0x228/0x280
 get_page_from_freelist+0x2343/0x2410
 __alloc_frozen_pages_noprof+0x18d/0x380
 alloc_pages_mpol+0x22b/0x390
 ___kmalloc_large_node+0x4c/0x150
 __kmalloc_large_node_noprof+0x18/0x90
 __kvmalloc_node_noprof+0x6e/0x8e0
 alloc_netdev_mqs+0xa9/0x1210
 ieee80211_if_add+0x41a/0x1280
 ieee80211_register_hw+0x346f/0x3fa0
 mac80211_hwsim_new_radio+0x31e7/0x5820
 hwsim_new_radio_nl+0xf7e/0x1c30
 genl_family_rcv_msg_doit+0x233/0x340
 genl_rcv_msg+0x614/0x7a0
 netlink_rcv_skb+0x226/0x4a0
 genl_rcv+0x28/0x40
page last free pid 5616 tgid 5616 stack trace:
 __free_frozen_pages+0xbe4/0xd60
 __slab_free+0x21b/0x290
 qlist_free_all+0x98/0x100
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 kmem_cache_alloc_lru_noprof+0x36f/0x6d0
 sock_alloc_inode+0x28/0xc0
 alloc_inode+0x6a/0x1b0
 __sock_create+0x12d/0x9d0
 __sys_socket+0xd6/0x1b0
 __x64_sys_socket+0x7a/0x90
 do_syscall_64+0xf0/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff888109687c00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
 ffff888109687c80: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
>ffff888109687d00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
                                                 ^
 ffff888109687d80: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
 ffff888109687e00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
==================================================================
