🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #18907

Re: [PATCH net 1/3] net/sched: act_mirred: don't send decrypted skbs from egress to ingress

#18907
From: Jakub Kicinski
Date: Thu, 19 Nov 2026 02:27
18 lines
9204 bytes
On Fri, 13 Nov 2026 10:55:51 -0800 Todd Freed wrote:
> On transmit, skb->decrypted means that the device must encrypt the
> packet, e.g. a packet of a kTLS or PSP device offload socket.
> 
> On receive, skb->decrypted means that the device decrypted the packet,
> and kTLS device offload trusts it as such (tls_device_decrypted()).
> 
> A packet which mirred redirects or mirrors from egress to ingress keeps
> the bit. On ingress, it then claims to have been decrypted by the device,
> although it was never encrypted, and its payload, which was to be
> encrypted before leaving the host, could then be forwarded in cleartext.

I don't get it, TBH. The bit says the data is in cleartext, and as you
flag we can't forget that. But my understanding was that the only thing
we have to guarantee about such packet is that never _leaves the host_
as clear text. Within the host it is clear text, whether its coming in
or going out. Can you ELI5 what the problem is?
Technical Details
Message-ID: <20261118182729.21bcf5f5@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366665-linux-kernel-netdev=dewy.ru
References: <20261113185553.171059-1-toddfreed@meta.com> <20261113185553.171059-2-toddfreed@meta.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366665-linux-kernel-netdev=dewy.ru
From: kuba@kernel.org (Jakub Kicinski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 1/3] net/sched: act_mirred: don't send decrypted
 skbs from egress to ingress
