From: Kyuwon Cho <kyuwoncho18@gmail.com>
To: netdev-bot+sashiko@kernel.org
Cc: Steffen Klassert <steffen.klassert@secunet.com>,
Herbert Xu <herbert@gondor.apana.org.au>,
Eric Dumazet <edumazet@kernel.org>,
Kuniyuki Iwashima <kuniyu@google.com>,
"David S. Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
netdev@vger.kernel.org, ipsec@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [BUG] xfrm: a socket policy cloned for a TCP child leaks when cloning the second policy fails
Date: Sun, 22 Nov 2026 20:29:37 -0800 (PST) [thread overview]
Message-ID: <179540803327.3139702.4403349042486439775@gmail.com> (raw)
In-Reply-To: <179540513898.3135.13913410077710347458@kernel.org>
On Mon, 23 Nov 2026 03:38:58 +0000, netdev-bot+sashiko@kernel.org wrote:
> xfrm_sk_clone_policy() already sets the child slots to NULL before cloning.
> Would checking "if (np)" on the child pointer avoid both cases?
Yes. v2 checks np, the new socket's own slot, and is sent inline as a
proper patch. The report was also wrong that a partial clone leaves the
parent's sk_policy[1] in the child; that slot is NULL.
Kyuwon Cho
pw-bot: cr
prev parent reply other threads:[~2026-11-23 4:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 3:04 Kyuwon Cho
2026-11-23 3:38 ` netdev-bot+sashiko
2026-11-23 4:29 ` Kyuwon Cho [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=179540803327.3139702.4403349042486439775@gmail.com \
--to=kyuwoncho18@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=kuniyu@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=steffen.klassert@secunet.com \
/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
all inboxes | Powered by JetHome®