Re: [PATCH net] ptp: ocp: fix use-after-free bugs causing by ptp_ocp_watchdog
From: patchwork-bot+netdevbpf
Date: Fri Aug 29 2025 - 22:20:21 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Thu, 28 Aug 2025 16:29:49 +0800 you wrote:
> The ptp_ocp_detach() only shuts down the watchdog timer if it is
> pending. However, if the timer handler is already running, the
> timer_delete_sync() is not called. This leads to race conditions
> where the devlink that contains the ptp_ocp is deallocated while
> the timer handler is still accessing it, resulting in use-after-free
> bugs. The following details one of the race scenarios.
>
> [...]
Here is the summary with links:
- [net] ptp: ocp: fix use-after-free bugs causing by ptp_ocp_watchdog
https://git.kernel.org/netdev/net/c/8bf935cf7898
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html