Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp726503imn; Tue, 26 Jul 2022 07:46:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tiirtisIsH37Nvnrywc0vj6I2AdDB3ADUdTKSK8WVxkk035bpgbclfZf0ACg3XFs4Ezz+X X-Received: by 2002:a17:907:168d:b0:72b:5b67:83e6 with SMTP id hc13-20020a170907168d00b0072b5b6783e6mr14555159ejc.709.1658846769014; Tue, 26 Jul 2022 07:46:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658846769; cv=none; d=google.com; s=arc-20160816; b=UcF56PlkQtdrU7WJ3Tg37KCZPemsHZokRfn86DJoVzr8UKcz40zLjmTN1TFK1+5rge W0K6R4yqNrrpomx3d7Z/51VDJUIVUbNqYBee9jgF0mGfEz+A8aIZWHaEf32mdhh8qVnH VRoUmrnCV968WG2OlBryw264FWoM9/SJ+cE0XBL8bU7AiknsgGDd/JdcXXiOyFvl1H8a NnvAWH7QxQbamrcW/Zo/bKSDqJr6QMdDf0xbIbFwlFV33R4EV4560ktUti+Sbq3PW01K u1/8xIz41Vw8kFk9XyD8yTo/2VAZSw4FiRWVAje19WYV0Kz1BSprgIWmxKYSeIscZRy+ 6bcQ== 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:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=cgZg+rhtv9wr0MSR6nX51BTfEgBAgbyS5aVLOMUs23M=; b=ZCTGOynryHUijhUUe/PwgAtNJWGABcpglFyjgLPWsU5Fk7R3I5a2R08RUdbG63JGby sdwbpNNN2sveufJShzVwW3YbCI0uFMUiZDBRKyAm3YyN8GfKNdA7amF9HkynUmXCyfGZ ejMo6N18IfttIC3UtcpG6zKdCVYu9Xr5SSK5WXOj6wkJwqdapXSnIckx2mzJi+HEom63 2b45wICoq00V0KT44qKBeFPAmx/qwwjg4/1AsIvG2cPWkrHE6ox+x5CDY6UbEUXjcMQJ zdezUOzrwcGywZXYjm9qovpj0kYKycuPxv+fqkJK5Qy1t9L1PPzPpDrGLiJt+i1HsL2I /aGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PJPxEPfE; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb1-20020a170906edc100b007277dd43476si11037358ejb.347.2022.07.26.07.45.49; Tue, 26 Jul 2022 07:46:09 -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=@kernel.org header.s=k20201202 header.b=PJPxEPfE; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239376AbiGZOi2 (ORCPT + 65 others); Tue, 26 Jul 2022 10:38:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbiGZOi0 (ORCPT ); Tue, 26 Jul 2022 10:38:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 919E020BD5; Tue, 26 Jul 2022 07:38:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 39D3EB8167A; Tue, 26 Jul 2022 14:38:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7ABC5C433D6; Tue, 26 Jul 2022 14:38:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658846302; bh=cgZg+rhtv9wr0MSR6nX51BTfEgBAgbyS5aVLOMUs23M=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=PJPxEPfEIFg2xolAKB7coxbpIv0p8AB8FcsczpwMwAwjd9r8AR/s56M2qIEtRDQv1 WsCWnBBIEL6Qo0dkC7pIxPucVrznY6KgQP1kTk4Nd+8E9OwFoDKtjQXtwVsFCRVBQJ F0tsUicHtyk4aa32KenTIJRx7wirDOaMdrQxPV0FGdL3Bs7HxrVNrsy8K8I1FxVjVx ik5c+Q9fCCwmAVELnqReWI5vdF5sDlR3Q3h+nqRG6Pmnmk9MlvuZBGXBIIThSaBlbe S5V3BeYjc3xDGS0wJug/RG0O7FCIAdzgsBIOSylDPQYueuI8LSl15kVa9TeIzQQnPb 4mC9g3ZXvZorA== From: Kalle Valo To: Tetsuo Handa Cc: Johannes Berg , Toke =?utf-8?Q?H=C3=B8ilan?= =?utf-8?Q?d-J=C3=B8rgensen?= , Felix Fietkau , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v2] wifi: mac80211: do not abuse fq.lock in ieee80211_do_stop() References: <9cc9b81d-75a3-3925-b612-9d0ad3cab82b@I-love.SAKURA.ne.jp> <165814567948.32602.9899358496438464723.kvalo@kernel.org> <9487e319-7ab4-995a-ddfd-67c4c701680c@I-love.SAKURA.ne.jp> Date: Tue, 26 Jul 2022 17:38:18 +0300 In-Reply-To: <9487e319-7ab4-995a-ddfd-67c4c701680c@I-love.SAKURA.ne.jp> (Tetsuo Handa's message of "Tue, 26 Jul 2022 15:55:35 +0900") Message-ID: <87o7xcq6qt.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 (please don't top post, I manually fixed that) Tetsuo Handa writes: > On 2022/07/18 21:01, Kalle Valo wrote: >> Tetsuo Handa wrote: >>=20 >>> lockdep complains use of uninitialized spinlock at ieee80211_do_stop() = [1], >>> for commit f856373e2f31ffd3 ("wifi: mac80211: do not wake queues on a v= if >>> that is being stopped") guards clear_bit() using fq.lock even before >>> fq_init() from ieee80211_txq_setup_flows() initializes this spinlock. >>> >>> According to discussion [2], Toke was not happy with expanding usage of >>> fq.lock. Since __ieee80211_wake_txqs() is called under RCU read lock, we >>> can instead use synchronize_rcu() for flushing ieee80211_wake_txqs(). >>> >>> Link: https://syzkaller.appspot.com/bug?extid=3Deceab52db7c4b961e9d6 [1] >>> Link: https://lkml.kernel.org/r/874k0zowh2.fsf@toke.dk [2] >>> Reported-by: syzbot >>> Signed-off-by: Tetsuo Handa >>> Fixes: f856373e2f31ffd3 ("wifi: mac80211: do not wake queues on a vif t= hat is being stopped") >>> Tested-by: syzbot >>> Acked-by: Toke H=C3=B8iland-J=C3=B8rgensen >>=20 >> Patch applied to wireless-next.git, thanks. >>=20 >> 3598cb6e1862 wifi: mac80211: do not abuse fq.lock in ieee80211_do_stop() > > Since this patch fixes a regression introduced in 5.19-rc7, can this patc= h go to 5.19-final ? > > syzbot is failing to test linux.git for 12 days due to this regression. > syzbot will fail to bisect new bugs found in the upcoming merge window > if unable to test v5.19 due to this regression. I took this to wireless-next as I didn't think there's enough time to get this to v5.19 (and I only heard Linus' -rc8 plans after the fact). So this will be in v5.20-rc1 and I recommend pushing this to a v5.19 stable release. --=20 https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatc= hes