From: Steffen Klassert <steffen.klassert@secunet.com>
To: Andrii Tereshchenko <opensource@andrii.net>
Cc: Herbert Xu <herbert@gondor.apana.org.au>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
Dmitry Safonov <0x7f454c46@gmail.com>,
Sabrina Dubroca <sd@queasysnail.net>, <netdev@vger.kernel.org>,
<ipsec@lists.linux.dev>, <linux-kernel@vger.kernel.org>,
<stable@vger.kernel.org>
Subject: Re: [PATCH ipsec] xfrm/compat: pass on the translated length of a socket policy
Date: Fri, 27 Nov 2026 10:24:51 +0100 [thread overview]
Message-ID: <awlMY_jXPtnF8D2W@gauss4> (raw)
In-Reply-To: <5249741d-fa84-4d54-bf77-45f48dbbb169@mid.andrii.net>
On Mon, Nov 23, 2026 at 07:29:46PM -0800, Andrii Tereshchenko wrote:
> xfrm_user_policy() compiles a 32-bit task's translated socket policy
> with the untranslated length, 4 bytes short, so the policy loses its
> last template: an ESP-required socket policy then sends in clear
> text. Have the translator return the translated length.
>
> Made with an AI coding assistant, reviewed by the submitter.
>
> Fixes: 96392ee5a13b ("xfrm/compat: Translate 32-bit user_policy from sockptr")
> Cc: stable@vger.kernel.org
> Signed-off-by: Andrii Tereshchenko <opensource@andrii.net>
Applied, thanks a lot!
prev parent reply other threads:[~2026-11-27 9:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 3:29 [PATCH ipsec] xfrm/compat: pass on the translated length of a socket policy Andrii Tereshchenko
2026-11-25 20:04 ` Andrii Tereshchenko
2026-11-27 9:24 ` Steffen Klassert [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awlMY_jXPtnF8D2W@gauss4 \
--to=steffen.klassert@secunet.com \
--cc=0x7f454c46@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=herbert@gondor.apana.org.au \
--cc=horms@kernel.org \
--cc=ipsec@lists.linux.dev \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=opensource@andrii.net \
--cc=pabeni@redhat.com \
--cc=sd@queasysnail.net \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox