🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #4996

Re: [PATCH net-next v5 05/10] tls: Consume empty data records in tls_sw_recvmsg()

#4996
From: "Chuck Lever"
Date: Mon, 19 Oct 2026 15:11
30 lines
10879 bytes
On Sun, Oct 18, 2026, at 3:23 PM, netdev-bot+sashiko@kernel.org wrote:
> - [Low] The commit message gives a reason for the new MSG_EOR: "The new
>   branch sets MSG_EOR itself, because the record no longer reaches the…

v6 will note that a MSG_PEEK receive now reports MSG_EOR at an
empty record where it did not before.


> - [High] This problem wasn't introduced by this patch, but
>   tls_sw_recvmsg() still has no limit on how many consecutive empty…

See my reply on patch 2. v6 keeps recvmsg() unbounded, and the
description says so.


> - [Medium] This problem wasn't introduced by this patch, but
>   tls_sw_recvmsg() still returns 0 (read as EOF) when empty data records…

AFAICT, pre-existing. tls_record_content_type() latches the record
type before the empty record is consumed, and the existing
0data_0data_ctrl variant encodes the zero return. Changing that is
out-of-scope for this series.


-- 
Chuck Lever (Come to NFS bake-a-thon! https://nfsv4bat.org)
Technical Details
Message-ID: <55df0a71-5ceb-49d8-9b7d-d9e584aec6a6@slotpi15m67>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348640-linux-kernel-netdev=dewy.ru
References: <20261014-tls-follow-on-v5-5-e76c301d4f05@kernel.org> <179235137916.3135.16553916944020990232@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348640-linux-kernel-netdev=dewy.ru
From: cel@kernel.org ("Chuck Lever")
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v5 05/10] tls: Consume empty data records in
 tls_sw_recvmsg()
