Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5280487imu; Tue, 15 Jan 2019 14:45:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN5ATau6h5SCCLT5N/TgSkypvZu8bxGzA8eqMozHLsdC8/l8ERPLd7JSR2NFtBR+N3eCNwaQ X-Received: by 2002:a17:902:a40f:: with SMTP id p15mr6649873plq.286.1547592311149; Tue, 15 Jan 2019 14:45:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547592311; cv=none; d=google.com; s=arc-20160816; b=b9cKWgK47bnQEiNdEruzQ6sxBHNMofeaHc9v3kYaWXmA3UW5Tiiw5VQIgyL2hrq0+6 FLfl6LaHxbcbw2LwdBuvLKieoUpSQffOVPS6DuROL8SsmAo3/wXGhnae3x4H+/8yOP4I 7ku3uFLPF2ujkIS1Q+hAbP2xFQlm1VrG3dGUh1eiryjzrk+EBo2GAkYrW3Gv5ZbzcIUv vRue1HcG/5r/qUhDjhjHysiAvrtOI/fdP0z+f95EJbYd3Qj5MnZcaiyFDqZ0D569zK1Z sZbmrK1wNmUPOh2aTwd7wJSPquO9kHHixuZHIitqMIRX/3TiV+2Gg1Hti3Mpa1vaW34q hd3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=o8scBptFCmNCazV/wfeQoeQ3Yw6zPm4hDZZ9kMrQm1g=; b=BSA+lQiJTfnuxXFJkexPqlTzK0PdcPE476vFlP4pgbAcd24WrHpxV1raaIxVsE6har JtLiv0l8eicEeLr6bdTzfSkr2xQ+B4/h2eloPFynmQvy2KauROsWT6aqamoTEo3QeA+o w3Ukle+hdDT1c0sg9mDjtwi6NOv6IErkFD+OCw/+WxLX7wCmoucY7qEm7SGaTJHpOw8i rU9Mq3PhLIlxcOO633rABcA5pC9ajvxwPSUkrnAoL8U6wchzNXR/MCV4xa6CQ47+HQVQ s7K5y+Rm77It1hfQjoAxL8ojlX2KC6zTECaL5topfGS6ezqn5tK86pgcP/KkeJplZuIS 4TLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uRZtxWJB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si4216526pgq.275.2019.01.15.14.44.53; Tue, 15 Jan 2019 14:45:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uRZtxWJB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387608AbfAOQon (ORCPT + 99 others); Tue, 15 Jan 2019 11:44:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:34210 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387561AbfAOQoj (ORCPT ); Tue, 15 Jan 2019 11:44:39 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7C87F2054F; Tue, 15 Jan 2019 16:44:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547570679; bh=+/Embhg53V3P2wECBH+95bT3RRFzeo22MC2TnFB0dQY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uRZtxWJBMfGmNauPC++4bLGsUQa64fE4wGueF3V1KFKp+q6+VZvs+GvMPUXG3/qZk F7oYBwGzKbuNvwEok0zDWdxJvrN1TocIg5cK5+fLizJlwxbg88x17VWGP2uJc80dB1 rwLovx4VW1cRt/ds/NMoRXLcl3M4/rVxgP0p+MS0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ivan Safonov , Larry Finger , Michael Straube Subject: [PATCH 4.20 04/57] staging: rtl8188eu: Fix module loading from tasklet for CCMP encryption Date: Tue, 15 Jan 2019 17:35:45 +0100 Message-Id: <20190115154910.964003727@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190115154910.734892368@linuxfoundation.org> References: <20190115154910.734892368@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Larry Finger commit 84cad97a717f5749a0236abd5ce68da582ea074f upstream. 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 # v4.17+ Reported-and-tested-by: Michael Straube Cc: Ivan Safonov Signed-off-by: Larry Finger Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8188eu/core/rtw_security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/staging/rtl8188eu/core/rtw_security.c +++ b/drivers/staging/rtl8188eu/core/rtw_security.c @@ -1291,7 +1291,7 @@ u32 rtw_aes_decrypt(struct adapter *pada struct sk_buff *skb = ((struct recv_frame *)precvframe)->pkt; void *crypto_private = NULL; u8 *key, *pframe = skb->data; - struct lib80211_crypto_ops *crypto_ops = try_then_request_module(lib80211_get_crypto_ops("CCMP"), "lib80211_crypt_ccmp"); + struct lib80211_crypto_ops *crypto_ops = lib80211_get_crypto_ops("CCMP"); struct security_priv *psecuritypriv = &padapter->securitypriv; char iv[8], icv[8];