Re: [PATCH v1] ptp: idt82p33: Stop PTP work producers before teardown
From: patchwork-bot+netdevbpf
Date: Fri Sep 25 2026 - 20:03:02 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Tue, 22 Sep 2026 19:36:01 +0800 you wrote:
> idt82p33_ptp_clock_unregister_all() cancels each channel's adjtime work
> before unregistering its PTP clock. An adjustment callback already in
> progress can schedule that work after cancellation returns. Device
> removal then frees the channel while its delayed work remains queued,
> causing a use-after-free.
>
> Mark the device as stopping under its lock before draining work. Reject
> new adjustment and EXTS requests, clear the EXTS polling mask, and
> synchronously drain the EXTS and channel adjustment work before the
> device storage is released.
>
> [...]
Here is the summary with links:
- [v1] ptp: idt82p33: Stop PTP work producers before teardown
https://git.kernel.org/netdev/net-next/c/a529f9258da5
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html