Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp499604pxx; Wed, 28 Oct 2020 09:42:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxh5KXXfgMP++3pptNmLet7gPpjg/peEs/XJj0EtL06SvlvrjKveyPYzkKSspfxa1P5RIwg X-Received: by 2002:a17:906:640d:: with SMTP id d13mr8125205ejm.223.1603903373359; Wed, 28 Oct 2020 09:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603903373; cv=none; d=google.com; s=arc-20160816; b=TsloL3LZP6C2J1bqZIg/wcLcBcU/u9ElLHK2ezyBgRoWqUGD5RBGWwmmwCow96YC3R 3RZETa98qyp9YzHZigwIfHX2agor/TB4xo4w2W2XwpLpeignBE+JGpIM2HcrxCF0u2Xy rCSYYL9Y3sE57ol9dEXIjWN/w9DzHQFIkWCFompx8AH3jUxEQIO8LgUVt/3iDIXRtlFR wnHghRl2YFakSTF5n3LJtdLfhA1898pPHUQn65ToEJyRHhW040xXW6JlA9RFDnMxHeCl ueaIAVWAASybYuwsi6VqFWbH/K0OLGn0YD/L/VFvP03iF/ZAyHZZgKGnxlQECBw42b7a tMAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lw6AUIVstygM/azX9tUvx33haV8q/KEEYM6lPqdkIko=; b=QBXMtBuJKMBNMyFZqcDPQ7JQL7Ew7Jg9DdnfFzLJPExPDjg5qlSZzg2oIoIyA3bjtE 8+U/NX1v5qXKdJ/jdq6z8Rlb27fMSWRuKU76ptncuW+kkM5Hl3dDix6mRjdmHW0OxvzN D5KcBHSghsxnZbLltqWCsjb3YRhGgFfokOO3GK8exDmIA8lHIJyusmkYmITFQ3c50OHA ZHb+sj/iC0tC6rtVyXjEd8kfXK6sgFHH0YNEFmyCfhLEn+94aNTWk5rtZFGjpzB+33qa BCiMtNiMpMfju2jz76UNgyH+OXEVwC0FC4vbOTHmnY+JSgGFoYG4vWXMcIp6xTq4fvsE An8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZScKkKel; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm13si21671edb.281.2020.10.28.09.42.30; Wed, 28 Oct 2020 09:42:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZScKkKel; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1818268AbgJ0RSn (ORCPT + 99 others); Tue, 27 Oct 2020 13:18:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:56082 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1771581AbgJ0Oz3 (ORCPT ); Tue, 27 Oct 2020 10:55:29 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 5593B222EA; Tue, 27 Oct 2020 14:55:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810527; bh=SLhEyF3hgDlogsJ6Uca8qPk92jkYmsXIc7BMuHkNdsI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZScKkKelBU8AAPvp6T/EMYQXWQecjTbaEdgolO/atuk+6I220oSF+DBiTYleKe1dN QpfXVq/qvCfqC4MzDMlYjJGs+s0nO9vOS2t1bQQl2Cc0YKOu85UCNAKCSAqbpXd2t/ FgseyybHleXCAbUdE796MbmsAolJ0PIlPoUC//0s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Sasha Levin Subject: [PATCH 5.8 170/633] staging: rtl8192u: Do not use GFP_KERNEL in atomic context Date: Tue, 27 Oct 2020 14:48:33 +0100 Message-Id: <20201027135530.647714740@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe JAILLET [ Upstream commit acac75bb451fd39344eb54fad6602dfc9482e970 ] 'rtl8192_irq_rx_tasklet()' is a tasklet initialized in 'rtl8192_init_priv_task()'. >From this function it is possible to allocate some memory with the GFP_KERNEL flag, which is not allowed in the atomic context of a tasklet. Use GFP_ATOMIC instead. The call chain is: rtl8192_irq_rx_tasklet (in r8192U_core.c) --> rtl8192_rx_nomal (in r8192U_core.c) --> ieee80211_rx (in ieee80211/ieee80211_rx.c) --> RxReorderIndicatePacket (in ieee80211/ieee80211_rx.c) Fixes: 79a5ccd97209 ("staging: rtl8192u: fix large frame size compiler warning") Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/20200813173458.758284-1-christophe.jaillet@wanadoo.fr Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c index 195d963c4fbb4..b6fee7230ce05 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c @@ -597,7 +597,7 @@ static void RxReorderIndicatePacket(struct ieee80211_device *ieee, prxbIndicateArray = kmalloc_array(REORDER_WIN_SIZE, sizeof(struct ieee80211_rxb *), - GFP_KERNEL); + GFP_ATOMIC); if (!prxbIndicateArray) return; -- 2.25.1