Skip to contentSkip to conversation

tests: shell: Add test for nfbz#1391

PATCH New Phil Sutter 1 participant 1 message Apr 28, 2020 netfilter

lore
Share & tools
lore

Phil Sutter

author reviewer
#0 lore raw

PATCH 1/1 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.

---
 .../tests/shell/testcases/ipt-restore/0013-test-mode_0     | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100755 iptables/tests/shell/testcases/ipt-restore/0013-test-mode_0
iptables/tests/shell/testcases/ipt-restore/0013-test-mode_0 new file +7 -0
new file mode 100755
index 0000000000000..65c3b9a184b3e
@@ -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
Signature · 1 line
2.25.1