From: Phil Sutter Date: Tue, 28 Apr 2020 14:12:23 +0000 (+0200) Subject: tests: shell: Add test for nfbz#1391 X-Git-Tag: v1.8.5~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9269b8fcf63d3fa8dbad4550b5ecfb7f327d1145;p=thirdparty%2Fiptables.git 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 --- 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