Re: [PATCH net v8] kcm: reject TLS on attached TCP sockets
From: patchwork-bot+netdevbpf
Date: Sat Nov 21 2026 - 18:44:37 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Mon, 16 Nov 2026 12:01:08 -0700 you wrote:
> Neither kcm_attach() nor tls_init() rejects the other, so KCM and kTLS RX
> can be stacked on the same TCP socket in either order. This breaks in
> several ways:
>
> - KCM calls read_sock() from its receive callback in atomic context.
> With kTLS RX this reaches tls_sw_read_sock(), which can sleep.
> - Before tls_sw_read_sock() existed, read_sock was tcp_read_sock(), so
> KCM consumed raw ciphertext from the receive queue that TLS parses.
> - Both install socket callbacks. kcm_unattach() restores the pre-KCM
> sk_data_ready over tls_data_ready, so TLS RX stops getting notified.
>
> [...]
Here is the summary with links:
- [net,v8] kcm: reject TLS on attached TCP sockets
https://git.kernel.org/netdev/net/c/746dbdc5fa60
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html