Re: [PATCH] PCI: rockchip-ep: disable link training work on remove

Manivannan Sadhasivam <[email protected]>
Newsgroups org.infradead.lists.linux-rockchip,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pci,org.kernel.vger.stable
Message-ID <of32vj6w52rwcop7wn7vi3rh6o7im2wkbds6icp3mapxf5nzrt@efoivwhiltvd>
On Tue, Aug 11, 2026 at 02:53:15AM +0000, Fan Wu wrote:
> The endpoint driver has no .remove callback, so on unbind the
> link_training work can keep running after the devm-allocated ep is freed,
> causing a use-after-free.  Add a .remove() callback that disables the
> worker.
> 
> This issue was found by an in-house static analysis tool.
> 
> Fixes: bd6e61df4b2e ("PCI: rockchip-ep: Improve link training")
> Cc: [email protected]
> Assisted-by: Codex:gpt-5.6

This LLM tool should've told you that you cannot remove a
builtin_platform_driver(). So this patch is essentially adding dead code. So
NACK.

- Mani

-- 
மணிவண்ணன் சதாசிவம்

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.