🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #6947

Re: [PATCH net v3] tls: fix the open record check in the max payload size setsockopt

#6947
From: patchwork-bot+netdevbpf
Date: Fri, 23 Oct 2026 21:20
26 lines
8818 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Tue, 20 Oct 2026 20:12:39 +0800 you wrote:
> do_tls_setsockopt_tx_payload_len() refuses to resize records while one is
> open, but the check is broken in two ways.
> 
> It reaches for the open record through tls_sw_ctx_tx(), an unchecked cast
> of ctx->priv_ctx_tx.  Under device offload that pointer is a
> tls_offload_context_tx, so the check reads a field of the wrong struct: it
> returns EBUSY on whatever happens to be there, and never sees the record
> that really is open.  Dispatch on tx_conf.
> 
> [...]

Here is the summary with links:
  - [net,v3] tls: fix the open record check in the max payload size setsockopt
    https://git.kernel.org/netdev/net/c/ed642349d87d

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179279040457.1276597.15193164800463217600.git-patchwork-notify@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-351247-linux-kernel-netdev=dewy.ru
References: <20261020121240.29082-1-jiayuan.chen@linux.dev>

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-351247-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v3] tls: fix the open record check in the max payload
 size
 setsockopt
Date: Fri, 23 Oct 2026 21:20:04 +0000
Organization: Usenet Network
Message-ID: <179279040457.1276597.15193164800463217600.git-patchwork-notify@kernel.org>
References: <20261020121240.29082-1-jiayuan.chen@linux.dev>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="615852"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:sabKTlpZZuOsiGvNxzvMdRPZRng= sha256:x2uoPqQeT1ZgMj0AF9n4TXtJgota/t9P8Ncky/X3Pvw=
	sha1:nAkVbjkVOOJHNYxINeN7dfuqsXE= sha256:xOvCAmzH/uiX+GqP93/hV1bSMENiEtFF7UCfD0NYXkw=
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 77C96111594; Sat, 24 Oct 2026 00:20:26 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.739
X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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 lWgIV9MuyYDV;
	Sat, 24 Oct 2026 00:20:23 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-351247-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 5AD3311139F; Sat, 24 Oct 2026 00:20:14 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 0AFC133703; Fri, 23 Oct 2026 21:20:10 +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=1792790407;
	b=L05Ah+BqqTCVIKvelyfHOnIesqYq3Wj+elwLn5b9pW8+CG89K/AxEmw/eHiK2bcWXSCb
	 LaYBEeB5Z0XepLrvsUFVYETHRmuCbTv4yTTHIvNjBJlZG4tCnHNmCDfCGqzYLCLIPNpLS
	 XywEsIJjDFMudnXlaDmOB/glZwGpEEwnZ3KBcJfC+jfYSpzGHstlO59rZkcU/UIGAmpdw
	 OxBmIhsZeH+XENXzP+bBA1m7rjNLG0600+fyF4ew6+ec/gimaCyjo9nKEo5rRgIXGLXJ3
	 hX0eWfuB/2yoDzHlHqtAQchQA1VQo6yi4J1eC23gcXHAhMNtv1EchgNOXJkOvRLb48g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792790407;
	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=rEJoEG94chYzLx0ixR70ISKHRkSY+g49UFYD27tnNH0=;
	b=VzL3dXGz3G6g0ee+MfCtVM0h43rm0jhv3LqU8tHZQ8QDiVPzVivFg3Erwr2gqQ3sg8wp
	 kg5S46vZvQP/m3ok6X7ODxcDhFxp8DokgymKWj9BP6R71n8EII9iywVgeTnw+Z+UD7c+q
	 FmzC7/1INYSt8uE02sh/PivdFedN4N/bER560uqSOcFUMut/Ks9cv5ss3oPD+31bzgXsY
	 /J9G4SajYdml48tF0STUi/L8GPJTBdWcNHrlRvpDgHbGR46pX83UtWBPO4/E+EuKznT0C
	 8Zc0DFlOxoHZdSxEjClmpA9gVX8zJx/ekzLQ4st6IbPoqSlgiRw6b+GmqEMve9Tz7BA==
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=VQRPRmsI;
	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 5ED2B606A322;
	Fri, 23 Oct 2026 21:20:07 +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=VQRPRmsI
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=1792790406;
	b=PV05itn2WlsvjoETUkWACK4MyXV/pbzqoBP3FHjRkY3wkU/MWWv4SGkc1NxvXKvV8ON9
	 S3p9xLl2w2eMsfM7OB0Jvtzk2QiKs/NAwLzFvpsCJ1rN5Mih1aB2mQxrnUN+R3fm63H3O
	 nAlJUCpUeIlCPsqqTfn3Gjj1woY8/c1SrCcoJqdriL8S1dzzOOeOStD/BPUEfCe7dLP/+
	 zvj8fln9fn/efQEsfyUL0r92roBd7H1uYfwytf3G0QtxbIHESvm79OUJSrMcYFS4+SqjN
	 4Jo3u/yqwlQ94qXlftRQpMj7nBmT3fI0BQfYDD0ZJYZhqT0aJoW/ld2Yc7Rr2qo617Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792790406;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=rEJoEG94chYzLx0ixR70ISKHRkSY+g49UFYD27tnNH0=;
	b=BQyIMIE1knTlnPHUdiJi+hW/9AJD628o9A/PFxY22CKmT73qCPVKf42Ww1u0ngjX1cEy
	 t+Rw+i3GIrmEg7nN5L5/yG9wuyKMB6A2KqW7C7zuOsFY2fR06UchiaAKT1Y115AzJMnqj
	 a2Hujcx0l9WPmxszwFrOVgxzAnOvSqb9osqVGMwf9e9SEzjWmROBmKGR8fSJWTgmgBpst
	 0YpHD69lGCC4JdKk6mImlkslIuF2GZU3AoRNrolEQl1apBmog0YTHyeRK97R66PjS27kj
	 TPfQyxby2IX+mp+uL9c1x0v1PXnTR6IrTjrW36VGHJfMys/IH+7lO0NwxF2j3mMS0pg==
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=VQRPRmsI;
	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 41144606A31A;
	Fri, 23 Oct 2026 21:20:06 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8AD81F01825;
	Fri, 23 Oct 2026 21:20:05 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792790405;
	bh=rEJoEG94chYzLx0ixR70ISKHRkSY+g49UFYD27tnNH0=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=VQRPRmsIlhjBN0v9uu8DnrEEKaZnDHVq3AWnVanaj7YFZsU+UyYMQPKeQMRvZaUZL
	 aUMNke9StoB2byo6bceZhVFQ/Q8J0RhULe7giIgSehXBfGjlmbW8EJzLJ6Qs88ac7z
	 u8gBLf9WWdZ3lYJXpbu62ofFXFUQmcLDVm2G0bvpmBuffYOaMaDjdmc0X2R9obxfb3
	 x0EfQeAlyZH5NHgvn6FMcbV5nYUbjYiHM4f4uh+QfF8HAwUsowpsNM0VJq2oJVgVq8
	 HVUjMCElm7SueqbeCr6emJoJ3j0UTi/r3OOyVz/X/ZUAJIngHnEHbNQfXiHU+UoFt3
	 Wrso+8LAGVHKQ==
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 BE6F1391B157;
	Fri, 23 Oct 2026 21:20:05 +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: <20261020121240.29082-1-jiayuan.chen@linux.dev>
X-Cc: netdev@vger.kernel.org, sd@queasysnail.net, john.fastabend@gmail.com,
 kuba@kernel.org, davem@davemloft.net, edumazet@kernel.org, pabeni@redhat.com,
 horms@kernel.org, wilfred.mallawa@wdc.com, linux-kernel@vger.kernel.org