diff options
author | David S. Miller <davem@davemloft.net> | 2023-01-16 13:10:16 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-01-16 13:10:16 +0000 |
commit | 21705c771934f24cab8beb554e3b7f40e3511ad7 (patch) | |
tree | 9ac04c492f0fadec39d313d3d7d72e8e9cb3022f /tools/testing | |
parent | c296c77efb66994d94d9f706446a115581226550 (diff) | |
parent | 696e1a48b1a1b01edad542a1ef293665864a4dd0 (diff) | |
download | linux-21705c771934f24cab8beb554e3b7f40e3511ad7.tar.gz linux-21705c771934f24cab8beb554e3b7f40e3511ad7.tar.bz2 linux-21705c771934f24cab8beb554e3b7f40e3511ad7.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf
Pable Neira Ayuso says:
====================
The following patchset contains Netfilter fixes for net:
1) Increase timeout to 120 seconds for netfilter selftests to fix
nftables transaction tests, from Florian Westphal.
2) Fix overflow in bitmap_ip_create() due to integer arithmetics
in a 64-bit bitmask, from Gavrilov Ilia.
3) Fix incorrect arithmetics in nft_payload with double-tagged
vlan matching.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing')
-rwxr-xr-x | tools/testing/selftests/netfilter/nft_trans_stress.sh | 16 | ||||
-rw-r--r-- | tools/testing/selftests/netfilter/settings | 1 |
2 files changed, 10 insertions, 7 deletions
diff --git a/tools/testing/selftests/netfilter/nft_trans_stress.sh b/tools/testing/selftests/netfilter/nft_trans_stress.sh index a7f62ad4f661..2ffba45a78bf 100755 --- a/tools/testing/selftests/netfilter/nft_trans_stress.sh +++ b/tools/testing/selftests/netfilter/nft_trans_stress.sh @@ -10,12 +10,20 @@ ksft_skip=4 testns=testns-$(mktemp -u "XXXXXXXX") +tmp="" tables="foo bar baz quux" global_ret=0 eret=0 lret=0 +cleanup() { + ip netns pids "$testns" | xargs kill 2>/dev/null + ip netns del "$testns" + + rm -f "$tmp" +} + check_result() { local r=$1 @@ -43,6 +51,7 @@ if [ $? -ne 0 ];then exit $ksft_skip fi +trap cleanup EXIT tmp=$(mktemp) for table in $tables; do @@ -139,11 +148,4 @@ done check_result $lret "add/delete with nftrace enabled" -pkill -9 ping - -wait - -rm -f "$tmp" -ip netns del "$testns" - exit $global_ret diff --git a/tools/testing/selftests/netfilter/settings b/tools/testing/selftests/netfilter/settings new file mode 100644 index 000000000000..6091b45d226b --- /dev/null +++ b/tools/testing/selftests/netfilter/settings @@ -0,0 +1 @@ +timeout=120 |