The commit is pushed to "branch-rh10-6.12.0-55.13.1.3.x.vz10-ovz" and will 
appear at [email protected]:openvz/vzkernel.git
after rh10-6.12.0-55.13.1.3.26.vz10
------>
commit bbe2c9cb6da6167e85ecb3c81f4245c3563d29ff
Author: Florian Westphal <[email protected]>
Date:   Mon Dec 22 22:16:49 2025 +0000

    selftests: netfilter: run conntrack_dump_flush in netns
    
    This test will fail if the initial namespace has conntrack
    active due to unexpected number of flows returned on dump:
    
      conntrack_dump_flush.c:451:test_flush_by_zone:Expected ret (7) == 2 (2)
      test_flush_by_zone: Test failed
      FAIL  conntrack_dump_flush.test_flush_by_zone
      not ok 2 conntrack_dump_flush.test_flush_by_zone
    
    Add a wrapper that unshares this program to avoid this problem.
    
    Signed-off-by: Florian Westphal <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    
    https://virtuozzo.atlassian.net/browse/VSTOR-120993
    (cherry picked from commit fc49b804967e5b1cc1665efd4de112945e1ab4c6)
    Signed-off-by: Aleksei Oladko <[email protected]>
    
    Feature: fix ms/selftests
---
 tools/testing/selftests/net/netfilter/Makefile                | 4 ++--
 tools/testing/selftests/net/netfilter/conntrack_dump_flush.sh | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/tools/testing/selftests/net/netfilter/Makefile 
b/tools/testing/selftests/net/netfilter/Makefile
index 9d009f74cfc2d..ffe161fac8b51 100644
--- a/tools/testing/selftests/net/netfilter/Makefile
+++ b/tools/testing/selftests/net/netfilter/Makefile
@@ -8,6 +8,7 @@ MNL_LDLIBS := $(shell $(HOSTPKG_CONFIG) --libs libmnl 
2>/dev/null || echo -lmnl)
 
 TEST_PROGS := br_netfilter.sh bridge_brouter.sh
 TEST_PROGS += br_netfilter_queue.sh
+TEST_PROGS += conntrack_dump_flush.sh
 TEST_PROGS += conntrack_icmp_related.sh
 TEST_PROGS += conntrack_ipip_mtu.sh
 TEST_PROGS += conntrack_tcp_unreplied.sh
@@ -36,10 +37,9 @@ TEST_PROGS += xt_string.sh
 
 TEST_PROGS_EXTENDED = nft_concat_range_perf.sh
 
-TEST_GEN_PROGS = conntrack_dump_flush
-
 TEST_GEN_FILES = audit_logread
 TEST_GEN_FILES += connect_close nf_queue
+TEST_GEN_FILES += conntrack_dump_flush
 TEST_GEN_FILES += conntrack_reverse_clash
 TEST_GEN_FILES += sctp_collision
 
diff --git a/tools/testing/selftests/net/netfilter/conntrack_dump_flush.sh 
b/tools/testing/selftests/net/netfilter/conntrack_dump_flush.sh
new file mode 100755
index 0000000000000..8b09353858492
--- /dev/null
+++ b/tools/testing/selftests/net/netfilter/conntrack_dump_flush.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+exec unshare -n ./conntrack_dump_flush
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to