OSDN Git Service

staging: rtl8188eu: Fix module loading from tasklet for CCMP encryption
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 3 Jan 2019 02:12:46 +0000 (20:12 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jan 2019 14:27:59 +0000 (15:27 +0100)
commit84cad97a717f5749a0236abd5ce68da582ea074f
tree6cad8b880721d3bf44e7e5702c6b02debc2f7c80
parent605c0351fa36e857e29d34ebab2719d9c04e95f6
staging: rtl8188eu: Fix module loading from tasklet for CCMP encryption

Commit 6bd082af7e36 ("staging:r8188eu: use lib80211 CCMP decrypt")
causes scheduling while atomic bugs followed by a hard freeze whenever
the driver tries to connect to a CCMP-encrypted network. Experimentation
showed that the freezes were eliminated when module lib80211 was
preloaded, which can be forced by calling lib80211_get_crypto_ops()
directly rather than indirectly through try_then_request_module().
With this change, no BUG messages are logged.

Fixes: 6bd082af7e36 ("staging:r8188eu: use lib80211 CCMP decrypt")
Cc: Stable <stable@vger.kernel.org> # v4.17+
Reported-and-tested-by: Michael Straube <straube.linux@gmail.com>
Cc: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_security.c