------------[ cut here ]------------ sp->magic != HWSIM_STA_MAGIC WARNING: drivers/net/wireless/virtual/mac80211_hwsim_main.c:258 at hwsim_check_sta_magic drivers/net/wireless/virtual/mac80211_hwsim_main.c:258 [inline], CPU#3: syz.0.77/6175 WARNING: drivers/net/wireless/virtual/mac80211_hwsim_main.c:258 at hwsim_check_sta_magic drivers/net/wireless/virtual/mac80211_hwsim_main.c:255 [inline], CPU#3: syz.0.77/6175 WARNING: drivers/net/wireless/virtual/mac80211_hwsim_main.c:258 at mac80211_hwsim_tx+0x1f17/0x2a20 drivers/net/wireless/virtual/mac80211_hwsim_main.c:2248, CPU#3: syz.0.77/6175 Modules linked in: CPU: 3 UID: 0 PID: 6175 Comm: syz.0.77 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:hwsim_check_sta_magic drivers/net/wireless/virtual/mac80211_hwsim_main.c:258 [inline] RIP: 0010:hwsim_check_sta_magic drivers/net/wireless/virtual/mac80211_hwsim_main.c:255 [inline] RIP: 0010:mac80211_hwsim_tx+0x1f17/0x2a20 drivers/net/wireless/virtual/mac80211_hwsim_main.c:2248 Code: b6 58 1b 89 de e8 a9 62 95 fa 84 db 0f 85 e5 ee ff ff e8 8c 68 95 fa c7 44 24 38 0f 00 00 00 e9 0c ff ff ff e8 7a 68 95 fa 90 <0f> 0b 90 e9 7c e5 ff ff 48 8b 44 24 10 48 05 88 04 00 00 48 89 44 RSP: 0018:ffffc9000337ef78 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000201 RDX: ffff8880274ccb00 RSI: ffffffff8778dd66 RDI: 0000000000000005 RBP: ffff888033696d90 R08: 000000006d537749 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000 R13: ffffc9000337f130 R14: ffff88805ac132c0 R15: ffff88802d642280 FS: 00007f7a34bd56c0(0000) GS:ffff8880d477d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000c64000 CR3: 000000010da6a000 CR4: 0000000000352ef0 Call Trace: drv_tx net/mac80211/driver-ops.h:38 [inline] ieee80211_tx_frags+0x5c9/0xa70 net/mac80211/tx.c:1801 __ieee80211_xmit_fast+0x834/0x2b70 net/mac80211/tx.c:3879 ieee80211_mesh_xmit_fast+0xbc1/0x1260 net/mac80211/mesh.c:823 __ieee80211_subif_start_xmit+0xb36/0x16a0 net/mac80211/tx.c:4469 ieee80211_subif_start_xmit+0xf8/0x7c0 net/mac80211/tx.c:4726 __netdev_start_xmit include/linux/netdevice.h:5455 [inline] netdev_start_xmit include/linux/netdevice.h:5464 [inline] xmit_one net/core/dev.c:4068 [inline] dev_hard_start_xmit+0x121/0x760 net/core/dev.c:4084 __dev_queue_xmit+0x1bef/0x48d0 net/core/dev.c:5086 dev_queue_xmit include/linux/netdevice.h:3483 [inline] packet_xmit+0x24b/0x320 net/packet/af_packet.c:277 packet_snd net/packet/af_packet.c:3157 [inline] packet_sendmsg+0x3205/0x4f80 net/packet/af_packet.c:3189 sock_sendmsg_nosec net/socket.c:800 [inline] __sock_sendmsg net/socket.c:818 [inline] sock_write_iter+0x560/0x5d0 net/socket.c:1269 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6af/0x1050 fs/read_write.c:687 ksys_write+0x1f8/0x250 fs/read_write.c:739 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:0x7f7a3699fb19 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:00007f7a34bd5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f7a36c26090 RCX: 00007f7a3699fb19 RDX: 000000000000000f RSI: 0000200000001340 RDI: 000000000000000e RBP: 00007f7a36a37b70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7a36c26128 R14: 00007f7a36c26090 R15: 00007ffd030af378