summaryrefslogtreecommitdiffstats
path: root/iptables
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2020-04-28 16:12:23 +0200
committerPhil Sutter <phil@nwl.cc>2020-04-28 17:42:47 +0200
commit9269b8fcf63d3fa8dbad4550b5ecfb7f327d1145 (patch)
treed3772b638fe046959823ee25095bcbb89da951c7 /iptables
parentb48cc6328f22137bec4cb7aee8fb5d2b5ce9a947 (diff)
tests: shell: Add test for nfbz#1391
Problem is fixed since commit c550c81fd373e ("nft: cache: Fix nft_release_cache() under stress"), looks like another case of use-after-free. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables')
-rwxr-xr-xiptables/tests/shell/testcases/ipt-restore/0013-test-mode_07
1 files changed, 7 insertions, 0 deletions
diff --git a/iptables/tests/shell/testcases/ipt-restore/0013-test-mode_0 b/iptables/tests/shell/testcases/ipt-restore/0013-test-mode_0
new file mode 100755
index 00000000..65c3b9a1
--- /dev/null
+++ b/iptables/tests/shell/testcases/ipt-restore/0013-test-mode_0
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -e
+
+# segfault with --test reported in nfbz#1391
+
+printf '%s\nCOMMIT\n' '*nat' '*raw' '*filter' | $XT_MULTI iptables-restore --test