Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1383579rwr; Thu, 20 Apr 2023 14:18:22 -0700 (PDT) X-Google-Smtp-Source: AKy350YYJvuQQWuCB+vFafMR8+CitbPCQuFaJ69lzI1wV5zgf88PaRL3B4vJiIQr53FUzNad7ux3 X-Received: by 2002:a17:902:e808:b0:1a1:bfe8:4fae with SMTP id u8-20020a170902e80800b001a1bfe84faemr3761602plg.43.1682025502279; Thu, 20 Apr 2023 14:18:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682025502; cv=none; d=google.com; s=arc-20160816; b=pu5O7r1CE9lf4nK6/+1zI3hsYamoK8bXQylxDY4uqaj++UdjXILGvBxyHpFQsVxE1A kQdlKAs74dny9uihZUVppvgzk3OfMkt2+BQWLYygz7bmNcKKlAAKykJc3HZaDsQILifF cJBZDgr1uz/pF7bd8+pE9W5/H8nQube91q35zs9R3i7Uhr4EDImyHu7q+s7DbXnjRMMm dv5wCTibjVXHDiXtGwj1hZZbNqhJzEOqzc93waZP7z3h+9lRPavDmmmiJRmCupSnAlEc bkeQR14NFOSEnqiNYDsYBKLcsb+LvIHw/VTuluU7FrCWzOpIZcggOHPTVHwA13tem/3K 2znA== 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 :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :from; bh=e/+N2oFyRcFf1leQm0okZY38id+c7Uk4APOwA1A79GA=; b=bG+jZEREezv7fArN6ICUU5f0mGO29tk3SbOAd/a8HgFYrf1YNfq3F3rh3CCuAOrF1a mcVb4e/3+9IDsOGcxsmvv8+3psOjBvcs/K7Nb1GbXpoa9oV6t0/AJVEsiydSCc6oNx0m KcG8Tq6vX1ILOImPOpiWqa68Kmz5EK0RkDhbsg/cMgnE/ya2rq2d3MVRXqNLAh3ctRKE sV8+UtySF4SvV3Qzto76yWP/S2xJ3vjc2YFm9btPNjrD21Aq0OLa3wB9sbl6fq/geV0K y6el6k3ZxBBdZxnIWEPDHTSyXyF16McG+h6TUZEFfUEt9aIKZAphtUpJEvAhc2KSiwAF rX2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=ZpN9C5TD; 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=toke.dk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a17090ad50200b0023033ddad2fsi5252617pju.73.2023.04.20.14.18.08; Thu, 20 Apr 2023 14:18:22 -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=@toke.dk header.s=20161023 header.b=ZpN9C5TD; 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=toke.dk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232351AbjDTVKA (ORCPT + 62 others); Thu, 20 Apr 2023 17:10:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229736AbjDTVJ6 (ORCPT ); Thu, 20 Apr 2023 17:09:58 -0400 Received: from mail.toke.dk (mail.toke.dk [IPv6:2a0c:4d80:42:2001::664]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E0C3D1; Thu, 20 Apr 2023 14:09:56 -0700 (PDT) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1682024993; bh=e/+N2oFyRcFf1leQm0okZY38id+c7Uk4APOwA1A79GA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ZpN9C5TDA5nNRpPvLpb0I6VQyKze6wtjkuje/bvI+vCVIqOMWRn8uLWtE4cdsbNkh 9uJ+QdRCbzTdpymslBNXH8tOuEh47CQuU3MIRfj6Amk/5M3T9ZAvkobSiqp1SjO1a8 APtEdFA76SZXsXp4SdOJam2tJiTxEcjcqsOvY5VSagqtk0wH33Y/rMzME++2vuFIqW UbbkGakiUuu6ZND877pnCmwHpKhSjoYKFF0mLwa18/Rw/4CrR056jLHs061Rlrn5nM kaObEyR7xXowlWj5vmHTOFSH+Lh8gfSMvP+2XHsYYcY/cVwXBAWFVTgo5bQ68fuLhM J6tYADf61+F7Q== To: Linus Torvalds Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Colin Ian King , Thorsten Leemhuis , Jakub Kicinski , Kalle Valo , Linux kernel regressions list Subject: One-off regression fix for 6.3 [was: Re: [PATCH] wifi: ath9k: Don't mark channelmap stack variable read-only in ath9k_mci_update_wlan_channels()] In-Reply-To: <20230413214118.153781-1-toke@toke.dk> References: <20230413214118.153781-1-toke@toke.dk> Date: Thu, 20 Apr 2023 23:09:52 +0200 X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <87zg72s1jz.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Toke H=C3=B8iland-J=C3=B8rgensen writes: > This partially reverts commit e161d4b60ae3a5356e07202e0bfedb5fad82c6aa. > > Turns out the channelmap variable is not actually read-only, it's modified > through the MCI_GPM_CLR_CHANNEL_BIT() macro further down in the function, > so making it read-only causes page faults when that code is hit. > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=3D217183 > Fixes: e161d4b60ae3 ("wifi: ath9k: Make arrays prof_prio and channelmap s= tatic const") > Cc: stable@vger.kernel.org > Signed-off-by: Toke H=C3=B8iland-J=C3=B8rgensen Hi Linus Thorsten already pulled you into the thread further down, but I figured I'd do this writeup anyway so you have the full context: The patch quoted above[0] fixes a regression in the ath9k driver that was introduced in 6.2, which causes a kernel BUG() whenever the "Bluetooth co-existence" feature in the driver is enabled (which seems to be the default on at least some systems). Because of unfortunate timing (caused by an impedance mismatch between the wireless tree and the -net tree, and my failure to realise this and push it directly to -net), this patch did not make it into this week's network tree pull request to you. Which means that unless you decide to do an -rc8, this regression will also be in the 6.3 release, and it may take several more weeks before the fix makes it into a stable release. So, with a bit of prodding from Thorsten, I'm writing this to ask you if you'd be willing to pull this patch directly from the mailing list as a one-off? It's a fairly small patch, and since it's a (partial) revert the risk of it being the cause of new regressions should be fairly small. One of the reporters on the Bugzilla (linked above) confirmed that the patch does indeed fix the regression. In case you *don't* want to take this patch directly, Jakub has agreed to pull it directly into -net, in which case it'll land in your tree via the next networking pull request. Either way, as indicated by the sibling thread Thorsten Cc'ed you on, we'll take your opinion on the best way to handle this into account in the future. Just let us know :) Thanks, -Toke [0] Direct Lore link: https://lore.kernel.org/r/20230413214118.153781-1-tok= e@toke.dk