Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp466760imn; Tue, 26 Jul 2022 00:00:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1srk1mL3RxGtXpYjkt3+yW1DoPwkie1XcZoJEOWne8CfJMF3iaLDluOD2fCXF0D8ZOZY4C2 X-Received: by 2002:a05:6402:34d2:b0:43c:216:a56c with SMTP id w18-20020a05640234d200b0043c0216a56cmr8665277edc.40.1658818834378; Tue, 26 Jul 2022 00:00:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658818834; cv=none; d=google.com; s=arc-20160816; b=DKL/uNFmaapbFx9J9B7hSN07p3nPvdxdxMLW6VQqoTFiQ/sGECcPbwLzSMFxVIL69k vzPjrBFMF/+7ecP2E14Xd72sv0HT7y6OC0SjNpE0QtKgpNqwZVjLuS+oP0pwY10q/uaM HBxatT2kYm4K0d4uH4OHZwo5vaMorvqK1GqttejyvsZX1ZfG14rR76ITaJAGNJiOyBS3 bE40Xso3LdNwVYW1mG350sEVqvYf3O5jWVVKXOTK5txoJgEboEpnbNZpY74zsZVyjLq/ MTkk7QlKLUXDRyMnFHQk61vdkXMmayHj/UUVd7FcVwe3CzCTEoklOAhsllpQDP9bp3E0 cFcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=YZGIa/rHck5vzwwCLUUsf3x1MoOMAuf+Ca7zhy88QhQ=; b=mRN6n2zN4N/15PhRRrFBqRrRbajLF/bCUkVNDcSKNRRQTn7DgZFV3SXqLSpzj9FfNG KFr2BTGU7YaaNZqFYPBvhncwGW4hJsp/DO7eF7QCkAAecbDu2ddwj8i3SEpe+6WPIqFm Cdydc9UpopCAYlG3BcUD4p2uaUismkDO2u7sknZJNNX5Dmu/GymVsgAsGCBjiKlkeGBC kRNX4jAylw5KZo6GSmu6ON73FiQBBfghSk2VuDnmg3O3krd6+QxJfr2Hv8Y4Al7vYfCp bT01Fj2PvsOZ9xMvSD7UWMQJ/pWFJ6TDd46e3KBP7JZ9HdQ1IE3bvAyp1pQE2mEXv+Vi Wz9A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w18-20020a056402269200b0043bfae47ce4si285069edd.26.2022.07.26.00.00.12; Tue, 26 Jul 2022 00:00: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237656AbiGZGzz (ORCPT + 65 others); Tue, 26 Jul 2022 02:55:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232075AbiGZGzw (ORCPT ); Tue, 26 Jul 2022 02:55:52 -0400 Received: from www262.sakura.ne.jp (www262.sakura.ne.jp [202.181.97.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22485275CD; Mon, 25 Jul 2022 23:55:49 -0700 (PDT) Received: from fsav119.sakura.ne.jp (fsav119.sakura.ne.jp [27.133.134.246]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 26Q6taPg088886; Tue, 26 Jul 2022 15:55:36 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav119.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav119.sakura.ne.jp); Tue, 26 Jul 2022 15:55:36 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav119.sakura.ne.jp) Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 26Q6tZJX088883 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Tue, 26 Jul 2022 15:55:35 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: <9487e319-7ab4-995a-ddfd-67c4c701680c@I-love.SAKURA.ne.jp> Date: Tue, 26 Jul 2022 15:55:35 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2] wifi: mac80211: do not abuse fq.lock in ieee80211_do_stop() Content-Language: en-US To: Kalle Valo Cc: Johannes Berg , =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= , Felix Fietkau , linux-wireless@vger.kernel.org, netdev@vger.kernel.org References: <9cc9b81d-75a3-3925-b612-9d0ad3cab82b@I-love.SAKURA.ne.jp> <165814567948.32602.9899358496438464723.kvalo@kernel.org> From: Tetsuo Handa In-Reply-To: <165814567948.32602.9899358496438464723.kvalo@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE 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 Since this patch fixes a regression introduced in 5.19-rc7, can this patch 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. On 2022/07/18 21:01, Kalle Valo wrote: > Tetsuo Handa wrote: > >> lockdep complains use of uninitialized spinlock at ieee80211_do_stop() [1], >> for commit f856373e2f31ffd3 ("wifi: mac80211: do not wake queues on a vif >> 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=eceab52db7c4b961e9d6 [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 that is being stopped") >> Tested-by: syzbot >> Acked-by: Toke Høiland-Jørgensen > > Patch applied to wireless-next.git, thanks. > > 3598cb6e1862 wifi: mac80211: do not abuse fq.lock in ieee80211_do_stop() >