From nobody Fri Apr 3 03:01:58 2026 Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D267312819; Sat, 21 Mar 2026 21:59:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.117.225.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774130374; cv=none; b=ZpaQoVR6DIW3jyOdCWzF8ex3PR5QAko9XZVrqgmhPZFRnmFSkuhQpp5fI0szuG2JKb3Rlv/sNncMsw4b7q0bb6KlvxRPOWi6XXrxmAEDsyQ8OnLqOmayVT9OHXzgG/ZbAN1PbHEtC76K3xaYhyEuT06o8OlCcS+KbvqkYnfFqog= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774130374; c=relaxed/simple; bh=h4SpN64FqvVFNc522ovC5+ZOYQUqCVKhFX8TykzZNsA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Q2XwY1tkuVKX3KHLkBM7HA+6T3SObeEGuP/BVjoHOsNi0t+GhSNQQHth8xaE+4l774YP7K7BUUrmdpfWZ7aTfZMdKV5gS7ARKzro65wOVd80N8CnhYL8ux7AW0RsRv1GZkdRTFb3hFen1RzP/QAdf6kIhhCQ5LHyb3cji0txR9A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com; spf=pass smtp.mailfrom=virtuozzo.com; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b=MpdmNRCn; arc=none smtp.client-ip=130.117.225.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="MpdmNRCn" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=g9dpOH5uNn1g7NlIWt1IfNFaEx5t1yGTMxCQaSA8U4I=; b=MpdmNRCnhe3u ws6A0c0b0MRQisZBdjuYemFrZOByYriReqRnIjvxselkrd5BDX/4Z6vZogRi3fH9bW6Z8dP/edeTc RWtM42FQlVSI/PskeZkurTqfX1NPAn2v8FAxGl9FNTToORripOiabYAttQe63jZzKR0VNB90KBmhV 11a8pAbpDcTjJ34zA0TEQsSe/xvR+t73n4AAZhgZ6FQyxqhau8epbjHY5Y2akV9jDzSfqmElTdFe0 glOPGzIXXQziYmENEK3qqnxu7HsHj1zdGMKc3OfABi1AhSuMFV4jk/KZqTFj+WrqSiD6xeTfrzKrs fdG1MWjo5ySRopNH6srdIQ==; Received: from [130.117.225.5] (helo=dev004.aci.vzint.dev) by relay.virtuozzo.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w44Jr-001ijN-1z; Sat, 21 Mar 2026 22:59:11 +0100 Received: from dev004.aci.vzint.dev (localhost [127.0.0.1]) by dev004.aci.vzint.dev (8.16.1/8.16.1) with ESMTPS id 62LLxGZk175496 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sat, 21 Mar 2026 21:59:16 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 62LLxFnW175495; Sat, 21 Mar 2026 21:59:15 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Aaron Conole , Ilya Maximets , Eelco Chaudron , Stefano Brivio Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, dev@openvswitch.org, Konstantin Khorenko , Aleksei Oladko Subject: [PATCH net-next v6 3/4] selftests: net: run pmtu.sh in netns to avoid host firewall interference Date: Sat, 21 Mar 2026 21:59:07 +0000 Message-ID: <20260321215908.175465-4-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260321215908.175465-1-aleksey.oladko@virtuozzo.com> References: <20260321215908.175465-1-aleksey.oladko@virtuozzo.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Konstantin Khorenko The pmtu.sh kselftest sets up a multi-namespace test topology where the host network itself is part of the test setup. Test packets originating from the created namespace are expected to reach test interface created in the host. When firewall rules are present on the host, this traffic may be blocked, causing the test to fail. Run the test in an isolated network namespace to avoid interference from host firewall rules. Signed-off-by: Konstantin Khorenko Signed-off-by: Aleksei Oladko --- tools/testing/selftests/net/Makefile | 3 ++- tools/testing/selftests/net/pmtu-test.sh | 4 ++-- tools/testing/selftests/net/pmtu.sh | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100755 tools/testing/selftests/net/pmtu.sh diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests= /net/Makefile index f18d28775c80..fedbe24a1e64 100644 --- a/tools/testing/selftests/net/Makefile +++ b/tools/testing/selftests/net/Makefile @@ -66,7 +66,7 @@ TEST_PROGS :=3D \ netns-sysctl.sh \ nl_netdev.py \ nl_nlctrl.py \ - pmtu-test.sh \ + pmtu.sh \ psock_snd.sh \ reuseaddr_ports_exhausted.sh \ reuseport_addr_any.sh \ @@ -194,6 +194,7 @@ TEST_FILES :=3D \ fcnal-test.sh \ in_netns.sh \ lib.sh \ + pmtu-test.sh \ settings \ # end of TEST_FILES =20 diff --git a/tools/testing/selftests/net/pmtu-test.sh b/tools/testing/selft= ests/net/pmtu-test.sh index a3323c21f001..2ba6bc0252f0 100755 --- a/tools/testing/selftests/net/pmtu-test.sh +++ b/tools/testing/selftests/net/pmtu-test.sh @@ -976,7 +976,7 @@ setup_ovs_bridge() { run_cmd ip link set ovs_br0 up =20 run_cmd ${ns_c} ip link add veth_C-A type veth peer name veth_A-C - run_cmd ${ns_c} ip link set veth_A-C netns 1 + run_cmd ${ns_c} ip link set veth_A-C netns $$ =20 run_cmd ip link set veth_A-C up run_cmd ${ns_c} ip link set veth_C-A up @@ -985,7 +985,7 @@ setup_ovs_bridge() { setup_ovs_add_if veth_A-C =20 # Move veth_A-R1 to init - run_cmd ${ns_a} ip link set veth_A-R1 netns 1 + run_cmd ${ns_a} ip link set veth_A-R1 netns $$ run_cmd ip addr add ${prefix4}.${a_r1}.1/${veth4_mask} dev veth_A-R1 run_cmd ip addr add ${prefix6}:${a_r1}::1/${veth6_mask} dev veth_A-R1 run_cmd ip link set veth_A-R1 up diff --git a/tools/testing/selftests/net/pmtu.sh b/tools/testing/selftests/= net/pmtu.sh new file mode 100755 index 000000000000..1805fa44a2de --- /dev/null +++ b/tools/testing/selftests/net/pmtu.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +./in_netns.sh ./pmtu-test.sh "$@" --=20 2.43.0