🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #23019

Re: [PATCH net 0/2] tls: don't hide a queued KeyUpdate from poll()

#23019
From: patchwork-bot+netdevbpf
Date: Thu, 26 Nov 2026 10:30
31 lines
9218 bytes
Hello:

This series was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:

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
Technical Details
Message-ID: <179568900552.1733695.4963034201090560383.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372036-linux-kernel-netdev=dewy.ru
References: <20261118-v0idpwn-tls-poll-parked-keyupdate-v1-0-8e25101e7be6@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372036-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 0/2] tls: don't hide a queued KeyUpdate from poll()
Date: Thu, 26 Nov 2026 10:30:05 +0000
Organization: Usenet Network
Message-ID: <179568900552.1733695.4963034201090560383.git-patchwork-notify@kernel.org>
References: <20261118-v0idpwn-tls-poll-parked-keyupdate-v1-0-8e25101e7be6@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="439470"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:IMLr0no+/OG5SIlMNh2G9qCqGeI= sha256:aGz1KuYiOz9XJm5xnjEYeiiAyh281xkWXbCBHQYT5ag=
	sha1:9ZIYazA/eeCjOKr2gAla/lk/Eo0= sha256:8xUdgAO7myFWs4A3PHLvamGuvziJPfvZIj+rMqpe5mg=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id E17F8125ECC; Thu, 26 Nov 2026 13:30:23 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id d1_IhECRZmd4;
	Thu, 26 Nov 2026 13:30:19 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-372036-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 51664125ECA; Thu, 26 Nov 2026 13:30:10 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 8A7A634335; Thu, 26 Nov 2026 10:30:08 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795689008;
	b=lA/k2q++w0apvRgnLdmpUZWg7cQaRBuPftokIbxUetBwOT1Ra7dazApC0lrJN6CYQC8z
	 W3QjB2rxE1JJver56L+aF9x60LY+Mzr3lNlMagiR7pTiAlwTGLk/k/qoQU52ReTUzz2ak
	 cYBxMUczW0/p4EmQtOO05pFPEmNQToHPuKEICRZTClLEqEJTPVJ+hD5GZrVhhZqQf3Gyn
	 iGOWO8YOiYJ8TU1i1DNXtrZcaYGKRVMOCugA7UIh5GE8PTI7rwG1b62Io2FFuMMgOmClt
	 Zc+nDBnpzK1QvG3+lpOcM34gCahLs0N7JqDVEUuEyHi+IQwQCJ5tp6ekOECp10NABpg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795689008;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=tG1hE/HyfOB8WQTQbRwY2igncordZtbN4VvNsNNGklE=;
	b=a8OzqRyfg/hyCeH+4u4syR17mYs8SL45p3OGVGIq4awn8csBFiN2YTZMyMnaF+HzDNsf
	 XMsWJd4xj8H93TFZn6EF7gGTOzpdJN6jJRnzesxIPmoTunw32h6aFUy1gLwcxJgusu8Z+
	 TIwgp+ZF3chK81IJt9g1+r3JvD9VlBYOpx+9vzgZBXDMRyd17AvPbzfvZ1P+VP6Qy2Q5T
	 yleSUrkWEtXuDI5dhsZd2MNpVyhMDeEVcTWM8pHOKeEEQtr/npn2jJrsitPdHvUs8A7VF
	 diyV3STN6FNGGII3vUI/HPhgPCsWs0G5Lirha5NxiK7wruVz57GQU6aDisK73LthFGQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bKF0RUc+;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 6266E606A33F;
	Thu, 26 Nov 2026 10:30:08 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bKF0RUc+
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795689007;
	b=tVPSv1tRhvZVLSqU3GlsOk94A6sDF7L8AGosH5SAxW17bFYiNV0dGKPM7zXv3iwU6M1J
	 VNZiL9+tAaTSGovZS2yOj07AzbyxNjhEgq2dIdm5InK3kGpwYA59FNsI5w4Nd1d5jfvC1
	 Orcj0Hv7HldP58IBLKCqso3w2g03lPyf9qbagT8H1xbEHzDBS4NWGKEyja5Rr+GT9U8Tx
	 i9qDgMWIRaQQazZryvStAI5ByV1whkascKrXFktQb5KT+ysPrutOBeoL8ky9u8hYp9+Fl
	 sk0QYo34PdwhalAiDxiD6l246dwIC92fXuc+WrK8pmrzu62MH/gZlSp/sGW+pnWzhSQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795689007;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=tG1hE/HyfOB8WQTQbRwY2igncordZtbN4VvNsNNGklE=;
	b=JjZbb6lMSgqbvoJuwHCk66ockW1ErGPLc9Gqdtj8KGKtxFzJuz7vX1xUHJcJoxDovuAF
	 DLpu4sM0SE8QgBjLOZgVn1NB5Xxu3Z1d7g+KGEsYaQBmyXRsXb4cXs0POzXbTfMxlTy7f
	 sz0/dkzSMbfnUOkDywMFDmPimwGtIh9JY87Z4ChvmaEt2fyR1HVcbJje7ZCUeKvRsGoPa
	 /dOnemvgMOc8NbpXDjKoGBQnXLKl1rB+GbRplPhjeJ9HSyQsnas4aODTcWxXg9bWcR3T4
	 9l3fzXHFFa1QTcxBYt0lUl4bjmnE2luRV1Yi0h725yOw65zC6sTCiXAhbeFiZcO55YQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bKF0RUc+;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78AE0606A326;
	Thu, 26 Nov 2026 10:30:07 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFD401F000C4;
	Thu, 26 Nov 2026 10:30:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795689006;
	bh=tG1hE/HyfOB8WQTQbRwY2igncordZtbN4VvNsNNGklE=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=bKF0RUc+Q1o1FVoAUC0mKFJqzQZPLgfpF8ex9wjN19LAf+Wwx5PJNPJArzDixpbxY
	 vifSzDeu35QiWpWYbxK0lxX4vPI3++j+iPIgwMq0tqqpIDg9PTwAiBo5dhUFR7fldR
	 SnZ6T/EXGLgBZFWA2a43rQf5NJflFyeddotcLEUz98TN0+o7mQJpF6NpUPniR5z3Gc
	 /xc6hvnC2qy73zhZk3W95sQ69yda5kjGNAnGBQwOv+FGfcw6dKgnbTr1bWdjHqcvqU
	 p7XQDkLYjnN2E2MCCBvCarwFxQBu/tRK9IC9339yU11kktCTTXA2N70/+TPWWaIZ5e
	 Tujy15Tnf5PpA==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id B44A6380A95C;
	Thu, 26 Nov 2026 10:30:06 +0000 (UTC)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To:  <20261118-v0idpwn-tls-poll-parked-keyupdate-v1-0-8e25101e7be6@gmail.com>
X-Cc: john.fastabend@gmail.com, kuba@kernel.org, sd@queasysnail.net,
 davem@davemloft.net, edumazet@kernel.org, pabeni@redhat.com,
 horms@kernel.org, corbet@lwn.net, skhan@linuxfoundation.org,
 rdunlap@infradead.org, shuah@kernel.org, netdev@vger.kernel.org,
 linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
 linux-kselftest@vger.kernel.org