Re: [PATCH net 0/2] tls: don't hide a queued KeyUpdate from poll()
From: patchwork-bot+netdevbpf
Date: Thu Nov 26 2026 - 05:30:17 EST
Hello:
This series was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Wed, 18 Nov 2026 17:35:47 -0300 you wrote:
> A kTLS reader that waits for a read event before each recv() can stall
> after the peer sends a TLS 1.3 KeyUpdate. I ran into this while testing
> a kTLS patch for Erlang/OTP.
>
> Erlang does one recv() per read event, with level-triggered epoll.
> When application data is followed by a KeyUpdate, one recv() can
> decrypt both records, return the data without an error, and leave the
> KeyUpdate queued. Because a rekey is now pending, poll() no longer
> reports the socket as readable. Without another read event, the reader
> never calls recv() again, never sees the -EIO for the KeyUpdate, and
> never provides the new key.
>
> [...]
Here is the summary with links:
- [net,1/2] tls: don't hide a queued KeyUpdate from poll()
https://git.kernel.org/netdev/net/c/285ca329ad4b
- [net,2/2] selftests: tls: add a poll test for a queued KeyUpdate
https://git.kernel.org/netdev/net/c/d26b244cdec3
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html