[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZnE7fHBHVknB7KH+@gauss3.secunet.de>
Date: Tue, 18 Jun 2024 09:47:08 +0200
From: Steffen Klassert <steffen.klassert@...unet.com>
To: Antony Antony <antony.antony@...unet.com>
CC: <netdev@...r.kernel.org>, Herbert Xu <herbert@...dor.apana.org.au>, "David
S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, "Jakub
Kicinski" <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, Sabrina Dubroca
<sd@...asysnail.net>
Subject: Re: [PATCH ipsec 2/2] xfrm: Log input direction mismatch error in
one place
On Tue, Jun 11, 2024 at 08:32:15AM +0200, Antony Antony wrote:
> Previously, the offload data path decrypted the packet before checking
> the direction, leading to error logging and packet dropping. However,
> dropped packets wouldn't be visible in tcpdump or audit log.
>
> With this fix, the offload path, upon noticing SA direction mismatch,
> will pass the packet to the stack without decrypting it. The L3 layer
> will then log the error, audit, and drop ESP without decrypting or
> decapsulating it.
>
> This also ensures that the slow path records the error and audit log,
> making dropped packets visible in tcpdump.
>
> Fixes: 304b44f0d5a4 ("xfrm: Add dir validation to "in" data path lookup")
> Signed-off-by: Antony Antony <antony.antony@...unet.com>
Also applied, thanks a lot!
Powered by blists - more mailing lists