Moon Hee Lee
unread,12:29 AM (11 hours ago) 12:29 AMSign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to joha...@sipsolutions.net, linux-w...@vger.kernel.org, linux-...@vger.kernel.org, syzbot+b36445...@syzkaller.appspotmail.com, net...@vger.kernel.org, syzkall...@googlegroups.com, Moon Hee Lee
ieee80211_ocb_rx_no_sta() assumes a valid channel context, which is only
present after JOIN_OCB.
RX may run before JOIN_OCB is executed, in which case the OCB interface
is not operational. Skip RX peer handling when the interface is not
joined to avoid warnings in the RX path.
Reported-by:
syzbot+b36445...@syzkaller.appspotmail.com
Closes:
https://syzkaller.appspot.com/bug?extid=b364457b2d1d4e4a3054
Tested-by:
syzbot+b36445...@syzkaller.appspotmail.com
Signed-off-by: Moon Hee Lee <
moonhee...@gmail.com>
---
net/mac80211/ocb.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/mac80211/ocb.c b/net/mac80211/ocb.c
index a5d4358f122a..ebb4f4d88c23 100644
--- a/net/mac80211/ocb.c
+++ b/net/mac80211/ocb.c
@@ -47,6 +47,9 @@ void ieee80211_ocb_rx_no_sta(struct ieee80211_sub_if_data *sdata,
struct sta_info *sta;
int band;
+ if (!ifocb->joined)
+ return;
+
/* XXX: Consider removing the least recently used entry and
* allow new one to be added.
*/
--
2.43.0