Received: by 10.213.65.68 with SMTP id h4csp472672imn; Tue, 13 Mar 2018 10:07:40 -0700 (PDT) X-Google-Smtp-Source: AG47ELtcoe5Jjg/ecPMSoO5pcgcxYBZOOmlpBItxDnTmfipoU/Xb9InEVAk6Mkhe7YBKvwymsD0n X-Received: by 2002:a17:902:4827:: with SMTP id s36-v6mr1164457pld.269.1520960860854; Tue, 13 Mar 2018 10:07:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520960860; cv=none; d=google.com; s=arc-20160816; b=o3JcaMUYdkh8Afemmeh60Kiy/0IdpAyXwus85JoB1V6/yGA09uS9zoZ7ut0gqp50uU /EeKgRYH79IP1oPwnwjF50YhwAPM6Ds3MIU1hwJ0E53WS6f2PN+x5nJJviGFiIhju8X0 FTPoA+1s9MrIXWu/+mOlf3R0m8EsVQ+NkcoAwiJq19RybFs/d8rC2pZQCgGBST/3/5dI SVr+BLdWtNyrB1Nr0O4IMvLk5bRmDQYqtd0+JO2H0W0e9EyZP72qCi7EI48YP45/+Hg1 SElC02r9h1B+BsHeOyJq1s1yqk1Q9e4yA5PsgHpeIeZxC1SAlC3P3R5gUTQOqCipqBaf ENQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=jRD6dSdzktkKhx/BhIjrDfOOwQ7Du9YAjKdCD8v39Fc=; b=FZ6NlNGb7XSMJhErzJD0FmvM4dZGDWhvKzOqPfGDLebhRusvsLblPrnUuW6Br/eYkK Yz9gnzV/mdbvv5hfnxFC9rw3Ia6mHzQ5G0kTPvFtL6LQpyfvAtCppzGOGC8PFSXusx10 uHJSHfV1D7AbUDrh5dTvuMMt66amnPKINCUX91L9W6eDfTG+nlkj37g4UsyuRZsn8JAr DtgQI96oRGLvjRd1PKh8Tx2y/Hynf/R4boLN5UBTNAuohFT0UeK/uzz8nVEZjYrs1a1J yCOJuA2nAV1sE0dOHQcOzxwMZphOHeQTXAWfhIpSW5abRNM7TkPbFhEvgbI5z6v9T/Mx KOxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j2si327716pff.214.2018.03.13.10.07.25; Tue, 13 Mar 2018 10:07:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932666AbeCMP2F (ORCPT + 99 others); Tue, 13 Mar 2018 11:28:05 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57400 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932542AbeCMP2E (ORCPT ); Tue, 13 Mar 2018 11:28:04 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 3C28D11DE; Tue, 13 Mar 2018 15:28:03 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, syzbot+41cdaf4232c50e658934@syzkaller.appspotmail.com, Johannes Berg Subject: [PATCH 4.15 006/146] mac80211_hwsim: dont use WQ_MEM_RECLAIM Date: Tue, 13 Mar 2018 16:22:53 +0100 Message-Id: <20180313152321.100368498@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152320.439085687@linuxfoundation.org> References: <20180313152320.439085687@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Johannes Berg commit ce162bfbc0b601841886965baba14877127c7c7c upstream. We're obviously not part of a memory reclaim path, so don't set the flag. This also causes a warning in check_flush_dependency() since we end up in a code path that flushes a non-reclaim workqueue, and we shouldn't do that if we were really part of reclaim. Reported-by: syzbot+41cdaf4232c50e658934@syzkaller.appspotmail.com Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/mac80211_hwsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -3455,7 +3455,7 @@ static int __init init_mac80211_hwsim(vo spin_lock_init(&hwsim_radio_lock); - hwsim_wq = alloc_workqueue("hwsim_wq",WQ_MEM_RECLAIM,0); + hwsim_wq = alloc_workqueue("hwsim_wq", 0, 0); if (!hwsim_wq) return -ENOMEM;