Re: [PATCHv2 wireless] mac80211: stop tpt LED trigger timer before freeing trigger
From: Rosen Penev
Date: Fri Sep 04 2026 - 15:16:42 EST
On Fri, Sep 4, 2026 at 12:41 AM Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote:
>
> On Sat, 2026-08-15 at 12:07 -0700, Rosen Penev wrote:
> > On a hot unplug, the device is torn down
> > through ieee80211_unregister_hw() without ever going through
> > ieee80211_do_stop(), so the timer is never stopped.
>
> I don't buy this.
>
> Also, missed wifi: prefix.
>
> Please don't just feed me LLM garbage. Do you have a crash reported on
> this?
Not formally no. However I am able to reliably panic the kernel. After
this patch I can't.
Some output:
[20004.982362] Call Trace:
[20004.982365] <IRQ>
[20004.982369] led_trigger_blink+0x55/0x90
[20004.982375] ? __pfx_tpt_trig_timer+0x10/0x10 [mac80211
9e1764ff5588e2fa1476cc1f40fb40aa15fcf740]
[20004.982444] ? __pfx_tpt_trig_timer+0x10/0x10 [mac80211
9e1764ff5588e2fa1476cc1f40fb40aa15fcf740]
[20004.982500] call_timer_fn+0x2a/0x130
[20004.982505] __run_timers+0x27c/0x340
[20004.982511] run_timer_softirq+0x86/0xf0
[20004.982513] ? irqtime_account_irq+0x30/0xc0
[20004.982519] handle_softirqs+0xe3/0x2b0
[20004.982523] ? srso_alias_return_thunk+0x5/0xfbef5
[20004.982528] __irq_exit_rcu+0xb0/0x100
[20004.982530] sysvec_apic_timer_interrupt+0x71/0x90
[20004.982535] </IRQ>
[20004.982536] <TASK>
I can do so with a USB wifi adapter using the rt2x00 driver but not
the mt76 driver. I kept pointing the LLM at rt2x00 but it always
determined rt2x00 to be fine and the issue being here.
>
> johannes