Subject: Re: [syzbot] [wireless?] WARNING in ieee80211_free_ack_frame (2)

From: syzbot <[email-masked]>
Date: Sun, 26 Mar 2023 01:21:38 -0700

syzbot has found a reproducer for the following issue on:

HEAD commit:    33189f0a94b9 r8169: fix RTL8168H and RTL8107E rx crc error
git tree:       net
console+strace: https://syzkaller.appspot.com/x/log.txt?x=12857025c80000
kernel config:  https://syzkaller.appspot.com/x/.config?x=ea09b0836073ee4
dashboard link: https://syzkaller.appspot.com/bug?extid=ac648b0525be1feba506
compiler:       gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=15346b1ec80000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=162e3b89c80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/62cbf0a881e9/disk-33189f0a.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/57e9b6d3facf/vmlinux-33189f0a.xz
kernel image: https://storage.googleapis.com/syzbot-assets/3bd33096e2d8/bzImage-33189f0a.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: [email-masked]

WARNING: CPU: 1 PID: 75 at net/mac80211/main.c:1509 ieee80211_free_ack_frame+0x51/0x60 net/mac80211/main.c:1509
Modules linked in:
CPU: 1 PID: 75 Comm: kworker/u4:4 Not tainted 6.3.0-rc3-syzkaller-00156-g33189f0a94b9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Workqueue: netns cleanup_net
RIP: 0010:ieee80211_free_ack_frame+0x51/0x60 net/mac80211/main.c:1509
Code: 48 89 ef be 02 00 00 00 e8 cc 42 88 fe 31 c0 5b 5d c3 e8 12 27 0b f8 48 c7 c7 80 cb 7c 8b c6 05 eb 8a ea 04 01 e8 af a0 d3 f7 <0f> 0b eb cd 66 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 41 57 41
RSP: 0018:ffffc900015879d8 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888018999d40 RSI: ffffffff814b6037 RDI: 0000000000000001
RBP: ffff88807258c280 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: dffffc0000000000
R13: ffffffff8977bdb0 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056122f357fc8 CR3: 000000001de5f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 idr_for_each+0x117/0x230 lib/idr.c:208
 ieee80211_free_hw+0xa1/0x2f0 net/mac80211/main.c:1527
 mac80211_hwsim_del_radio drivers/net/wireless/mac80211_hwsim.c:4687 [inline]
 hwsim_exit_net+0x463/0x840 drivers/net/wireless/mac80211_hwsim.c:5470
 ops_exit_list+0xb0/0x170 net/core/net_namespace.c:169
 cleanup_net+0x4ee/0xb10 net/core/net_namespace.c:613
 process_one_work+0x991/0x15c0 kernel/workqueue.c:2390
 worker_thread+0x669/0x1090 kernel/workqueue.c:2537
 kthread+0x2e8/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>