Re: [PATCH net] net/tls: serialize context removal in tls_device_down()
From: patchwork-bot+netdevbpf
Date: Tue Nov 17 2026 - 09:50:17 EST
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Thu, 12 Nov 2026 04:32:17 +0000 you wrote:
> tls_device_down() moves each context to tls_device_down_list while
> holding tls_device_lock. It then drops its reference and removes the
> context after releasing the lock.
>
> tls_device_queue_ctx_destruction() removes contexts from the same list
> under tls_device_lock. If it removes an adjacent context while
> tls_device_down() is deleting its node, the two list updates can
> interleave. One update can then target a context freed by the other path,
> causing a use-after-free write.
>
> [...]
Here is the summary with links:
- [net] net/tls: serialize context removal in tls_device_down()
https://git.kernel.org/netdev/net/c/81c8333141b9
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html