Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp743972imn; Tue, 26 Jul 2022 08:10:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uue79wijxrwlstC2MaRygEakDZG0vSdqzITqCBkwpA2KTUq2SJty4watQFi+sy5lWj/M4R X-Received: by 2002:aa7:ccc8:0:b0:43b:e3b4:bc0a with SMTP id y8-20020aa7ccc8000000b0043be3b4bc0amr15209947edt.289.1658848218566; Tue, 26 Jul 2022 08:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658848218; cv=none; d=google.com; s=arc-20160816; b=VvOy45/sQWpXd8kf//iMzuI/gUCKVHrwxPShnumVHzl0nrPLrR6rZKWKqVxkki9BVR lZeafCgq94BMBqkMo5jCw3qCmY/GwFSRaw/OYW+oU5YLZTVHmowKlIH13Z6DCQ6+94f2 owjszNaWkPh3RoSmO4ZZCHpiBIpf2G1vvUSVjdeAZm+dG+otza9xDuB/tWBJ4UBVlbiE /DcvMV5v/hLztMmP+6jiq46TBMiTorX4aROBP6v+jOnPPnxCT++iO+KG/Kvn3FK2jtWq fkYQSxotXg922Dg//+mQCAIfm4urMRCMO0RNq4pNQyFL5b1U67wSKUdMfn7urqalcIg4 pAQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature:dkim-filter; bh=W2/AqLoKMCJLC1I8xM1xFC3l2dTajl36F3ZRPrlwxEA=; b=pL6oL5qWv+GwmiBzeGmA5emI6PVY2yo9g8FWySUM34z/JlgDgWnz0YjiwbVwwo1UGc mTPAYbB51JbOlIuQgCxVfBrxUgdzirojsG18NZEIBYfGCnSgPTO7mehQeLcKsXSrp4OC 8rQnA/pGrGCAsvgAqefh5fYVzBKoUtEI2IFHuUzZhjrdORgSWiqLXBFvztsjoSTwyOk7 zijoybgAspw5jACoLbN9Nydhn+f89eKmPnrP7sYS2aDnpEm3qkf5ukZrZLS8HaMs8QQ+ sKFJYHsX17WXuGwiUy4EbcrSNht2nhxGAptgNekSQKk3/KOwijNsLo9fzRuspodaA1Zg OMpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=KYvf678X; 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=candelatech.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o20-20020a170906975400b007269af5c7f8si18073855ejy.853.2022.07.26.08.10.01; Tue, 26 Jul 2022 08:10:18 -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=@candelatech.com header.s=default header.b=KYvf678X; 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=candelatech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239512AbiGZPF1 (ORCPT + 65 others); Tue, 26 Jul 2022 11:05:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239515AbiGZPFW (ORCPT ); Tue, 26 Jul 2022 11:05:22 -0400 Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9982F65FB; Tue, 26 Jul 2022 08:05:20 -0700 (PDT) X-Virus-Scanned: Proofpoint Essentials engine Received: from mx1-us1.ppe-hosted.com (unknown [10.7.66.134]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id DD6621C0094; Tue, 26 Jul 2022 15:05:14 +0000 (UTC) Received: from mail3.candelatech.com (mail2.candelatech.com [208.74.158.173]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 22F14680095; Tue, 26 Jul 2022 15:05:13 +0000 (UTC) Received: from [192.168.100.195] (50-251-239-81-static.hfc.comcastbusiness.net [50.251.239.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id 2FC5713C2B0; Tue, 26 Jul 2022 08:05:13 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 2FC5713C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1658847913; bh=DEERnH2hjNi0X6IYykoN5SMcoGES5UGGCHHyy0q4eKE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=KYvf678X5F2q3eqhAPbUFAyupYfrm92qMt6/pHuglOq47Ybp1XOL1uZdnCmQBv9oQ ufTjHwYCI3TAe3vJFcl5PT3uq8Mvc03UcCwUdJyhHac8yMRToysdwJELdImqKo+8PP HzKcmnQKclPDz+5QPowEUgNIZW2f+HIgFMTJcHRU= Subject: Re: [PATCH v2] wifi: mac80211: do not abuse fq.lock in ieee80211_do_stop() To: Kalle Valo , Tetsuo Handa 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> <9487e319-7ab4-995a-ddfd-67c4c701680c@I-love.SAKURA.ne.jp> <87o7xcq6qt.fsf@kernel.org> From: Ben Greear Organization: Candela Technologies Message-ID: Date: Tue, 26 Jul 2022 08:05:12 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <87o7xcq6qt.fsf@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-MDID: 1658847915-YS-IlGmw5TkY X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 7/26/22 7:38 AM, Kalle Valo wrote: > (please don't top post, I manually fixed that) > > Tetsuo Handa writes: > >> 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() >> >> 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. > > 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. Would it be worth reverting the patch that broke things until the first stable 5.19.x tree then? Seems lame to ship an official kernel with a known bug like this. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com