Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4811187yba; Sun, 12 May 2019 23:23:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjZYP/MVHj09grFZEyv6U97ouonK+46wKaFU2lwd/MlV2YIrpNpdzC8jS3M92iQJBvGuqz X-Received: by 2002:a62:164f:: with SMTP id 76mr31489448pfw.172.1557728605432; Sun, 12 May 2019 23:23:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557728605; cv=none; d=google.com; s=arc-20160816; b=O1v105lUVQVlTArg+r5OSGRcp5/8dM5nPCK7DCSlgIklHi4k3GSBnmmFb5XUadhlUp fY2deYIDnBx0UPrHdFtbEJRXxICgRJdcfP8QZG9x7POzOnCrDtKHM8iW9aBPnXCDjDzv qwlcqHw/ORv8snodBFIk5YjFTA0SZaxK840h8XEU27+lLT9ZJYiNdNoi6WOfyhHCz/U+ Hmb1UnL1R30TVjSTHsPnu8T3dNALBQQHZMDM04loC68qLpb8rDOOaTmHkbrCy8RNwFo/ lSf+S26CADayexDVNhI/oFT6vCSsOQu57lwNdWvo3+mnUsIkNW0nA0M76cfvJZGtwnSX kEFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature; bh=UvlahXTRZxeB+0UuJyd7MLAaMz9sXRwXaEQkFqacve8=; b=RA8CbAI0wLjqZITF3saZjABbzRenbqknju3hnZQc+4kElj5m28oKMEbNj+6sVftYnF /yJG0Q7HlNILPfKO9dIpHgA4p55oZFb2lrybGW7nDNV15mebbGraYViK/A5vjwTir6Bq 6UvfbevG1krSsmBXFaREfG2HSzpyPYQkNvV9VB8eJ0xCxWLPHIjdf1HsZqK12HTK+Kwi 0ys24Os9vbJHb6vogm4rueOOsKdOfTYi4SM5WBEtTjMlCujVgfUcls3hCaPp1ZOKIkOB jjt2Lp9IWalMR4Y7NbCLuH/kNO5DH4fqrzgL+2Xq0Z9+Ww+NmPowyfJ4rSMK3sN891hG JTRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=A+fQs+4w; dkim=pass header.i=@codeaurora.org header.s=default header.b="ZrI/Ju0X"; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 e26si14845076pfi.54.2019.05.12.23.22.58; Sun, 12 May 2019 23:23:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=A+fQs+4w; dkim=pass header.i=@codeaurora.org header.s=default header.b="ZrI/Ju0X"; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727337AbfEMGU2 (ORCPT + 99 others); Mon, 13 May 2019 02:20:28 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:59336 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726103AbfEMGU2 (ORCPT ); Mon, 13 May 2019 02:20:28 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 5371F60850; Mon, 13 May 2019 06:20:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1557728427; bh=T+hUVENOurRHcRRbtlZ0pXY3c7M47y8tTE+83qFhXNo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=A+fQs+4wIdfk53bgfk4xsibUO7FFz1LQrDrXvKVyiEoB61iiNNnjp7YAZiaHoDYOZ ndU9BSx2sUL7E0S21amX4VCh5M9ucZVKS01pYuBom01jArXAuoSNghAbpMFVl+ZIzJ avMUKqkJAo+jdJ12LM+BAKx1Has8W5xL9yOhFbWs= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 8F82D60735; Mon, 13 May 2019 06:20:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1557728426; bh=T+hUVENOurRHcRRbtlZ0pXY3c7M47y8tTE+83qFhXNo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZrI/Ju0Xt1Ki/tjgzAweE/21187vYG3dBk1Aj9GNEpS6wxRBpftgaABnjQ4dhUOzz sY3kUXeZiP3lLbrNDqKxGb8B+s8/scfUV4qBUeny071mQZK013yoPdVjbze9hO1uRz FITCMoOJGWvgfV51z27IhAPoKxaAHPWW5wznIDec= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 13 May 2019 14:20:26 +0800 From: Yibo Zhao To: Ben Greear Cc: linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, Zhi Chen Subject: Re: [PATCH] mac80211: remove warning message In-Reply-To: <7119f24f-5b88-629a-d507-73776b841f65@candelatech.com> References: <1557471662-1355-1-git-send-email-yiboz@codeaurora.org> <7119f24f-5b88-629a-d507-73776b841f65@candelatech.com> Message-ID: <0247de90c551b76aed1f9647f9b274c0@codeaurora.org> X-Sender: yiboz@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2019-05-10 22:04, Ben Greear wrote: > On 05/10/2019 12:01 AM, Yibo Zhao wrote: >> In multiple SSID cases, it takes time to prepare every AP interface >> to be ready in initializing phase. If a sta already knows everything >> it >> needs to join one of the APs and sends authentication to the AP which >> is not fully prepared at this point of time, AP's channel context >> could be NULL. As a result, warning message occurs. >> >> Even worse, if the AP is under attack via tools such as MDK3 and >> massive >> authentication requests are received in a very short time, console >> will >> be hung due to kernel warning messages. > > Since it is a WARN_ON_ONCE, how it the console hang due to warnings? > You should > get no more than once per boot? > Hi Ben, I was planning to use WARN_ON_ONCE() in the first place to replace WARN_ON() then after some discussion, we think removing it could be better. So the patch was based on my first version. Sorry for the confusing. Will raise another one. > I have no problem with removing it though. Seems a harmless splat and > I removed > it from my tree some time back as well. > > Thanks, > Ben > >> >> If this case can be hit during normal functionality, there should be >> no >> WARN_ON(). Those should be reserved to cases that are not supposed to >> be >> hit at all or some other more specific cases like indicating obsolete >> interface. >> >> Signed-off-by: Zhi Chen >> Signed-off-by: Yibo Zhao >> --- >> net/mac80211/ieee80211_i.h | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h >> index 2ae0364..f39c289 100644 >> --- a/net/mac80211/ieee80211_i.h >> +++ b/net/mac80211/ieee80211_i.h >> @@ -1435,7 +1435,7 @@ struct ieee80211_local { >> rcu_read_lock(); >> chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf); >> >> - if (WARN_ON_ONCE(!chanctx_conf)) { >> + if (!chanctx_conf) { >> rcu_read_unlock(); >> return NULL; >> } >> -- Yibo