Article View: linux.kernel.netdev
Article #13410Re: [PATCH net 0/5] net: tls: break the connection after a burst of empty data records
From: "Chuck Lever"
Date: Mon, 09 Nov 2026 20:16
Date: Mon, 09 Nov 2026 20:16
25 lines
10572 bytes
10572 bytes
In patch 4/5, zero_len_peek lost the poll() check that v6 had after the EAGAIN case. Without the poll() check, the 0data_0data_0data variant passes on a kernel that lacks 1/5 when decryption is synchronous. The peek queues all three empty records on rx_list and recv() still returns EAGAIN. With patch 1/5 applied, the peek consumes the empty records, so poll() reports the socket as not readable. Restoring /* A record left on rx_list keeps the socket readable */ EXPECT_EQ(poll(&pfd, 1, 0), 0); after the errno check, along with the pfd declaration, would cover the MSG_PEEK change in patch 1/5. But I have not run this series. If the check fails with patch 1/5 applied, I'd like to understand why. The loop rewrite in patch 2/5 looks fine to me. For patches 1/5 and 5/5: Reviewed-by: Chuck Lever <cel@kernel.org> -- Chuck Lever (Come to NFS bake-a-thon! https://nfsv4bat.org)
Technical Details
Message-ID:
<539d42b2-e786-4924-be7f-32029c80cd05@slotpi15m67>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359592-linux-kernel-netdev=dewy.ruReferences:
<20261109175836.1246840-1-kuba@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359592-linux-kernel-netdev=dewy.ru
From: cel@kernel.org ("Chuck Lever")
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 0/5] net: tls: break the connection after a burst of empty data
records
Date: Mon, 09 Nov 2026 15:16:01 -0500
Organization: Usenet Network
Message-ID: <539d42b2-e786-4924-be7f-32029c80cd05@slotpi15m67>
References: <20261109175836.1246840-1-kuba@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="442031"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:N0aqRueBjMewIt0DSTBAJhAglqE= sha256:oirtEackQIRg333KURbkmTl4yN3fyEsfyit3QdmFCv0=
sha1:feFj+A3TcfuVwCHigyAeaPZzE4E= sha256:91Mf/OtkWqngdFOjXLNaIeONi1R1UT1m4AdZY5+7Chg=
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 554B711390F; Mon, 9 Nov 2026 23:19:48 +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 ib0RtReJo94z;
Mon, 9 Nov 2026 23:19:43 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-359592-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
by mail.dewy.ru (Postfix) with ESMTPS id 4C03C113904; Mon, 9 Nov 2026 23:19:34 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sin.lore.kernel.org (Postfix) with ESMTP id 5EDF528E0E; Mon, 9 Nov 2026 20:16:31 +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=1794255383;
b=urfKLEHV9mIf7R3zUGL7+I1eWeQ325y0nPTrpYRrV1J67tBh8BJVx3WrvmbHDKPjjufi
I+HG0GllZwDKhdf+B2EzB9HBWyJCP8AdVqCoYdu9RDDQw5uo/Hm9Oj9YKf7/HBtcGqopS
uRVJ53xDt0LhQ2NCI91Z8a7ls5y68sf+MRN4o1TSvfitzTFms7SHt+AmHNFp7aF3opUkl
wjH0UMkEsLvuJ5/s6u93JWSJ6n0J6ZT0u0k5BfHt7aoLVCAyYcWmxBDHrVPhl0pTuVsU4
dx6vHAUdyfi6sVgoNDr0nsW1E5jlJj7AemISyAaiNTyeY8Ea8hz7KDHYBvfNo8FTifQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794255383;
h=X-Original-To:Received:Received:DKIM-Signature:Received:Received:
X-ME-Sender:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:Received:X-Mailer:
X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:X-ThreadId:Date:
From:To:Cc:Message-Id:In-Reply-To:References:Subject:Content-Type:
Content-Transfer-Encoding;
bh=rNpqqUKyZIk9hFE2nU6+0ja1VPu3/8roBqqGxvmYkhU=;
b=zabCtNSTxYN1V1Co1j5DhzUM3SsdDsAg/Tm/CpYCck1vhbSiScmW0cpJyAWY1FRCtOOQ
kU6vPioUTEEa8muLZTCmdRQuUU92zUU3kXTJ9mc8Q4103E6ddOZ2N2/j+vg+NejNLavQe
IZhjyaF8meUFnJyeNWVIfBLRQK5UpmmNvwTrQT31VLCoTh+56H4C9lTdR396hrPr3Kvo6
LGGQWq7IL30TVvCVgj6SNggHun2zZm5iyziqnxRT3F5u15v2EzIg/vVktd/i4eyycWGDS
z6SZGs85kgSZq9/Mrod94gmsWql2KwfRYwxuMa/2it1a4SHjFiwsXeRwBT5+lyEwF3g==
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="I/0EpYBM";
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 CAF5660A2610;
Mon, 9 Nov 2026 20:16:23 +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=I/0EpYBM
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=1794255383;
b=a7Z9L2lShQu1niMkzaqamQQr807qnUv41U/TFcxljTaHDaax3oHxp/r4H4zCuUyV0o9f
0ep+qKzDmbXP9Nc8SLl8ajePALVk4odJgrfpFomyB3a4MJ7gl6Eu78ictj4FkNrcc3acn
JG/cJhp8tqxPRTJqPWiNqpvfe3P+7CNsYY465L56Qi/kHZqsM55Ry4Kn5h17XwB6w0Se/
du9ZHKZkNcI8afInVcihcTSZDB45td+qyF69PimJNeWg9BEUd6yynWLcQHYQyWLGfEAC/
AD2rwEHpq+9Hdo0N6Zwsml9zHTq/l9s1YDeHPtGb+5ZQvRu79MqZ0oxekLRCbblt79w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794255383;
h=Received:DKIM-Signature:Received:Received:X-ME-Sender:
X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:Received:X-Mailer:
MIME-Version:X-ThreadId:Date:From:To:Cc:Message-Id:In-Reply-To:
References:Subject:Content-Type:Content-Transfer-Encoding;
bh=rNpqqUKyZIk9hFE2nU6+0ja1VPu3/8roBqqGxvmYkhU=;
b=oK3oLIcdN7Wg5D5AukISevBPNN50szlqkgbyOIbl5MlgS7Dq6t8Ky4poFt2igE21E377
aAkdP2OiOJXZJdFibRL8/upNzZWxzsmfsU2zM05zKxvWiav8ctJhpfvfQQtlrUFm1rj9Y
aV8rahRwK9eEaEWoIAlykhKWPOIjbB/1pt6b0OtOoJdySsOjdA0Wpr4fkCThOa4TPbQsc
o5K1JzvPXfhmBoW8ccPGxb5FffJ40uEXY/PMlfaCu9TgBgJaxSD/PgTENqI0KwDp8tTav
ArBHkJaM3wQEqwwBpaBmTnHeaPWibAb/iyiF5DuY/2ZHiypg0x6d2p1S1s8FDHrp8aQ==
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="I/0EpYBM";
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 A8E0F606A332;
Mon, 9 Nov 2026 20:16:22 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 124E41F0089F;
Mon, 9 Nov 2026 20:16:21 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
s=k20260515; t=1794255382;
bh=rNpqqUKyZIk9hFE2nU6+0ja1VPu3/8roBqqGxvmYkhU=;
h=Date:From:To:Cc:In-Reply-To:References:Subject;
b=I/0EpYBMlf3I72fROSKr90zZKxtd1GorGCytYnDNq5lDERVmu/Ukmk/+HJDttMyWb
acR6aU02DpPD/I6ShN6OGXbE+hZBhUbDQzMV0TyrqOoNVDmzqc63V7jSpXAcQ2EIy8
Zqit+6bxTvgOzClCwmTkbLkdw6ohpcB78IcD/8ZEOSbC1plY93IraUuzhH0NlLMtn9
T6hm0uGylUC+WGlrmLbjTxSjDVueTMdqEspIUlujWrhk6AfnFbRcvmT+KwzZZx6vC8
eIq7C4iifohM/QCJEPfUHWzj5qLtzrIpUjbQAkA1YrWt1RVSda4z46rYYKoF3D6akG
15SBPBCmVzfqw==
X-Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50])
by mailfauth.phl.internal (Postfix) with ESMTP id 6346FF40066;
Mon, 9 Nov 2026 15:16:21 -0500 (EST)
X-Received: from phl-imap-15 ([10.202.2.104])
by phl-compute-10.internal (MEProxy); Mon, 09 Nov 2026 15:16:21 -0500
X-ME-Sender: <xms:FSryamggSwyhEMH-1I2uz9U3a6U5KWX0T88wLfA_xZrHhO4abOncWg>
<xme:FSryah0QiaaFtrH_7rcg14Q8NYcKjX_iAL9jlgcKN_CnHd1-YTK0Nur7WN9jU20mR
1-seVtcSzmfEn4qTvMRmwxNnKjentQHollQ-gFC8RHTNkySB0jmJQOwvQ>
X-ME-Proxy-Cause: dmFkZTG34HtRlLNWvelVjT7bDBbAOAlPccCpaWxZs7rDSEQHji2oSwTfHcsmij/8ifVGTH
I2j/KRmLNSuYxY4AkZ4qyeXzjZGdhGAA2WAb67tuiEIJHQt5rRuKIuVqTPAfWxa52YljuR
a8SE6gZN3sCJZxfCKqjZRrqqQQ6pSlENVE4viSYCE857wZa8Q2gzduG9o6k8hYaSpDAJlt
EJZy4BCcL2N5+qUAXUkV9mhF3z9M0UOxdF8M6AxFzFkIkiZp4IsxA+iXFo5MA0BUCXauCF
n4m/vQPaIRuK2t0sY+ac3Qu6G3PaIt/9xWHbma4e5BrfwV6uBIW0LBG+h7e7Pn3nI7TwKT
rJcPHV2MeVWRCeemIyOIhcU7bdSO21fZd9YYvDyO8I2tABiJXc1VmEfRHRviwMc1SRCmMI
OZEG/R/T9Rz0UdwQB3ngL2uRJyWEjjqK2eteY5v353i+SEzGx5Ad2//TENnLir9IL3SD6f
4vxASei/7bFZYedcN3Lae1bj9rqDlJOw0/fNcdCtNOvMnAwlxlb2CAYLfrc74vgkyGbWIp
8gVlBy6ND5ABa9qJa9vlT1UFPFzCv7Nbd1RTcrtdgyMiOJsRLpWQBHwgAdS7gjRHupW8GH
/IYyUFRN147LULf0PB74WWIlpo+GoYQbFYLKARlSSzZt9X/KEJHCqaZ0y9Kw
X-ME-Proxy: <xmx:FSryagN6brtXunjvvf-HSa4jJJjTRe11SKPben2hpWxEPaJmg6npiA>
<xmx:FSryas8cb_2fFnIlK6M5Hyu2l0Uxb-DOY5J1zfJsRvGB76T98Yd5Fg>
<xmx:FSryaiGnxWA_-F_rawJjI_jDxAi4rSmTCO3QBZqEeUMH87d-dKwj6w>
<xmx:FSryarjfLTvAjAq9Cy_kzxyEyyM5tjcEN7_JONXnQBORFMeTPhtQTw>
<xmx:FSryantTosBsOufpLgNE7vRbkDSu7ig4KuzjgNP41s8kTc2d98MDt_SA>
X-Feedback-ID: ifa6e4810:Fastmail
X-Received: by mailuser.phl.internal (Postfix, from userid 501)
id 3F56A782738; Mon, 9 Nov 2026 15:16:21 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
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-ThreadId: AIsCzDX_oYso
X-Cc: davem@davemloft.net, netdev@vger.kernel.org, edumazet@google.com,
pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org,
sd@queasysnail.net, shuah@kernel.org, linux-kselftest@vger.kernel.org
X-In-Reply-To: <20261109175836.1246840-1-kuba@kernel.org>