Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp181564pxx; Wed, 28 Oct 2020 01:54:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz37xHoQLyc45kjKjpENNqd6NRV2f+yPbZfTwjZ6pxF8/JQIad/cy9M5rMjeBQrseIgVZaa X-Received: by 2002:a05:6402:b45:: with SMTP id bx5mr1915246edb.193.1603875278702; Wed, 28 Oct 2020 01:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603875278; cv=none; d=google.com; s=arc-20160816; b=czbL3ZHhce9pgWY/vtjJMOELuhExLCnNzXw+awHczF1Mq9Q26rnqaU7IoqyuGqgC2G 9SNS2I0KxaCBTnCPieChLPsVGrzjSmz9bZgb+WQV0XjeYaIIDy9gR38FdVhhx+o6bPJJ pNGoIqLa2botdHqawbSwRQzhAVPoajm4nZ9PYaa5/g8RInBgfXqaWwDJ1AD3HmdzAx2v rxClDbJbV8O2bm5oSZdtrLuSfvAr/1D2B/Bc2s27wX3LvM5aXfQ/a0ZRFf+OUeDQZBsB yx+CXzCO/5WFH9W4ZCzumC2O+sOBDbMg3ZcnQ0Soghe/YSYMIcrsxPGcjt4BsOSeD26N X5pQ== 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=cjP+aRBTsLkETmJoJfLTBEOm0bLq9ALti2930uTpzRA=; b=UHl0wRZP65fxMQ/bDbalUajqMFGCgnOEMM6TMtyq1hL3N3DRAbT4h3qr6dV25kfsS+ jC8DFqr0hiXN6K9jWPf6rYvlCTBNHtaJysizNnmQ2aLIXCA4pqwOsDkg5zvQnr6DviGd 8lptLwEduj2WsUZGyHWoQLi/IxgCUKAya0ucDGtB7aQjPXuHkmitM9CpKWbsPsEjhxcq kNKDYr+LqMXfPPkrB/060HSPQMk/pO71Ob6PcqRw1nL4uWdNWDDKadkDH+JZWclO8h8d XoP/3hvNfY52orLNak/KoZMJOqNW9WaRu3ZyhkKmHmsp+Iha/QtExYqP++S+42zMbMXQ IiRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sxXFJyN2; 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 p17si2879649ejg.48.2020.10.28.01.54.16; Wed, 28 Oct 2020 01:54:38 -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=sxXFJyN2; 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 S1756488AbgJ0ONh (ORCPT + 99 others); Tue, 27 Oct 2020 10:13:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:59194 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755486AbgJ0OKI (ORCPT ); Tue, 27 Oct 2020 10:10:08 -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 9260C218AC; Tue, 27 Oct 2020 14:10:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807808; bh=UWAPA+UqCncHrG25SZ/XtZ0sRzW4RMkMNLEVjFK1YFU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sxXFJyN2ghAKBgDBAO/91YiynwOj1Cdv9wSZYc7Kn47a65hTggkEJMlGe1kpvEI5u MYJvbO4iOHDW40DJdr/ZZCLONSa3Apg0gQuPJd0xEW6/LdTAWoV8wNGLEF0up1e0B/ ITGSaoyi+H1jk5wtz+59kgoASt/p0kAKpdscWiZw= 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.14 049/191] mwifiex: Do not use GFP_KERNEL in atomic context Date: Tue, 27 Oct 2020 14:48:24 +0100 Message-Id: <20201027134912.095044557@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134909.701581493@linuxfoundation.org> References: <20201027134909.701581493@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 0071c40afe81b..a95b1368dad71 100644 --- a/drivers/net/wireless/marvell/mwifiex/scan.c +++ b/drivers/net/wireless/marvell/mwifiex/scan.c @@ -1890,7 +1890,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