🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #3310

Re: [PATCH net-next v4 2/9] tls: Check for a pending signal after an empty record

#3310
From: "Chuck Lever"
Date: Wed, 14 Oct 2026 18:10
17 lines
7975 bytes
On Tue, Oct 13, 2026, netdev-bot+sashiko@kernel.org wrote:
>
> [Severity: High]
> Can callers that never get a signal still be held in tls_sw_recvmsg()
> for as long as the peer keeps sending empty records?

Yes, and this series leaves that hold in place. The cover letter
covers this case, so agentic review might have missed it: an
in-kernel caller of sock_recvmsg() cannot take a signal, so a
flood holds that caller as it does today, and SO_RCVTIMEO does
not bound these calls. This patch ends the hang for a reader
that a signal can reach.


-- 
Chuck Lever (Come to NFS bake-a-thon! https://nfsv4bat.org)
Technical Details
Message-ID: <8f119949-4cf1-4f14-956f-e2a0df258065@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-346382-linux-kernel-netdev=dewy.ru
References: <20261012-tls-follow-on-v4-2-8cea429565da@kernel.org> <179190789812.434549.8665010768729351575@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-346382-linux-kernel-netdev=dewy.ru
From: cel@kernel.org ("Chuck Lever")
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v4 2/9] tls: Check for a pending signal after an empty
 record
Date: Wed, 14 Oct 2026 14:10:48 -0400
Organization: Usenet Network
Message-ID: <8f119949-4cf1-4f14-956f-e2a0df258065@slotpi15m67>
References: <20261012-tls-follow-on-v4-2-8cea429565da@kernel.org>
 <179190789812.434549.8665010768729351575@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="2356799"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:dLlPNa6Hu7uZcetapxC1wAH/AHs= sha256:ikT62zxcnltOkB2WqV6uxR2Un4wghU5nxiQ2LQkrIus=
	sha1:cX7tuZBUjkdlNfUyDnkmzsfaqjU= sha256:gy37ktQCEj5Y4EKXZBZC44nLU6kfDzmmI3pxPF54VCM=
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 D2DC411018D; Wed, 14 Oct 2026 21:12:08 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.339
X-Spam-Status: No, score=-1.339 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=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 maZgLInZ0ItW;
	Wed, 14 Oct 2026 21:12:02 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-346382-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 0F7DE110158; Wed, 14 Oct 2026 21:11:54 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id F060D2B496; Wed, 14 Oct 2026 18:11:11 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id C4DD7563FCB;
	Wed, 14 Oct 2026 18:11:10 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MyNsSdAy"
X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6554565116
	for <netdev@vger.kernel.org>; Wed, 14 Oct 2026 18:11:09 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1792001470; cv=none; b=qfMuSI4chP8ZgBlJa3nHpxKTpO7dPezuwS+1xTmg22+RWhzNsZTgrQL00jG8p2l9858+403F0IVdTiwHJBODQO74pa/GE4XSvt+7obBpYHmf9wmyhdpVeI4tjn/G/ZeP3WAhEQXDiNGwphB/n1ZOauN8WtdfJS3jfaPr8Tfiw7M=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792001470; c=relaxed/simple;
	bh=cu2sHALtqv5ecmM227kTCmouCknvQzS0Dzc+W+g/iPU=;
	h=MIME-Version:Date:From:To:Cc:Message-Id:In-Reply-To:References:
	 Subject:Content-Type; b=P4a+BiHZ3dfVY6Yjn4fAqsjFj1UcwyBqHzEuhKQz5680DcZYTY2zhBEHnePsbra7IW5OqnzgG2VynoFSAbAeUl7KdErL80gK5NQtDMZWB1Lp2UwFKkTZGUcUDkApNsttyWxFkwWOzemGOcReTeo7xaRnqvs9LRNGAlvjWzv3oGk=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MyNsSdAy; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1333E1F000C4;
	Wed, 14 Oct 2026 18:11:09 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792001469;
	bh=5UgmxdDE9yT3RknEctQVruZQ4UimMTnDv4uzHyA68NM=;
	h=Date:From:To:Cc:In-Reply-To:References:Subject;
	b=MyNsSdAyjCJtDr1bD93cxoYoByhOo1RIkPLWpuEhkG6X2479wml1O7kqbsxeiQvd4
	 w0uAfLViolOSCTHsCMqxSKwThIxTJLK9brzLeQsnGNlKRtVoKicmjOb0cHCqp4PsEc
	 v+LsKWFqWVQ9PAgJv6F3zatAIixzYKxHSSgmPvOUpsk2ik57epbdXFo6OWH1Wp1WA9
	 kUCRyzYx3Qo6G/t/yRh0J1Dzzfcf4Fb/DmAbZEfMoNSVdLmCQhPM/q3qawAytIZN8P
	 JJtmGGwK23sW13L15rwTxBv48RE9R3TpassKoqjYTgSddXujCKZMZK4XA5So/xNBDs
	 WiRt0xrUfbDrg==
X-Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50])
	by mailfauth.phl.internal (Postfix) with ESMTP id 74A0BF40066;
	Wed, 14 Oct 2026 14:11:08 -0400 (EDT)
X-Received: from phl-imap-15 ([10.202.2.104])
  by phl-compute-10.internal (MEProxy); Wed, 14 Oct 2026 14:11:08 -0400
X-ME-Sender: <xms:vMXPag7w9NMfqwo9J63oAsv0kt0_KTCzidPK0QwmX_U5v2tAIqg1mg>
    <xme:vMXPasudbZugUD8wHAieIHLYM9YuudQ6wazxfuKWHdzltIbX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T0gtmq17_cDPe0TkUIY2inX06ekpOc_FoCrVCLA3WIqCmY>
X-Feedback-ID: ifa6e4810:Fastmail
X-Received: by mailuser.phl.internal (Postfix, from userid 501)
	id 563A7782738; Wed, 14 Oct 2026 14:11:08 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-ThreadId: AUo9oBqcZW_V
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: <179190789812.434549.8665010768729351575@kernel.org>