Re: [PATCH net v3] tls: fix the open record check in the max payload size setsockopt
From: patchwork-bot+netdevbpf
Date: Fri Oct 23 2026 - 17:20:26 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Tue, 20 Oct 2026 20:12:39 +0800 you wrote:
> do_tls_setsockopt_tx_payload_len() refuses to resize records while one is
> open, but the check is broken in two ways.
>
> It reaches for the open record through tls_sw_ctx_tx(), an unchecked cast
> of ctx->priv_ctx_tx. Under device offload that pointer is a
> tls_offload_context_tx, so the check reads a field of the wrong struct: it
> returns EBUSY on whatever happens to be there, and never sees the record
> that really is open. Dispatch on tx_conf.
>
> [...]
Here is the summary with links:
- [net,v3] tls: fix the open record check in the max payload size setsockopt
https://git.kernel.org/netdev/net/c/ed642349d87d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html