Date: Mon, 19 Oct 2026 11:11:37 -0400
Organization: Usenet Network
Message-ID: <55df0a71-5ceb-49d8-9b7d-d9e584aec6a6@slotpi15m67>
References: <20261014-tls-follow-on-v5-5-e76c301d4f05@kernel.org>
 <179235137916.3135.16553916944020990232@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="3653494"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:onW9ECeZUOoLNEgwEHDGXXCKQIE= sha256:JMWBwI32sdHtd9cHOM4w1SyhhYCvjZS0r2DGUc5wmlY=
	sha1:30aO72FniFueqid7dx64lehyM8E= sha256:8Q2e1/Rp9VYwWi9z13psMtoVAYfVqc7lN9OTTuKS0BQ=
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 DFB6B110A58; Mon, 19 Oct 2026 19:26:34 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.829
X-Spam-Status: No, score=-3.829 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.329, 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 zv4c8VHOS2VS;
	Mon, 19 Oct 2026 19:26:31 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-348640-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id C58D6110A3D; Mon, 19 Oct 2026 19:26:23 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (aws-us-west-2-korg-listserv-alma10-1.taild15c8.ts.net [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 36E1B6152DA; Mon, 19 Oct 2026 15:33:45 +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=1792424024;
	b=4QepXpq6eLf8jpk9+Vo3CCK5bnnpKvFC4ZUJIZs4/HHlvHvNEScjMKoFC+t4zbBoum6/
	 r1Nj140KZrESzRMwVgSeUXUH6CsNbk6N55TEFJJf3QQKGFmOBstHlrQPo3PVxvCc8iPEf
	 wKWzHfUDcbpf6IynZU1Xq8jQ6EyjAvEpfpcZJV6J7cMdoEhdzTRHYYPK5nFuw2fP2hUpw
	 pm2wcaRgiF9uwsxPGh04z8FRNHynkEpwicpvzFLEFWXrYKwLdNSWPZJmfLdCzaK+iggAI
	 a1HDwU7+mk8pwjLwAiOAeMFpj8WM9PFDXDfwRJVyv2DBg7JEtG9fy1wbbziCoZSgQTg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792424024;
	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=IOr8tP9WaxFdfAOo39mHK4RggF7GLTDIwC8oUe4sANI=;
	b=VSbQbBr5jX1MoBShgRYok9/ffX6T4bPFEtG6tDRi2sV6ya1ni2qj8jiCs9Inb4wZUNJH
	 rEMgU0zi/3+AH9DAPLMg7jNIohEs8DsB0mi7lII3HSWwmvEbcmFtIBO4SCuOf8HB8EyVb
	 FHSA5G4/HImBY4PU/Td7NpuVk8Sea0HYOiy6qTlXo3fUP1ivAsGN0FpPx9y0XO3WYIN7V
	 4FZNAj6KLBW9TXZu1LBr4QzxAqbjWrxXqPAMlQzQEyko3MHqSM3VMLryVZlw/m65SuLpl
	 HkSKgMc/mWhPgsJST98Gh6kH/YyDWXcUA7dgl0l9dsILhNcZHr3G86YLCjWWWwri5FQ==
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=aBrdbamH;
	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 D28A860774F6; Mon, 19 Oct 2026 15:33:44 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aBrdbamH
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=1792422718;
	b=05ub5uRIuOOezla7U1aGCu7oT83sCK23V/fYMfB0yMH/iHAfUZjnWrDiWGmw4Gz3oY5J
	 lx5IbBnyUdxvKKa2RSy7SI0/d6wGl+1kgl8Ofm2eVESG2RHlvvYbt4W7ar3TyfcWY+02u
	 uoeGgPwt7nL8dbXzRUlVw2JUDITV8bFansKUkVGFNi6Q6QRRhyDYFi3ZlTDynm/DA5X/v
	 I8KrSi4aZEoK8hGa4Hrlrfy0KY+EgxH3YIhrYHcsRirR66MC0Mlue2T+85gnrpLjpSQqs
	 F05CG+kZ45BLLRSEqpyHyeGQ21jR61LqwqtsYDlVGlkU+TcGgfE1GQPjQjluZNqSFCg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792422718;
	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=IOr8tP9WaxFdfAOo39mHK4RggF7GLTDIwC8oUe4sANI=;
	b=3kLu227NagnSV+1lFMKatmqekx1outgB8aYEP6/0seHHuf/X7z1CK7UgZILN65yQ0Rut
	 ybQqCvGPMH6m4k22ihp9SQq6inRYUzu/lMdvMlQ3Wn2SVq55b33qj3njmZVGMnNO0pYMn
	 K88nspY7mW8M9LunzV/TK3NYlwTKxmo5b91f5wnjczS7PcuvrlJNP+0skqeGW42L+MZk4
	 4fNDTOP24hEPuOLbDD9pRq5qKotmiR6ofU4qyiMF4+Bb8TTIVTfMBKz0+HYWCgHjJrrro
	 WjzTcsEEPZC8ebtxE9cP14uPo7MIRv6uaOojTgtBtxSd/l3PTbBIDcBsrP8+ByyBc8Q==
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=aBrdbamH;
	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 9B3B0607D353;
	Mon, 19 Oct 2026 15:11:58 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D10F1F000C5;
	Mon, 19 Oct 2026 15:11:58 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792422718;
	bh=IOr8tP9WaxFdfAOo39mHK4RggF7GLTDIwC8oUe4sANI=;
	h=Date:From:To:Cc:In-Reply-To:References:Subject;
	b=aBrdbamHwaFtp/In5WXudMm4Vq5z8FHialV2pOinYC3AYuPTgDGJzKbzIFkt1UqPq
	 tF9bZxY6F7F9Onc+riLsDK2mHJWJ+nkqTCSJWXyzYOUImS4PBziAuBEqEeM8GpqZA2
	 GOHDzay0H1dn3qWAAQjmEmlak11sy930d65MoXEnmS3qucNmfwezrM+CY9T9GhcRnz
	 FcAueTLGw4RGHkoGMPgke1SdcPnMAxGsCOE83seRdtxzY8Mwx4B1lDXueHaafu30s8
	 azAq9XkFMg8E8XMeraZTUHP4P6NuD7Svj4slMHiIWdfCi3VZ33YZBHV58TtNsYMFzG
	 UOw1a6UD5gx4Q==
X-Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50])
	by mailfauth.phl.internal (Postfix) with ESMTP id 83CA7F40066;
	Mon, 19 Oct 2026 11:11:57 -0400 (EDT)
