]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: openvswitch: Add validation for the recursion test
authorAaron Conole <aconole@redhat.com>
Wed, 7 Feb 2024 13:24:16 +0000 (08:24 -0500)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:10 +0000 (18:19 -0400)
commit4c3157dd6a1d186b4fefe89a9ccf36783453f962
tree367b58452258ad1c742902b5b74310c14cf09214
parent1f87429485ecd99f1a834a88cf8da2e202cc2c0e
selftests: openvswitch: Add validation for the recursion test

[ Upstream commit bd128f62c365504e1268dc09fcccdfb1f091e93a ]

Add a test case into the netlink checks that will show the number of
nested action recursions won't exceed 16.  Going to 17 on a small
clone call isn't enough to exhaust the stack on (most) systems, so
it should be safe to run even on systems that don't have the fix
applied.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240207132416.1488485-3-aconole@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/openvswitch/openvswitch.sh
tools/testing/selftests/net/openvswitch/ovs-dpctl.py