🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #4441

[PATCH net-next 02/15] selftests: netfilter: nft_queue.sh: only queue icmp echo request/reply

#4441
From: Pablo Neira Ayuso
Date: Sun, 18 Oct 2026 00:56
46 lines
7467 bytes
From: Jakub Kicinski <kuba@kernel.org>

The bridge test flakes on debug kernels:

  FAIL: Expected 10 packets total, but got 24 packets total
  hook 3 packets 00000008
  hook 4 packets 00000010

The surplus are icmp fragment reassembly timeouts.  The udp flood in the
stress test leaves incomplete datagrams behind in ns2 and ns3, 30 seconds
later their reassembly queues expire and both namespaces send icmp time
exceeded to ns1's pre-bridge address.  ns3 is not reconfigured when the
router is turned into a bridge, so its messages arrive via veth2 and are
then forwarded out of br0. Such packets are locally originated from the
bridge point of view and are queued from the bridge output and
postrouting hooks, which is why only those two counters are off.

Restrict the ipv4 rule to echo request/reply, the icmpv6 rule already
does this.

We used to see 1 flake a day in NIPA before locally queuing this change,
zero flakes since (over 9 days)

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
 tools/testing/selftests/net/netfilter/nft_queue.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/net/netfilter/nft_queue.sh b/tools/testing/selftests/net/netfilter/nft_queue.sh
index 7c857a2e0f34..c8d1f2eb4133 100755
--- a/tools/testing/selftests/net/netfilter/nft_queue.sh
+++ b/tools/testing/selftests/net/netfilter/nft_queue.sh
@@ -92,7 +92,7 @@ load_ruleset() {
 ip netns exec "$nsrouter" nft -f /dev/stdin <<EOF
 table $family $name {
 	chain nfq {
-		ip protocol icmp queue bypass
+		icmp type { "echo-request", "echo-reply" } queue bypass
 		icmpv6 type { "echo-request", "echo-reply" } queue num 1 bypass
 	}
 	chain pre {
-- 
2.47.3
Technical Details
Message-ID: <20261018005638.1776148-3-pablo@netfilter.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347883-linux-kernel-netdev=dewy.ru
References: <20261018005638.1776148-1-pablo@netfilter.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347883-linux-kernel-netdev=dewy.ru
From: pablo@netfilter.org (Pablo Neira Ayuso)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next 02/15] selftests: netfilter: nft_queue.sh: only queue icmp echo request/reply
Date: Sun, 18 Oct 2026 02:56:25 +0200
Organization: Usenet Network
Message-ID: <20261018005638.1776148-3-pablo@netfilter.org>
References: <20261018005638.1776148-1-pablo@netfilter.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3186502"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:UbnW70Ehg9Qqpjvruasc+fsRFas= sha256:ehOqCNKyjbagI3+HEMHRSyy+HmJNqnYPI/O4vcjkvD0=
	sha1:sLVeIE97x0OEkJ6/HU/9XsvIJuc= sha256:NPAiUFYz6+CdwCHJp+rC/jPle5IMN6IlB/SYu5B9PL8=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 9EF74DF0B6; Sun, 18 Oct 2026 03:57:38 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=netfilter.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id nJLOfxEsKCh1;
	Sun, 18 Oct 2026 03:57:36 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-347883-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=netfilter.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 32A8B11077A; Sun, 18 Oct 2026 03:57:28 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 8C7883822F; Sun, 18 Oct 2026 00:56:53 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 034222FFDFC;
	Sun, 18 Oct 2026 00:56:53 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org header.b="Qeln+D/R"
X-Received: from mail.netfilter.org (mail.netfilter.org [217.70.190.124])
	(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 74D9E2DF719;
	Sun, 18 Oct 2026 00:56:51 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.190.124
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1792285012; cv=none; b=kGINoLWMshQjOZzWFK+xCncO06KfM/NRVOsRwJJwpZg6J+/tiukarcgehYlrdb5Z7Xq0XocBfhdKgy990zUQQ0dtbieoYw8ePZ9wgFfXojwjfID9TsXHEPFP0wDJ8Pr7MevaLnnPdG3Hux76RPdhQ5IOA3lMhGwVTFFG3smMo9M=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792285012; c=relaxed/simple;
	bh=3roayg8buVEjdLKPYmZ6HsCIOKDQqHYgVaqusQGO+Rk=;
	h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
	 MIME-Version; b=UBHNGZolz+LWmZWPHhAP48xGkO1Zt9e27OmNIfsi4sgGBcSPK9e8j3lD4jRvbxaYCNH/nIJAcd0BFKil/MJTROwBGaDg4ixMgoPTFL4dAJ+KyP5tqPSp7VI/XG7EPJa/TYJg8n+U+weRpXD3oEECe2bqBGbD4lwrAWd+TGl+QXA=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org; spf=pass smtp.mailfrom=netfilter.org; dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org header.b=Qeln+D/R; arc=none smtp.client-ip=217.70.190.124
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netfilter.org
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfilter.org;
	s=2025; t=1792285009;
	bh=uvUyegn7cLkpVngqqoa3IGbBqZM7eb5HFYXevNcnm50=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
	b=Qeln+D/RYFMfXDpowOocy7Xb5KR629NRZBOPKwguKdXKNtFRfDDButxYO0OaLbzE1
	 TcNZpE7j6Vj0siExQ/ndEyAVLp5ZgkHG4w+FZkUxic0DfHvwJf3L5WHH+Cmc7qaEbT
	 WyLTix59zp5EH/ZErHMV2O7KsGsBrc8kZhOJpiYU+vMK47WpG5pCDPHkHH/qA094V1
	 m5BuPK0gMtGY3jZL5pVspYXQhdZA46NfjMfWOJSIpd1dNkPlKBuu0wPW9Nz9u8bcId
	 BbKlCEy9q7iFFWCITJc6IiZkp9sZgJjfqEg6SwKtS1Igzn87tT8OF2EGBpH8stofHw
	 hRzNam+xVylbQ==
X-Received: from localhost.localdomain (mail-agni [217.70.190.124])
	by mail.netfilter.org (Postfix) with ESMTPSA id 1993E60060;
	Sun, 18 Oct 2026 02:56:49 +0200 (CEST)
X-Cc: davem@davemloft.net,
	netdev@vger.kernel.org,
	kuba@kernel.org,
	pabeni@redhat.com,
	edumazet@kernel.org,
	horms@kernel.org,
	fw@strlen.de,
	ja@ssi.bg
X-Mailer: git-send-email 2.47.3
X-In-Reply-To: <20261018005638.1776148-1-pablo@netfilter.org>
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>