From nobody Thu Apr 9 21:52:45 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 8983A1D5AD4; Fri, 6 Mar 2026 00:01:50 +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=1772755323; cv=none; b=HDBQgi/OTSydrh5oWOesBnj6ndssCdznO1xRmbKL0O8TDV2ZaWbC3PE70rB/nIxAYhjLoaK8xFryUZ+6FJGYG02fZ5Ub961WDJgFC1J/pS/obXKu9quwGQ0gtPFiCYbH6VC+9KyqqD2A2pzLDziBo7iMGAoTClojCgexTNU41yM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772755323; c=relaxed/simple; bh=fhTfgUIcQ3y4hKSQw3oyq2gN1XbWjUDB8bmqXhAWjqs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Dlv7G1hfH1LFgon/4+vX2J+ghXs+uUfGZkVl70I+tPnhL2sdOHNRTGu6OhtsLOIKsB7Md51x/6SNfdh6s/ZKNcDGGGNDGeBmeeSKu0vKXZjJalcxrg4rsDxmCUTIYg5w6nFwnxs9uyKk2BTkMNqTsud7LQAvFNSVLXThpPc9Mrg= 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=QTuGlxsr; 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="QTuGlxsr" 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=mINb8Y4urQ3Ce2/gZIEe5yET0uG5j4QIGs1pRxm5EHU=; b=QTuGlxsrnyWl a6AZVwKRMaNpjlrvV7beX3+TQbjdUHs3GyGEqDHDMZ5jzHSVERz7DmG6cDAU2AMImGy5mWNt+aERd LCEmbwg1O4EGxR3OS0DmyxO07U8mOOx1VyH6dLdxFUMkagNXD3MP5bNBahwWj3uDpZVkR8FG9sxCH ImibPGsYk4pA+x1Th0dqb1N07ng7H+Bwzr50t2xzMDBP+LSK6Mn2hXiHwKEGR/nDlMkGXZgJtwbHl BWtzrKx4MgLioXa9jQKWTkWbDIYElzYYCxDHutrpD1knICsorQ/gcX1CoTQdR1v9KWJmZv3afUit+ 61qbO2uFAlrz/5//2IEPUQ==; 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 1vyIbt-006GPD-0u; Fri, 06 Mar 2026 01:01:36 +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 62601cNp519107 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 6 Mar 2026 00:01:38 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 62601cNI519106; Fri, 6 Mar 2026 00:01:38 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 v3 5/6] selftests: net: run pmtu.sh in netns to avoid host firewall interference Date: Fri, 6 Mar 2026 00:01:26 +0000 Message-ID: <20260306000127.519064-6-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260306000127.519064-1-aleksey.oladko@virtuozzo.com> References: <20260306000127.519064-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 b9eeeffa5fd2..363cd1e2cf8e 100644 --- a/tools/testing/selftests/net/Makefile +++ b/tools/testing/selftests/net/Makefile @@ -63,7 +63,7 @@ TEST_PROGS :=3D \ netns-name.sh \ netns-sysctl.sh \ nl_netdev.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