Re: [PATCH net 1/3] net/sched: act_mirred: don't send decrypted skbs from egress to ingress
From: Jakub Kicinski
Date: Wed Nov 18 2026 - 21:28:48 EST
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?