Re: [syzbot] [wireless?] WARNING in sta_info_insert_rcu (3)

From: syzbot
Date: Sat Jul 15 2023 - 22:39:39 EST


Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
WARNING in ieee80211_link_release_channel

wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
wlan1: authenticate with 08:02:11:00:00:01
wlan1: failed to insert STA entry for the AP (error -22)
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5411 at net/mac80211/chan.c:2021 ieee80211_link_release_channel+0x19f/0x200 net/mac80211/chan.c:2021
Modules linked in:
CPU: 1 PID: 5411 Comm: kworker/1:4 Not tainted 6.5.0-rc1-syzkaller-00006-g3f01e9fed845-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Workqueue: events cfg80211_conn_work
RIP: 0010:ieee80211_link_release_channel+0x19f/0x200 net/mac80211/chan.c:2021
Code: ff ff ff ff 48 8d b8 f0 1c 00 00 e8 db 25 78 00 31 ff 41 89 c5 89 c6 e8 af de d7 f7 45 85 ed 0f 85 6d ff ff ff e8 31 e3 d7 f7 <0f> 0b e9 61 ff ff ff 48 c7 c7 70 b3 ab 8e e8 5e 76 2b f8 e9 3a ff
RSP: 0018:ffffc9000531f2a0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888077f0e3a8 RCX: 0000000000000000
RDX: ffff88801f54d940 RSI: ffffffff89add36f RDI: 0000000000000005
RBP: ffff888077f0cc80 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 000000000000001f R12: ffff888077f0d580
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055caf027a950 CR3: 000000002c7e4000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ieee80211_prep_connection+0x62a/0x14f0 net/mac80211/mlme.c:7065
ieee80211_mgd_auth+0xa1a/0x1470 net/mac80211/mlme.c:7205
rdev_auth net/wireless/rdev-ops.h:481 [inline]
cfg80211_mlme_auth+0x3b3/0x710 net/wireless/mlme.c:284
cfg80211_conn_do_work+0x64e/0xfe0 net/wireless/sme.c:181
cfg80211_conn_work+0x27f/0x3d0 net/wireless/sme.c:273
process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2597
worker_thread+0x687/0x1110 kernel/workqueue.c:2748
kthread+0x33a/0x430 kernel/kthread.c:389
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
</TASK>


Tested on:

commit: 3f01e9fe Merge tag 'linux-watchdog-6.5-rc2' of git://w..
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
console output: https://syzkaller.appspot.com/x/log.txt?x=1738ebe4a80000
kernel config: https://syzkaller.appspot.com/x/.config?x=87ef4ae61b35aae1
dashboard link: https://syzkaller.appspot.com/bug?extid=2676771ed06a6df166ad
compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
patch: https://syzkaller.appspot.com/x/patch.diff?x=1684f646a80000