Re: [PATCH] wifi: mt76: mt7925: fix NULL dereference in CSA worker
From: Mattia Rombi
Date: Wed Dec 02 2026 - 05:35:46 EST
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