Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp219941pxx; Wed, 28 Oct 2020 03:12:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBqsY6ZfxZn6AdIfWVELOPT+BEOPgmV8LEPhcB12A+HtB4GTvlgzXiG1Vzgr5LNFjIeKYh X-Received: by 2002:aa7:c490:: with SMTP id m16mr6792727edq.298.1603879933692; Wed, 28 Oct 2020 03:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603879933; cv=none; d=google.com; s=arc-20160816; b=cMfD81W+z+hdZtejRDkmnNLpfhtkZEl6L7MxMTnxFah85YSNWJ5yyaL+eSu6AqNoFW xSuVqM+ebUzaqizj7jjIKa98gOr/QsevfIN3F/E6viPW8AKRqkZHsHALWEQNn7YUBK/I EjJIiexNeesVPHxqf64TFZFGQ9yKqPV8kBWsw5eAV5qSPEHYjCcWXhWqlMmtPTBKaSkC B0mD8jkYYSjXdDy7yj2XIKhjMU05NNa20cgTFvp2MCZrg/g9dRl0ta5P4X4a/hJ50G97 h2lmfUIj7aQE8awrsWxbENYsQ7Izp/NYtnf5QAZ+Bl9Ro+8XEx7zPcNfd6Y0c9XBC7zd 4fOw== 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=XHR/R1N//HjSCTXcFkuqhicu7bI1KO9S9443CoDawmc=; b=SM65FXbj2i1T0cHvyAQWSBKbiGU1Vd4/Jisvu9p7nf5PGsXsMqZhSy3VQDAmmmXQG9 ASjC7mB/TZBkPUgxnLHEUkD6BDkwCOUL8t4k26TTFYnH7Cb664/gG/oxnAisZ0sC8WzN m7KCBHXehXSXSGLI4QzKQiOd/GyQfscvuzhCB2em7ChJozkdtv1ofq0c84yrFP2LhmTQ VnqcfdKbBkJJpI5ULQ0GZKkTYLmU8pAzjPLMxxi4F4nHYWI2jfG9TKhAc+9LiWHuiD+B 1st5CnPSUj4CWgFvcNqGvZJxnnfAMK5fzXdlNmzb+HWw9teCmWTq6S2ZMlwBMvwHh2vQ PQ3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yB7LIqAc; 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 d2si2953320edn.245.2020.10.28.03.11.51; Wed, 28 Oct 2020 03:12:13 -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=yB7LIqAc; 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 S1760590AbgJ0OfU (ORCPT + 99 others); Tue, 27 Oct 2020 10:35:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:33076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760259AbgJ0OeT (ORCPT ); Tue, 27 Oct 2020 10:34:19 -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 8AA7D20773; Tue, 27 Oct 2020 14:34:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809259; bh=HX3aU6P1SMK8sP+Jjk+iqfwLcjm4EHSdB8nhGyqW1Q4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yB7LIqAcAU7wi8E5ZhhV7GuDggekGcMGQLKHe0QdsVp4OHJeHQEmkh+ha56/dPUGn BKQ2oLnK0rqKeX37aYSVYkHMFNSfHSfIxtBLXBAZ4VRSwiofvJ8PVVjQGQIg8vr9+Z fRq+ny/LQeBYzOoGf3I6YC+AZQvP2avRbRL2brQ8= 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.4 115/408] mwifiex: Do not use GFP_KERNEL in atomic context Date: Tue, 27 Oct 2020 14:50:53 +0100 Message-Id: <20201027135500.438619721@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 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 59f0651d148bb..629af26675cf1 100644 --- a/drivers/net/wireless/marvell/mwifiex/scan.c +++ b/drivers/net/wireless/marvell/mwifiex/scan.c @@ -1891,7 +1891,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