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

From: Krzysztof Kozlowski

Date: Fri Oct 30 2026 - 10:20:48 EST


On 15/10/2026 02:28, 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 identified during our ongoing research while reviewing
> kernel code.

Really? Or you just took Sashiko's report?
https://sashiko.dev/#/bug/linux-47538f77-fb50-4a06-b49b-92dbee8b538b

Running LLM is not an ongoing research.

Applied.

Best regards,
Krzysztof