🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #7647

Re: [PATCH net-next v6 0/9] net/tls: Receive-path fixes for zero-length data records

#7647
From: Jakub Kicinski
Date: Mon, 26 Oct 2026 22:37
17 lines
8837 bytes
On Mon, 19 Oct 2026 12:55:16 -0400 Chuck Lever wrote:
> Commit 3be28e2c9cd0 ("net/tls: Consume empty data records in
> tls_sw_read_sock()") fixed one reader. TLS 1.2 and TLS 1.3 both
> permit a zero-length application_data record as a traffic-analysis
> countermeasure (RFC 5246, Section 6.2.1; RFC 8446, Section 5.1), so
> a peer that pads its stream emits them by design. The other two
> software readers still mishandle them. splice(2) reports an empty
> record as EOF, and the caller tears down a connection that is still
> live. recvmsg(2) makes no progress on one, so a peer that streams
> them holds the caller in the kernel past SIGKILL. With MSG_PEEK or
> async decryption, each record is also queued on rx_list, which
> grows without bound.

The shape of this series is still quite confusing to me.
Let me take over a little bit so that we make some progress
(while retaining your authorship where possible).
Technical Details
Message-ID: <20261026153748.29911bae@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352096-linux-kernel-netdev=dewy.ru
References: <20261019-tls-follow-on-v6-0-ab01c4ecca0c@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-352096-linux-kernel-netdev=dewy.ru
From: kuba@kernel.org (Jakub Kicinski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v6 0/9] net/tls: Receive-path fixes for
 zero-length data records
Date: Mon, 26 Oct 2026 15:37:48 -0700
Organization: Usenet Network
Message-ID: <20261026153748.29911bae@kernel.org>
References: <20261019-tls-follow-on-v6-0-ab01c4ecca0c@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1413581"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:llPydPmZ6ODYSacTSVok5mgiMvU= sha256:xrf+yTruBdwBfSylh2cC2Qte6d4ilkAvX0CcgV0yxHk=
	sha1:7x9SxICr/JPzYobEKDxyYIc+oa4= sha256:LZQEQjaMPPAwwZof/3sM/NKmsDALI4NhcVBacrfu+QI=
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 5E8FD125BC4; Tue, 27 Oct 2026 01:38:08 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.839
X-Spam-Status: No, score=-3.839 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.339, 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 MSHAvLHVdelc;
	Tue, 27 Oct 2026 01:38:05 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-352096-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 A3A57125BD4; Tue, 27 Oct 2026 01:37:57 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 1CA13601F16; Mon, 26 Oct 2026 22:37:57 +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=1793054276;
	b=QJ6JUwMux54JjeRgygwG+AJ5w+IaS26V/FHe32Xl01+2ds8Es5uK5TOtE+J9Gk9AGKR4
	 YIbxvcVfltikoBBk3OivZZ5STzz/Jbp2UxX+e3reW8eTAYBIzp7RWvVDCmmG1Vkue2fMR
	 fAqGolipGYWypB1WkWCHUz1scGQ0CD/+VJYEEO38gULDrKLPVu3J+LO4hG+S+nqhY8keX
	 VeA3048ESypjb2snZWJOfB8qEtDf14q8pA3volKzYtDsao9NETWKT/Ab7fIDx/2e763NI
	 pun5D1BhtCuuqlO0zCWAfZ0OPBG3USlxKNNqxOgcAaxIOWfXNy3uhizxG1rn2xptSMg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793054276;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=q6n1jS09El/KtRNUVXo3j4tGJkMn0htA1/n19nhnyLM=;
	b=lzgOvq4qrugfze4gaNYXbCCfYxm3q875WMxUk4uymhPChF5MlM/NcFjqR4aEeYf5l3sC
	 ECUJi4rdvDVsOnnCsoyYxRANV7ZuMmKpOePCDjII4b4OOO5B+oiM5tuphoBNhYihPmxYM
	 Vg/r9mBfXMZaVbggtdnIhqwBIqdXmdq6zQrTYfXyEBBuyaP4XLZXLq9Z9hlD6EKYVoNMw
	 GnrU8rcgza/tN7AYos6EnWamC0hTdgAYdzr2PlnRfoHSgtzUkWX/IH3L+ys6Qt4iqaZAP
	 //btyWqJQ15ALWz3a3U9kD0lsuYeL3kUPMjpqU1Timo0E/QbmjpKsrtoTwr/RGZjr/w==
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=FurgXxVX;
	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 4C946606A322;
	Mon, 26 Oct 2026 22:37:56 +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=FurgXxVX
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=1793054270;
	b=CXalmrtnkPw0RPv0Pu8/uehUSAF0WVJ5xWdPl8MwxHXMjYcSd9W6exjfI/JKESA2dPq8
	 YGSgp+1csVlvzFf4Prby84FJne34pZm2MkLi7fHbKjgQQhBA7X0Tl6laVZQJquL5Z1VdC
	 c767tpToRjVbzb4pf9BMWrsG3hc7AabWmekncZQmcZEaa3qlxx73xllefhvxVoDcq8iI8
	 5mWSMTY4u2u9rnh3QScMepZgRXDejo4iQqpWyeZ0WI6ChXcOmpwjH2Zgv1TvjDlJOhVMt
	 NNAU95SKFjAhsVLjGWwbFPwpjEVK1qDCvd+XYjyPHTBTiNRWMiXtdH4eavKeBzNTgWA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793054270;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=q6n1jS09El/KtRNUVXo3j4tGJkMn0htA1/n19nhnyLM=;
	b=LO4vFkvXQbKHE+FwkRFuZp5SunIeEsjFDeWxCa3XsbGQM6J0LA+GdLdqp4GZotYqAl0F
	 UGBbtqv5m++GOsSnOjlwf8xl+CPet19U54gxnIaBvVZ93Q+peJY0mjHSWxCYXEwtgu8vX
	 KN4CSs9/5eCmwcksSlNBHUtYf5buiKL8Xsg0Ad0AP1ZmFQno33XLZGtVo72hQfL0Ghh7x
	 RwU89IkIhrYlOEUodTFa4QQXq5+12sKL6X5NHlw26JnaBo+6fJyLY5JkQ9EGKeh2dj2Hi
	 E8DyrA7f6z6EuYkTL/eRfNSB3+mZ8SLlOyYXKYzZZmqf5Vp+mxUAKSgG6kGjwz42P5Q==
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=FurgXxVX;
	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 32F22606A31A;
	Mon, 26 Oct 2026 22:37:49 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 406971F01825;
	Mon, 26 Oct 2026 22:37:49 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793054269;
	bh=q6n1jS09El/KtRNUVXo3j4tGJkMn0htA1/n19nhnyLM=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=FurgXxVXw7p39PHKqZ+GmdwKKm+/8/psY9+4S/SVIu23za8pQFsmtlN6XhSCQ6wl1
	 OToZvgKxiVkM0kKvMPU5bLlYT18UrKAG4fBpd+cJFqDhLgDAD27IiKTzEa9E/xXFc0
	 6slRe0bS2qihAJePpPgwOG/VDZWkDnBcu7+XrabtxejxwlsztbKqQLJPvQ2OaVz1Rz
	 UX7Rm/njVsdqq6j/po+lIc6wTPk+eZKiGZAZGQaEV2hsXollncl4seEibBnD7RzkaZ
	 l9D8ijwUju0AqSeSnkTJnqZb2tCNTasmcePDihDUDC1FO2u9/qwKMGvwW4SZ3sAfzA
	 hedjGW389ehnQ==
X-Cc: John Fastabend <john.fastabend@gmail.com>, Sabrina Dubroca
 <sd@queasysnail.net>, "David S. Miller" <davem@davemloft.net>, Paolo Abeni
 <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Dave Watson
 <davejwatson@fb.com>, Shuah Khan <shuah@kernel.org>, Qingfang Deng
 <qingfang.deng@linux.dev>, Eric Dumazet <edumazet@kernel.org>,
 netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, sashiko-bot
 <sashiko-bot@kernel.org>, sashiko-bot <netdev-bot+sashiko@kernel.org>
X-In-Reply-To: <20261019-tls-follow-on-v6-0-ab01c4ecca0c@kernel.org>
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