Date: Wed, 18 Nov 2026 18:27:29 -0800
Organization: Usenet Network
Message-ID: <20261118182729.21bcf5f5@kernel.org>
References: <20261113185553.171059-1-toddfreed@meta.com>
	<20261113185553.171059-2-toddfreed@meta.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="2765010"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:rq/z4IYjbHKIuwh+x1lQ4GHAl6o= sha256:TqfGf+xsO9fGRQra9Jy0TXinxZ1ZLIGe/XZdeQ0n+DI=
	sha1:9O4ALJEo8aXQ92WEKqFGNGhHVnU= sha256:ByE3byTa52b/NGU3d5H8Lk/3AET2yb/XRKJ7bVCGJFA=
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 C9F311154AA; Thu, 19 Nov 2026 05:28:24 +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 Xnw5Yg0yPjq2;
	Thu, 19 Nov 2026 05:28:21 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-366665-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 5EB6E1154A8; Thu, 19 Nov 2026 05:28:10 +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 9DDD91E57BD; Thu, 19 Nov 2026 02:27: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=1795055256;
	b=fa525Ie7uFYoiX+2/KvVsgcB5xwJQoJKrhb0u1Ri+rRi/1dWXm+AS2+3TjdVtSjkm0NP
	 S+kQw7NOqahJ7shU+nSeicaA8fPQVJoQjGf0xi3/l571lPgR7FO9CbaQJSw+ZKAy6Q2FW
	 DoltyhoiclmChR3iVpDYzGIM6aQRhlJFLFpKNmNNlGrpqZxMzyALNa01pFBjt/pHhryLK
	 lFKPg3ReQfs1evMQ5bqgmug/ZT7PTSuVEwL2rCcPu7SISfwqwm2X3VE3UIJGoIaUYDcoR
	 5sp+87IUD/HrogkxyRM5t0Vz5EVn26I8Xv/xTlCOKKxstNw7ZgVNiA3rocyVikVzgQg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795055256;
	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=wEYcI8ZI9y7ywNGs0DfQNK8MaDqc368NRHggaoWZKho=;
	b=fja00YQ4IKoyBFD64WmTwQb7C3lHzqnEm8tvOWZWI1Rn8XFUE+8EevqwZAEBEApBlDcp
	 8thYEfceywPlEzED0qdg+sFfnC3/Vhogkz8nBkm7dcvRYxCbNwZQnIZ7YpooSpHvMWMgO
	 oIH2SwGrre6Epium0m/SLYimZvc/yas9Oabjrh4wS2p2PQe288u9yhz48v+3iPR1J62kY
	 xVwKCGe9iv1SLf7UMwm0T4F9c5+o0fo95iS8b0b3RBKH5y+V4y9hPwa017LrCud1dPuz2
	 a97NmxSUcak2l2wSoaYiixyyWFFusERf61PdxWDquFKsIoI0j8Ewl2dTv5GHk5zF09g==
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="egE0b/qD";
	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 BDB3460A3801;
	Thu, 19 Nov 2026 02:27:36 +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=egE0b/qD
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=1795055250;
	b=Thyph2gGjsNwlXegr2Ad9wo6FldKhVJpu3u3+to7kVKo6aXXFOd+YgyMgQ2IAX8skJLV
	 5a52YPwlJSYrkMRNpzlG0Qq7g/mWxDM361w26t370zhCulHWeDKsfiXwOxmtsSvEASvka
	 COT2YRIXIRbhJDsBqNMQ4OzmMRUzFY500L7B77y5wy4fpldPkWZdc30qm9KYO2r2jc2fL
	 ffKNyfH1qIuQuF2hutDKIDUNDJYldRr5T3nNItQQEJYhXDMj781ZDGVzS1Wl+eQ8iTeHJ
	 DWWz5mCmJIP9uDHp0HIUKHblDhLl/yRudGioZuF79Xyon95vfddKdUoAfH1jTR3lxog==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795055250;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=wEYcI8ZI9y7ywNGs0DfQNK8MaDqc368NRHggaoWZKho=;
	b=f4habsInBIRo+J81Asn8c1CSBTk/Q0HkouU3q6giQeZ4gDSKgibEGuxCQySKRegJFNc4
	 2gLjSWTREhHGHWEnU1ywEAOOlIHu7CLCR73L6on+Kxt7Otq0QQY4UVvKl2S6a6mT3V4az
	 izl73FrUhNovbID7sPJl2iR6BnPpYFIMWNltV3yd+qLSDo5ryJYfB3F8tMsB5W6fQ8INg
	 Y1t/BayEUPHELB8aTgt7y9LkoSe2OJG29nnhUC5u25B1FgODQc+y01S2G30dpHOuOwd9e
	 tlz3eAKo/CyO3yunJf3mgjGO8Aa9ITSArr1ci0c7KxQ1WaqWTNA1ziw//jCfUwxAcSg==
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="egE0b/qD";
	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 DD263606A33A;
	Thu, 19 Nov 2026 02:27:30 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A9991F000C4;
	Thu, 19 Nov 2026 02:27:30 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795055250;
	bh=wEYcI8ZI9y7ywNGs0DfQNK8MaDqc368NRHggaoWZKho=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=egE0b/qDsY0A71yzb2c39TpIgIPuJabvIZSoXlZAb2g0ZQ467LxImtQV+hewOOUcx
	 AmqxU30arIrjCofZK/V6HBWJZWe2Uto2N+xf8tjeLQm8vnYWwZr3FxDNEWn3YlWypg
	 xmjZw9ktgYQ1Zh23rzmDkcRTCq4iTGU02JmXElmovMcTU6k7ZkqgxrDdb1qzhUAAuv
	 dpp8IZZKITwUQDxmw2aOgVvhX4J7OiM5IZzuMIzM/P8LORq915AeeLeRGNup3C7A70
	 al8OljM/GT+b9MgQW8iBqp8D5eSz/h0ezL5FbqQYdA3NRAMtDQQrEGY4MtWJSSAkTs
	 a+3UPKVo/42GA==
X-Cc: <netdev@vger.kernel.org>, "David S. Miller" <davem@davemloft.net>, Eric
 Dumazet <edumazet@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon
 Horman <horms@kernel.org>, Daniel Zahka <daniel.zahka@gmail.com>, Willem de
 Bruijn <willemdebruijn.kernel@gmail.com>, Wei Wang <weiwan@google.com>,
 Jamal Hadi Salim <jhs@mojatatu.com>, Jiri Pirko <jiri@resnulli.us>, Alexei
 Starovoitov <ast@kernel.org>, Daniel Borkmann <daniel@iogearbox.net>,
 Andrii Nakryiko <andrii@kernel.org>, Martin KaFai Lau
 <martin.lau@linux.dev>, John Fastabend <john.fastabend@gmail.com>,
 "Stanislav Fomichev" <sdf@fomichev.me>, Sabrina Dubroca
 <sd@queasysnail.net>, "Boris Pismenny" <borisp@nvidia.com>,
 <bpf@vger.kernel.org>, <linux-kernel@vger.kernel.org>
X-In-Reply-To: <20261113185553.171059-2-toddfreed@meta.com>
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