Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1110884pxx; Tue, 27 Oct 2020 08:29:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhE6rBaXqstQRhMobX/C5qVNeSO/+aLOED5WzXNvr0DYud8aK1sWBlMas5WiX0CR6uajzh X-Received: by 2002:a17:906:c0d8:: with SMTP id bn24mr2888433ejb.480.1603812563957; Tue, 27 Oct 2020 08:29:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603812563; cv=none; d=google.com; s=arc-20160816; b=EDVjKiQ1NiZD/eRx07LfHrzpQ1HXhpeqdAFM87yxX7CxfV1sS0RPRnR5eJ6B+1p+zd sMgpSdSXnQgZXUhmkHz+M5+bHytfPuYRzKQoq+kGfE+NutZlB3qyZwmU0d2rLjk8buSU ONNdK/ZY8joF4dtJ7ROsVcqYEih7t94KXKxYAYHHzD5naPEFrdhsz00WAVZExGpxwHlA UBNBOKCltbjJIV5K3JteG24Q+k0TiiK+Ev6aeGc0sy1PjM74cwtbu6L+fDFdF7o1uv11 TaH2s4uN85OdXsYKs1mep0ZsgkwbzC5ybJKzq3SfxS2CQF2KAvg2dd/8r8oUQg1zHhes 88uw== 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=y6UtzBak+iT+X3ixqurEXeUeeHp362FNJFziD3Vy+ys=; b=WQJlIVbBBllZ8VxQ4v1ZeFfIhqElUFxIzYjTl94SIpOsMtNsfFhE0qjYMzUON0FJ8u hqBH1VFqfvOiH5NZT48do0WYPwau0zC9cQfvb8akPQ3scr5CGktjYorbg3kFgple2EKb dQa59ngIchE4B61kQKcQWii8QXxLRYPWD3UlwfhAZotbGlxPrk9iT1rE+3uPvQresSOP PiKo3ZTlRcL2af7O4HupZQc0ImbYR9ZuhxxYnzEpumlXEZRj1cf8UVelkH/KjQm/VGkF 5AZJLFCyUfQAIKkbNjfyvn9NlTLHq0gc4wlzHREp+BcO9/FLrAdivz6HlCvmmM26plBe 5e7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=szhpIzwj; 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 z8si1331597eja.81.2020.10.27.08.29.00; Tue, 27 Oct 2020 08:29:23 -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=szhpIzwj; 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 S1760646AbgJ0Ofj (ORCPT + 99 others); Tue, 27 Oct 2020 10:35:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:33634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760462AbgJ0Oeu (ORCPT ); Tue, 27 Oct 2020 10:34:50 -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 82C9620709; Tue, 27 Oct 2020 14:34:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809290; bh=b+IP+qiKKmm5OLUT/5/lERJ8X+omz9O+/tg/0WdKvzE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=szhpIzwjLKi4F+ZWgmVc5Qp8VFZvgz+eGtCw7K+vw2MVOX9Caio/tr1r65MSxgWBo LPLJqg6HuuM7ocm3JytcgK+T+1fpCC377JkprtN9wpDboJ3cQZwT8mjPDtPmf34AbA wBiTTfxdAAHh+JAB/9JYnR8/EYZUptWopEWWXROA= 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.4 116/408] staging: rtl8192u: Do not use GFP_KERNEL in atomic context Date: Tue, 27 Oct 2020 14:50:54 +0100 Message-Id: <20201027135500.486199228@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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 5c33bcb0db2ee..00e34c392a388 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c @@ -585,7 +585,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