X-Received: from phl-imap-15 ([10.202.2.104])
  by phl-compute-10.internal (MEProxy); Mon, 19 Oct 2026 11:11:57 -0400
X-ME-Sender: <xms:PTPWapeOmsBnwwUL7qrLpFI7arNc1Cu1ST-sGo-e49qsi5jCmMB3CA>
    <xme:PTPWaiA0rR4vwhUaqsSV2ZIVzINIAygntESl9KCWa2uspnme5a26Hk8zFaN1vhiTu
    gPJmrxdUuUzBPMHqeNH3TQBEE5u_jNwHLPV95U8V_shv0w3aKCbETC5>
X-ME-Proxy-Cause: dmFkZTEiFjWiUgOfIOMQ4EUMDdZLzvVgNNGnEgNHif7VXc9gPvezXknPkPZlst3zI6EuIC
    hH61iiN8zp+X8xZLntXKBl5Ogl6RusltAHWU8VS4CbCGRthZP+zkKJCp8xynNLqCxDN+Qm
    Olwbz5OEsbkmEMCHf619qD7bCR+iXTbyErrvuh0x9j6RLNPZt1OZP3XTEGVP6OVuF3Z4z3
    5ciLOE8V3HgCwYvSXYUsYVWzl645p94HOqjV9xubvaK7NaLcBTcNSq9CokFuBjF4mIe8Ly
    wloCm8bCCtk7CSNQvC8frMSC9tigY8VJkF/90vWYzIHi5xcDKUu82zQQ3CseLVIcmqEjWi
    97gvaNg3IjnS+nbnAv4o4vCfRrX+LDa+C7xRGhp9RcHX8Zkgv4MP0AGQPREJJRSNW5vFj6
    UjcWBzu+3FkL9d61iWTIoaDg5qDzpBqkgz4iStQ5lYnZeaveN3qVZyDWyydxaBNREO8rDQ
    ZZhem6/95wwdNmsPv1mPXF/GhIzg7mCNzZXRSfErGMChor9pDxHs7IEDjHe0wfd1ihVVz/
    5/LyiZeehxIXmr9/p47opxSTMZ/5i5AY+5DYHPot7tKd/UNv1w3XabvLAtBBv/tkVbyn1z
    FojnVkwUn5ZbkionCj6JJV/Qp035oaOQP58CVFISXcPlrkhtZ/Ii4f59VDQg
X-ME-Proxy: <xmx:PTPWatRp8Kp7eR8_IX2J7Ir9hAbvk1l3fx6DHuUfFRxmvoj-Tl9uyQ>
    <xmx:PTPWajfTizz2ijEevews1SwqfS33IXbneEdQY8gEvwemJoDNBbjRnQ>
    <xmx:PTPWams77km-I79pqW3zVj_iN49hfb_zeod_se1AvYCZwbbfnh3w3w>
    <xmx:PTPWavJhO7JwRkR5S_KU-FXVkr1MQCW6Rt7Ezou1BcktDytPQfx7rg>
    <xmx:PTPWaqZt1ysR_yHElxkgrhyFLGhlBzyvJTLvRdnkEjgEQoFb_qS1h8TX>
X-Feedback-ID: ifa6e4810:Fastmail
X-Received: by mailuser.phl.internal (Postfix, from userid 501)
	id 638F5782738; Mon, 19 Oct 2026 11:11:57 -0400 (EDT)
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: AX_0bg9EglMV
X-Cc: john.fastabend@gmail.com, kuba@kernel.org, sd@queasysnail.net,
 davem@davemloft.net, pabeni@redhat.com, horms@kernel.org, davejwatson@fb.com,
 shuah@kernel.org, qingfang.deng@linux.dev, edumazet@kernel.org,
 netdev@vger.kernel.org, linux-kselftest@vger.kernel.org
X-In-Reply-To: <179235137916.3135.16553916944020990232@kernel.org>