From: Antony Antony <antony@phenome.org>
To: Sabrina Dubroca <sd@queasysnail.net>
Cc: Antony Antony <antony.antony@secunet.com>,
Steffen Klassert <steffen.klassert@secunet.com>,
Herbert Xu <herbert@gondor.apana.org.au>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>, David Ahern <dsahern@kernel.org>,
Jamal Hadi Salim <hadi@cyberus.ca>, Shuah Khan <shuah@kernel.org>,
netdev@vger.kernel.org, Yan Yan <evitayan@google.com>,
Tobias Brunner <tobias@strongswan.org>,
Florian Westphal <fw@strlen.de>,
linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org
Subject: Re: [PATCH ipsec v3 0/6] xfrm: state: exact mark/mask match for control-plane SA lookups
Date: Wed, 7 Oct 2026 12:28:32 +0200 [thread overview]
Message-ID: <asYe0D61qDIOMhbL@Antony2201.local> (raw)
In-Reply-To: <arUCAefkfEw-Jl_z@krikkit>
On Thu, Sep 24, 2026 at 12:57:05PM +0200, Sabrina Dubroca wrote:
> 2026-09-21, 22:43:59 +0200, Antony Antony wrote:
..
> The series looks good, but why did you remove the selftests you had in v1?
> https://lore.kernel.org/all/migrate-state-fixes-v0-3-a69e8637ba3b@secunet.com/
Thanks for the review. sorry for late response.
The selftests were in v1; I dropped them from v2 on. I should have
mentiond it in change log! I used the tests to find unusual mark configurations,
ones that strongSwan would not set.
As far as I know these are unlikely, or plain misconfigurations: several
SAs with the same (SPI, daddr, proto) that differ only in mark, where
the SA a lookup finds depends on the order they were inserted in.
I did not post the script with the fixes: the tests got complicated,
and XFRM_MSG_MIGRATE* is not supported in iproute2. Adding those tests
would make the already big series even bigger and risk a long review
loop.
After v3, working on the fixes also reveled further problems with
misconfigured marks, such as bits outside the mask (0x10001/0xf), in both states and
policies. The kernel quietly sanitized them away on insert, so a later
exact lookup, e.g. delete, could not find the SA. The extra patches in
v4 and v5 address this. Android's test suite is good at catching such
misconfigurations, and Yan helped me there.
I could send the selftests separately as a follow-up after this series.
-antony
prev parent reply other threads:[~2026-10-07 10:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 20:43 [PATCH ipsec v3 0/6] xfrm: state: exact mark/mask match for control-plane SA lookups Antony Antony
2026-09-21 20:44 ` [PATCH ipsec v3 1/6] xfrm: state: exact mark/mask match for SPI-keyed " Antony Antony
2026-09-21 20:47 ` [PATCH ipsec v3 2/6] xfrm: fix use-after-free of migrated state in xfrm_do_migrate_state() Antony Antony
2026-09-21 20:48 ` [PATCH ipsec v3 3/6] xfrm: fix hw offload state leak on xfrm_do_migrate_state() error path Antony Antony
2026-09-21 20:48 ` [PATCH ipsec v3 4/6] xfrm: include mark in MIGRATE_STATE SA collision check Antony Antony
2026-09-21 20:48 ` [PATCH ipsec v3 5/6] xfrm: pass extack through to xfrm_init_replay() from xfrm_init_state() Antony Antony
2026-09-21 20:48 ` [PATCH ipsec v3 6/6] docs: xfrm: include mark in XFRM_MSG_MIGRATE_STATE EEXIST tuple Antony Antony
2026-09-24 10:57 ` [PATCH ipsec v3 0/6] xfrm: state: exact mark/mask match for control-plane SA lookups Sabrina Dubroca
2026-10-07 10:28 ` Antony Antony [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=asYe0D61qDIOMhbL@Antony2201.local \
--to=antony@phenome.org \
--cc=antony.antony@secunet.com \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@google.com \
--cc=evitayan@google.com \
--cc=fw@strlen.de \
--cc=hadi@cyberus.ca \
--cc=herbert@gondor.apana.org.au \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sd@queasysnail.net \
--cc=shuah@kernel.org \
--cc=steffen.klassert@secunet.com \
--cc=tobias@strongswan.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