Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp499360pxx; Wed, 28 Oct 2020 09:42:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoEDVtSy+o/JcZ6YcnwBsdGQYuUdGiGeX1MzYN8OdmwZ26CRk6ww69ZmdoT15K3SpSLdDJ X-Received: by 2002:a05:6402:1585:: with SMTP id c5mr8853082edv.278.1603903352218; Wed, 28 Oct 2020 09:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603903352; cv=none; d=google.com; s=arc-20160816; b=TJ4NubRdAORUAhprTiOTa+qdNPglitCLzCZwf41BgMFHQdT7ip4Sb7FY5YHZxeZXvN l2NnOAssi6TOZErn9eINg+S8KQXrz/UpT9Jw27ZD7k3MZ0C4FoAryvUQMz4jo5umfrDg cNcVHtZJtqDDKjL3HoUsSKx6BVY7evplGDQOtmImWRAwlpq5yAPf9qVowsAV/DJ1oYAU SSHJM2HQpvA+5OE5Y1Uc+y8F5Q0iMoAG8OgW/sypyfCafnMmDDhmNAYG7rG8bFH6/3K1 g/6IA8WoxxvzhLAIoWPMLb4EEGzrgnbGeyC6nry9pqVkXRFL+EZTm1ig4xSrocQ/kUKM ImRA== 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=3znO1ezRtFzVqtxfZF7sY6xfyOTnPsUjxXBy6Gk1QMM=; b=0vQVSxGyE/XePC409XGiU17ojhN2Kbd5xTG6OEQWpH4Qp0KUelPUNg63FsFjy5WRVu XfNG8ZdxlEwfRC3RCh8L2p6SS6ql3IFT8C6oL2FJlGlGSruqyschYZ8Z4oVKJplYJFkr 9eObV3UIuy3Taz8+J92KRlL5vUaEldaGt1ne+fF/Uy/zJfbXwzmZ3l2sUanKJ+nGFAK5 4Po/pa3fvpPwA6//pyoWbbt8iBwX8PMCPUnW6kzBjn2nX89beWTbpqFytlQkQzWH5BEW INV87SmiJWrUdJuMb7O+5t3U2cVamjixw56QJ32BW7JNawCG6zg/WzH+New2VxckC7dF /JPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="L4FToSO/"; 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 g16si3749206ejk.300.2020.10.28.09.42.07; Wed, 28 Oct 2020 09:42:32 -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="L4FToSO/"; 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 S1818254AbgJ0RSe (ORCPT + 99 others); Tue, 27 Oct 2020 13:18:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:56084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1771544AbgJ0Oz3 (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 90CF422283; Tue, 27 Oct 2020 14:55:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810525; bh=R+RYBK03w0OUfe0H54+RYEYme2JX99282g9zz9D1oFE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L4FToSO/+lp66AvZ4QxO5VqeYLtPDjFSja3bER69IDhdDNFNANVHXo+FjxIxtUPeC OJrUZyNoHtE80rw/WuDSmxh6hjW7q1c98K15h5uC3ade592Fua7Iub64B3tHoqxvIy GPy5wfFEjIoBEk+QSMdnS2RPV/yg8J0OYxvGSo+o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Kalle Valo , Sasha Levin Subject: [PATCH 5.8 169/633] mwifiex: Do not use GFP_KERNEL in atomic context Date: Tue, 27 Oct 2020 14:48:32 +0100 Message-Id: <20201027135530.600539628@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 d2ab7f00f4321370a8ee14e5630d4349fdacc42e ] A possible call chain is as follow: mwifiex_sdio_interrupt (sdio.c) --> mwifiex_main_process (main.c) --> mwifiex_process_cmdresp (cmdevt.c) --> mwifiex_process_sta_cmdresp (sta_cmdresp.c) --> mwifiex_ret_802_11_scan (scan.c) --> mwifiex_parse_single_response_buf (scan.c) 'mwifiex_sdio_interrupt()' is an interrupt function. Also note that 'mwifiex_ret_802_11_scan()' already uses GFP_ATOMIC. So use GFP_ATOMIC instead of GFP_KERNEL when memory is allocated in 'mwifiex_parse_single_response_buf()'. Fixes: 7c6fa2a843c5 ("mwifiex: use cfg80211 dynamic scan table and cfg80211_get_bss API") or Fixes: 601216e12c65e ("mwifiex: process RX packets in SDIO IRQ thread directly") Signed-off-by: Christophe JAILLET Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20200809092906.744621-1-christophe.jaillet@wanadoo.fr Signed-off-by: Sasha Levin --- drivers/net/wireless/marvell/mwifiex/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/marvell/mwifiex/scan.c b/drivers/net/wireless/marvell/mwifiex/scan.c index ff932627a46c1..2fb69a590bd8e 100644 --- a/drivers/net/wireless/marvell/mwifiex/scan.c +++ b/drivers/net/wireless/marvell/mwifiex/scan.c @@ -1889,7 +1889,7 @@ mwifiex_parse_single_response_buf(struct mwifiex_private *priv, u8 **bss_info, chan, CFG80211_BSS_FTYPE_UNKNOWN, bssid, timestamp, cap_info_bitmap, beacon_period, - ie_buf, ie_len, rssi, GFP_KERNEL); + ie_buf, ie_len, rssi, GFP_ATOMIC); if (bss) { bss_priv = (struct mwifiex_bss_priv *)bss->priv; bss_priv->band = band; -- 2.25.1