Revert "xfrm: state and policy should fail if XFRMA_IF_ID 0"
authorKai Lueke <kailueke@linux.microsoft.com>
Thu, 3 Mar 2022 14:55:10 +0000 (15:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 Mar 2022 12:47:46 +0000 (13:47 +0100)
commite901c9212457d394eca62e9cbd18245b9b722a0d
tree02fc33531794ce4a28ab7bc02ed9d110aa409e7f
parentb9a0208cb3e3e37def2abe4d602f084e0f746419
Revert "xfrm: state and policy should fail if XFRMA_IF_ID 0"

commit a3d9001b4e287fc043e5539d03d71a32ab114bcb upstream.

This reverts commit 68ac0f3810e76a853b5f7b90601a05c3048b8b54 because ID
0 was meant to be used for configuring the policy/state without
matching for a specific interface (e.g., Cilium is affected, see
https://github.com/cilium/cilium/pull/18789 and
https://github.com/cilium/cilium/pull/19019).

Signed-off-by: Kai Lueke <kailueke@linux.microsoft.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/xfrm/xfrm_user.c