linux/drivers/net/wireless/realtek
Larry Finger 8b144dedb9 rtlwifi: rtl8192cu: Fix WARNING when calling local_irq_restore() with interrupts enabled
Syzbot reports the following WARNING:

[200~raw_local_irq_restore() called with IRQs enabled
WARNING: CPU: 1 PID: 1206 at kernel/locking/irqflag-debug.c:10
   warn_bogus_irq_restore+0x1d/0x20 kernel/locking/irqflag-debug.c:10

Hardware initialization for the rtl8188cu can run for as long as 350 ms,
and the routine may be called with interrupts disabled. To avoid locking
the machine for this long, the current routine saves the interrupt flags
and enables local interrupts. The problem is that it restores the flags
at the end without disabling local interrupts first.

This patch fixes commit a53268be0c ("rtlwifi: rtl8192cu: Fix too long
disable of IRQs").

Reported-by: syzbot+cce1ee31614c171f5595@syzkaller.appspotmail.com
Cc: stable@vger.kernel.org
Fixes: a53268be0c ("rtlwifi: rtl8192cu: Fix too long disable of IRQs")
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20211215171105.20623-1-Larry.Finger@lwfinger.net
2021-12-20 21:04:49 +02:00
..
rtl8xxxu rtl8xxxu: Improve the A-MPDU retransmission rate with RTS/CTS protection 2021-12-20 21:04:03 +02:00
rtl818x rtl8187: fix control-message timeouts 2021-10-28 16:26:18 +03:00
rtlwifi rtlwifi: rtl8192cu: Fix WARNING when calling local_irq_restore() with interrupts enabled 2021-12-20 21:04:49 +02:00
rtw88 rtw88: 8822c: update rx settings to prevent potential hw deadlock 2021-12-20 20:50:13 +02:00
rtw89 rtw89: coex: Update COEX to 5.5.8 2021-12-14 20:36:02 +02:00
Kconfig rtw89: add Realtek 802.11ax driver 2021-10-13 09:01:12 +03:00
Makefile rtw89: add Realtek 802.11ax driver 2021-10-13 09:01:12 +03:00