Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp162752pxx; Wed, 28 Oct 2020 01:12:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAy+RqzNktv2jAJ3aHht/cwxFDpttOPKdu81SjC2ECOgfydSWOeM5aIA3ybQa7vS6uRsHH X-Received: by 2002:a17:907:2084:: with SMTP id pv4mr6690503ejb.315.1603872756384; Wed, 28 Oct 2020 01:12:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603872756; cv=none; d=google.com; s=arc-20160816; b=EDjM0i08t4YnKdjb7+z6BJJtBc396HPKWQvfTg+WYMjwvtKKg0NrZP66sB5aJzHoFj IlPhwuusbsPIDgix06GI6Dtfoesi0y4L6eZj7IcskxApOnZHIuHn4AAIm/JCQcAA7J39 5PkfuXRrbcDy2CFkJy1Kz0pzuU4kYroXBTIxjL9oxLXc1dVT+eXcQNMHDojH50TLRa+w v74xACtmTJPB6QZsiwIuRc6itTu+4SlTeIBzW4hYThHyN4UgoCv0A3rerUKsmcYXDSZ0 01IETY5YjqcxRMiMQECwf0pFaHYm+G/U5ylV8lboZkt/EsARFjs1+ku3Gv0HkOPbT1RQ Uucg== 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=mzIXd2ymnL+MD4mzPF7y06g/UcU7pwCXCP8IhBgBnN0=; b=ZenA9YCQLOCT+3Wli80lWQsgRKsk0JUlkTGvRofPtk8gw/FkzcekInjqO57+cyYWwU drrA9meMuLCgkIFAAyyIgQphlSQAhYdRyckjwoNqXAcwuOBJoZJEFEqExHYr3Sh7vh85 3DqMu6nyZsTXOzDm+fonh6lv72US98PUNpEpWARJZ41UNSQ1Wes+8YxGQVO/4K65wn7c jy9ORKqPpnuPyDcp9lC570dpCjbQ6IatM56AwVGE/JydFFQC7P/FwzJ2eBQMU9buKY86 IKOHdAt6EwhrPrh0msuAeLI96vGSd8DNkIrrYobWrXQrRa///I8psQVbQqlvtFIUPcqg Nn6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eAkVzu83; 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 l12si2820211edk.163.2020.10.28.01.12.14; Wed, 28 Oct 2020 01:12:36 -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=eAkVzu83; 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 S1753227AbgJ0N7O (ORCPT + 99 others); Tue, 27 Oct 2020 09:59:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:46620 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753214AbgJ0N7K (ORCPT ); Tue, 27 Oct 2020 09:59:10 -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 7257F218AC; Tue, 27 Oct 2020 13:59:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807149; bh=DIAWyLHVihF92GNPMPQaTxz1zQ3y9fxWKSEVW+Le5wM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eAkVzu832k7lVwHkqK91mFmTbaQGcyAG7C1unjWrMg9SKIyEs8cWwGYEoS82K07PW JPrlFUPoscPnPZDCE5t63HyhmUFoGij0p+gY9UhJ/3Ka2LW6LqnoKAigdvszL0Uw0J PiSFv8zO7uFr/8JB/QPVX0W2DqpZwVF/s/pshoHQ= 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 4.4 030/112] mwifiex: Do not use GFP_KERNEL in atomic context Date: Tue, 27 Oct 2020 14:49:00 +0100 Message-Id: <20201027134901.987565895@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134900.532249571@linuxfoundation.org> References: <20201027134900.532249571@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/mwifiex/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mwifiex/scan.c b/drivers/net/wireless/mwifiex/scan.c index e7c8972431d34..e54dd4b7face6 100644 --- a/drivers/net/wireless/mwifiex/scan.c +++ b/drivers/net/wireless/mwifiex/scan.c @@ -1862,7 +1862,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