Re: [PATCH] memory: tegra: Shut down Tegra210 EMC timers before teardown

From: Myeonghun Pak

Date: Wed Oct 14 2026 - 20:29:46 EST


The issue was found using a static analysis tool currently under
development, which we plan to release publicly in the future.

I will clarify the wording in the next revision.


Best regards,
Myeonghun Pak

2026년 10월 12일 (월) 오전 1:58, Krzysztof Kozlowski <krzk@xxxxxxxxxx>님이 작성:
>
> On 11/10/2026 22:00, Myeonghun Pak wrote:
> > The training and refresh timers can outlive the EMC state on removal
> > or probe failure after clock attachment, causing use-after-free.
> >
> > Shut down both timers before detaching the clock provider and releasing
> > the timing tables to wait for callbacks and prevent rearming. Initialize
> > them before clock attachment, since set_rate() can start training.
> >
> > This issue was found by static analysis.
>
> You are expected to name the tool or be silent. Reading code by LLM is
> not static analysis. It's statistical guessing, nothing to do with
> static analysis.
>
> Best regards,
> Krzysztof