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 AB0CB60A2633 for ; Wed, 2 Dec 2026 10:34:38 +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=iz3NWT5o; 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=iz3NWT5o99n6MNhJPIvuFhkmGH /BPXH0UYlqnuBT+ooKnBttw0Ab7LA4wxZBbsuCsXLgIHsHEUop/GW2vacC4AVYry/J5he6pbSsPEr E/rF41K7V24b3/tOxW/uwMH9QP/js+zUc9gXSa169rp29fe8ajaCLOCm+ZHhyQQTTmMy7H7RD7JZD Iv7JwXwovEDWhQgOBDWOEDq5cBpgYet4TlYyo8Rc8av2e75unf77BoKMeombmvU8KKqBmJaSSuLn5 eZmyb5EL+gw8aQFBTSaqcj5aR7tEf3hEWa9wCtUDuehqwSIZZGl28QYuVocxuilkuBzi9mTCYfi9M ztFWaP8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYhfa-0000000BAxx-1YIO; Wed, 02 Dec 2026 10:34:38 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYhfW-0000000BAwe-3LbR for linux-mediatek@lists.infradead.org; Wed, 02 Dec 2026 10:34:36 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4bb6ba3b244so132452645e9.3 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/DY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4MGR8VQgRhi26SbIQELXE4Inm+Ktr+hW9mXhBeykQQZL5Unled1Id1wcdPAY20L24VgvTlrB/5 Ih322tpjVo2JMXmO12RinMYEZx3C3Hs4+QMsTyu245VAJoyaVlExM7aBFdwUMW/4ETj9O41e75J rrbeyFYCO5w1PhpLkygYUB/vN3IH+8cKxKY4rz7rL0He0PuI4k4Ffn4RlPeBEZPppSIsUSwRqls XQ1/bBCmzT5sPVPKZjw== 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_865608_C91B26FC X-CRM114-Status: UNSURE ( 9.42 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" 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