Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp42424rwb; Wed, 10 Aug 2022 04:40:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR4+IK0UInwjUZdLPoQ7VTbvx5bm6Uded0jSSyKDqzMO7bNHsS94SsOU0tuQ1x941WRame2B X-Received: by 2002:a05:6a00:23d1:b0:52f:39e9:9150 with SMTP id g17-20020a056a0023d100b0052f39e99150mr14252443pfc.16.1660131634324; Wed, 10 Aug 2022 04:40:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660131634; cv=pass; d=google.com; s=arc-20160816; b=qD9ssiRL9IsCIusJNv6TFZ90KOVMJxekNifNBzXrIxjGX0kaQS5SDAGFJ+Fr9tikZv YAyXsxlr9lpIyPP/Ouo1OM0N1v3/X0vYdc8tdXBqujrlPBgOHmNoRLqDx5WgLJ7kq34z VWV5FOHtekadmRX2kwFFLZLM7mGp4KkPMgh6eSVwing+QBZXeF0HbmKnZJ1sQ/NUbcTK eqUOY06/1eGU+7+N897G7kEaE3N0sm4GYUyos1Do7bof5ieJcmmDK0eUVvK8Mp36iaB8 w+3wmug6bNt7Wrd1bt5hjNwQvb8nrAak7EJf+GVrZ8oOtuT90u3QA6oNlWGq1xJgxAKT J8Vw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:subject:message-id:cc:to:from :dkim-signature; bh=u9HSKOXe5zxLLHtzfzWYR6+aGKllL8CvnILcjWqDyDs=; b=NcQuQ9q7SiHTH01VSXQbF+I2w6qgubpDq00dXinNJ3NxKlRneEAhmp8QWoDtjWDy9K dVf2U36b+DvFBX7aLH/LZNiqxL2LCd+Q8I5TqyS6mFDwVwHMfYs+fMknCs1SWgIJNA40 cbsSlFG2ike05aiGL0qqc0Lsg7G2iebst/Ti3+ODY5kRqCVivlR08CypXvFSD8+nwUDR GU1g9B0oVodNgix3U0xb63c1sCakLoEuEo//hZoh8SrEyGJdKp5h+0I1SOO/98SWE3ZG vzrU4VASVl5MyvBC0FKn4nTmtApwXIrYktSQ4uLHVyPaQKM+9YmH4NAaHQPIWSZaohno Mxwg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=ip5aGDSk; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siddh.me Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b21-20020a170902d41500b0016ca4b6eaddsi14610727ple.122.2022.08.10.04.40.19; Wed, 10 Aug 2022 04:40:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=ip5aGDSk; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siddh.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229628AbiHJLgX (ORCPT + 65 others); Wed, 10 Aug 2022 07:36:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbiHJLgW (ORCPT ); Wed, 10 Aug 2022 07:36:22 -0400 Received: from sender-of-o50.zoho.in (sender-of-o50.zoho.in [103.117.158.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F7116E899; Wed, 10 Aug 2022 04:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660131358; cv=none; d=zohomail.in; s=zohoarc; b=aryWP3VgZHtZyyf1fe+yB/wYpwYI/5u7qDCuk5w1GPKehXmPuT4fQ2NntknHdokV+p+SUeD6kON8r3giMUsGoBWiVB4aByHFH2JxdkOXrM1D3JjBoRXbdbrkJuL5UWTBlTwZCXOQIGi092czqFn4cuqH0F0hBaFOph6DY1IcKQM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1660131358; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=u9HSKOXe5zxLLHtzfzWYR6+aGKllL8CvnILcjWqDyDs=; b=arB6iGGmipIutBpTpMKc7FGYnmCf4+lCJ+CaqE3vw/RXvicQiTcvggjJvsZCG7K4HEK4TdB8coBHU4UiMkokfQbCBii8p9K1o7dU68dOajMXCxSmJBw6D4n5/GmEqJF0v/NgqE0ig31Fii4p2Hxe7wK1D4NGQLqNFo0MbIG3dCs= ARC-Authentication-Results: i=1; mx.zohomail.in; dkim=pass header.i=siddh.me; spf=pass smtp.mailfrom=code@siddh.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1660131358; s=zmail; d=siddh.me; i=code@siddh.me; h=From:From:To:To:Cc:Cc:Message-ID:Subject:Subject:Date:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type:Message-Id:Reply-To; bh=u9HSKOXe5zxLLHtzfzWYR6+aGKllL8CvnILcjWqDyDs=; b=ip5aGDSkBQDyzNEquBXB9jsVjgOOtNrM/DGtt9uQEr4rPWyfcKB+H6ktLYGuLfCn Og51WvpUI+itDBj1tKENAVJz9IZvR5Np5c1zUuBUq1tD2EhitKeCK5RW53DVrbUanzj Vor0M9FFVphLscHxTUMoeFW8KS8xgHUq0WlS18hM= Received: from localhost.localdomain (103.176.10.218 [103.176.10.218]) by mx.zoho.in with SMTPS id 166013135646156.58855889315157; Wed, 10 Aug 2022 17:05:56 +0530 (IST) From: Siddh Raman Pant To: syzbot+b6c9fe29aefe68e4ad34@syzkaller.appspotmail.com Cc: davem@davemloft.net, johannes@sipsolutions.net, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com Message-ID: <20220810113551.344792-1-code@siddh.me> Subject: Re: WARNING in ieee80211_ibss_csa_beacon Date: Wed, 10 Aug 2022 17:05:51 +0530 X-Mailer: git-send-email 2.35.1 In-Reply-To: <0000000000008c848805b123f174@google.com> References: <0000000000008c848805b123f174@google.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset=utf8 X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_RED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org When we are not connected to a channel, sending channel "switch" announcement doesn't make any sense. #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gi= t master --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c @@ -530,6 +530,10 @@ int ieee80211_ibss_finish_csa(struct ieee80211_sub_if_= data *sdata) =20 =09sdata_assert_lock(sdata); =20 +=09/* When not connected/joined, sending CSA doesn't make sense. */ +=09if (sdata->u.ibss.state !=3D IEEE80211_IBSS_MLME_JOINED) +=09=09return -ENOLINK; + =09/* update cfg80211 bss information with the new channel */ =09if (!is_zero_ether_addr(ifibss->bssid)) { =09=09cbss =3D cfg80211_get_bss(sdata->local->hw.wiphy, --=20 2.35.1