From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8495E60A2616 for ; Wed, 2 Dec 2026 10:34:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=cuxWosfh; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Q/A/VCda DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:Message-ID:Date:From:References: In-Reply-To:Subject:Cc:To:Reply-To:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=6mP5PT1/54ajMNgM4b2s2/DYSkAzObgL05ZO9rfxS9Q=; b=cuxWosfhyzvQW+W9+KPzoL2EE+ N9VKPLQJnfYiDQZlElCQDPcbF+c6dX3QJiwNQblEoYjKiexb0K3nHE6fwUDCC3ppjMMiHLsw9O3/B GyNN8nWceaARY1w1t6ER9uF2fJMMjkwdB2rRwD7W5CVKc11xcOMNAPfFxMbVSSc7gopVt5GcAygGn aVPuD1jrNO1ebiE0XS/s0ZuV41To99DN37X/O15s0p0RlQiaTgGsH4sCgN4/mNQxSBKBCGKux2URO B6Ke4vrg1FJ6Id4whgYqs/cdJlg2yJxGVIoDDIWIfJFIBgiorNMzy8P4kfmQIqutOmhDDDVqwwnHY 5VjX4cAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYhfZ-0000000BAxb-196Z; Wed, 02 Dec 2026 10:34:37 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYhfW-0000000BAwd-3MeL for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2026 10:34:35 +0000 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4a35a60499eso100002485e9.0 for ; Wed, 02 Dec 2026 02:34:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796207673; x=1796812473; darn=lists.infradead.org; h=mime-version:content-transfer-encoding:content-type:message-id:date :from:references:in-reply-to:subject:cc:to:from:to:cc:subject:date :message-id:reply-to:content-type; bh=6mP5PT1/54ajMNgM4b2s2/DYSkAzObgL05ZO9rfxS9Q=; b=Q/A/VCda/mQyCjLjw5+3p+/FOqH5GnTlmm5e7A1TvfjzIEiu5lIR6mCogM/7ZZKC1q 5aYEIz83C7mB3fbSG6MsZbdvn++1XZw4k4O6Jd8nfYUOZeCh/gmuFWqdpLye1waFsmuL BtFCGpDc44/FPstUHoZlUZH+rTlF2dKHmKA6OKZ+Z9qW8ymNB1h2XJubfKIpBBAIGPwO dxzzUAg8Ra6FIPWQpE+ap0fZx76161ciFDKQvID2ApfLfIj6VURiMq/NnJO+qJx9aLUh 31dOYJx/YtBAgA+wjm9lRK0xOezkf/C+4Ydc8Vpf87dhsSuLNb042CN0KGGVc2ShUKly dO7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796207673; x=1796812473; h=mime-version:content-transfer-encoding:content-type:message-id:date :from:references:in-reply-to:subject:cc:to:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=6mP5PT1/54ajMNgM4b2s2/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/9R/qFaDllhKwp++o oM1YHZRqjRbbS3Z6QMG3TlEN0vblv1HmbZ+Yu9OLZ1H+w9BJ2aPWJ6/BKOnsmRxtNjzvODlHuwi qa8GWRSkXhV4KkgeMlvTAJn2pZL/ep/sGzUDLqm2cftkkQODyCXo+1qqQlrPOZxLbq5bpxIod6R /qusSbZht7wHouFbYhRD0gHvRZeArRraeezUM0kJxb17wmHJbGPNROHfrAA5n6f4TbGg53VEFhj BaLjBeduqhg91BCYsIQ== X-Received: by 2002:a05:600c:3b10:b0:4bb:db77:2a61 with SMTP id 5b1f17b1804b1-4bbdb7730b9mr7156465e9.22.1796207672426; Wed, 02 Dec 2026 02:34:32 -0800 (PST) Received: from [192.168.1.86] (93-51-0-189.ip298.fastwebnet.it. [93.51.0.189]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb853b2437sm1454688125e9.13.2026.12.02.02.34.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 02:34:31 -0800 (PST) To: Andreas Haerter , Gris Ge Cc: Felix Fietkau , Lorenzo Bianconi , Ryder Lee , Matthias Brugger , AngeloGioacchino Del Regno , stable@vger.kernel.org, Shayne Chen , Sean Wang , Ming Yen Hsieh , Devin Wittmayer , Stella Liu , Leon Yen , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] wifi: mt76: mt7925: fix NULL dereference in CSA worker In-Reply-To: <20261106055710.222567-1-ah@foundata.com> References: <20261025140123.12056-1-cnfourt@gmail.com> <20261106055710.222567-1-ah@foundata.com> From: Mattia Rombi Date: Wed, 02 Dec 2026 11:34:30 +0100 Message-ID: <179620767096.34185.3417221790955648382@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Archived-By: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_023434_865363_69E24EF5 X-CRM114-Status: GOOD ( 10.59 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-2.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Fri, Nov 06, 2026 at 05:57 UTC, Andreas Haerter wrote: > It has happened once. Two earlier channel switches on this machine > completed normally, and the log does not show what tore the context > down. I hit the same oops in normal use on a ThinkPad with MT7925 (14c3:7925), running Bazzite's 7.3.5-ogc3.1.fc45 kernel (tainted G S OE; its mt7925_csa_work() disassembles to the upstream v7.3.5 code): BUG: kernel NULL pointer dereference, address: 0000000000000000 Workqueue: phy0 mt7925_csa_work [mt7925_common] RIP: 0010:mt7925_csa_work+0x83/0x160 [mt7925_common] RAX: 0000000000000000 RCX: 0000000000000fa0 In my log a disconnect falls in the middle of a channel switch, and a second switch follows the reconnect: 10:27:28.49 CTRL-EVENT-STARTED-CHANNEL-SWITCH freq=5500 (80 MHz) 10:27:30.08 CTRL-EVENT-DISCONNECTED reason=3 locally_generated=1 10:27:32.84 CTRL-EVENT-CONNECTED, same BSS on 5500 MHz 10:27:34.12 CTRL-EVENT-STARTED-CHANNEL-SWITCH freq=5180 (80 MHz) 10:27:34.24 oops The aftermath was the same as yours: WiFi never came back, the reboot hung on services that ignored SIGKILL, and the machine needed a forced power-off. I have no reproducer and have not run the patch, so no Tested-by. Thanks, Mattia Rombi