]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
xfrm: Allow transport-mode states with AF_UNSPEC selector
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 21 Feb 2023 05:54:00 +0000 (13:54 +0800)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:33:12 +0000 (13:33 +0200)
commitf46c07d11d9ca4f9999759fa15d569b3f99c3b75
tree0242c773ce1aea9e2e665918ffb6e9f6308976c6
parent5c33ffd5a740e61d6129fe2f9e0b09f2f299b04b
xfrm: Allow transport-mode states with AF_UNSPEC selector

BugLink: https://bugs.launchpad.net/bugs/2016876
[ Upstream commit c276a706ea1f51cf9723ed8484feceaf961b8f89 ]

xfrm state selectors are matched against the inner-most flow
which can be of any address family.  Therefore middle states
in nested configurations need to carry a wildcard selector in
order to work at all.

However, this is currently forbidden for transport-mode states.

Fix this by removing the unnecessary check.

Fixes: 13996378e658 ("[IPSEC]: Rename mode to outer_mode and add inner_mode")
Reported-by: David George <David.George@sophos.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
net/xfrm/xfrm_state.c