🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #2034

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

#2034
From: Pablo Neira Ayuso
Date: Sun, 11 Oct 2026 21:59
46 lines
7470 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: <20261011215953.1334630-9-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-344626-linux-kernel-netdev=dewy.ru
References: <20261011215953.1334630-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-344626-linux-kernel-netdev=dewy.ru
From: pablo@netfilter.org (Pablo Neira Ayuso)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next 08/15] selftests: netfilter: nft_queue.sh: only queue icmp echo request/reply
Date: Sun, 11 Oct 2026 23:59:46 +0200
Organization: Usenet Network
Message-ID: <20261011215953.1334630-9-pablo@netfilter.org>
References: <20261011215953.1334630-1-pablo@netfilter.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1628877"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:2uiMw0lxH71JtqQtqFfMKqahGu4= sha256:/I2uNbPW5HZzWdFS4JzXw71odzab7K/Bs92z3zUnOH8=
	sha1:HwZ2qq2LHrVDOaj+aCSJdiT+4gE= sha256:Y50TlLXIDAUNu77LywwGkxmpZaGA4cPI6kOBDF01OWQ=
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 8C0B610FA79; Mon, 12 Oct 2026 01:00:31 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.15
X-Spam-Status: No, score=-3.15 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=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 I1e8F2hlqyfA;
	Mon, 12 Oct 2026 01:00:28 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-344626-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 1789410F9C2; Mon, 12 Oct 2026 01:00:25 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sto.lore.kernel.org (Postfix) with ESMTP id 75C246030BA; Sun, 11 Oct 2026 22:00:17 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 1CF00404BE3;
	Sun, 11 Oct 2026 22:00:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org header.b="TlScgAyF"
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 B91BE400E0D;
	Sun, 11 Oct 2026 22:00:15 +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=1791756017; cv=none; b=WxeU3MMOwV/kVfM5KphabwZeU7AzwaGjWpQ5sqtzJX4XhI6Fp6jrbzo83wXYay4QdbV3FisQwRaaxnIu4ou8RLXNBp/0eyHSGBwssyGo3rP+q1ezanhDUY6OIp27Fbh3rwMqSPd7VBxUvE9btKzlmqSeqiKZcAqtA8qLb9pL/Cw=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791756017; c=relaxed/simple;
	bh=3roayg8buVEjdLKPYmZ6HsCIOKDQqHYgVaqusQGO+Rk=;
	h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
	 MIME-Version; b=mbsnJVU19UeLVwOi6D5umNkDqlpHEYs7X6e1xou51GHI4xAsg0/KGIXkcYQIMFr+CqdoyP3IFjqFGtHFlBI0wi3ES6xDdhM7cLRne80twL4CTDq5hBgkifQYO3tQoGITwhtejW82Pzsj0mO78SwxvwcpkAM0tyiA6aIoT5r40qY=
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=TlScgAyF; 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=1791756013;
	bh=uvUyegn7cLkpVngqqoa3IGbBqZM7eb5HFYXevNcnm50=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
	b=TlScgAyFEmwE+L79TkB3/KoEybwGq9K4kirHkXF+FdIOADpx6bi46pSfnaWotER9s
	 kBfPpIJOm1Z6wfvDamFi71CfbUGUKwro3CliMzwpFSezaG+v4fAakSkPEeE1Hsw8AG
	 hry/vP6dfFkjmJG3MCFjAutCN/A51U/ZFKhTXhQrFcFyk3CuG1FzSgPXGFIKTa8Wpg
	 9cZqAWuRwEi4ZzzxYYntUndTZdKFLXn7FWcO/o44BhznVqkq50z2M29Z6PRvxiV4I3
	 hlKYdl1ssl9b4JUxYuGIf0tP6GXunUKN/lRUBJDQK6gqwYzTbxV1ZstM7Mj4H+OY0z
	 LHULtdzJhufNw==
X-Received: from localhost.localdomain (mail-agni [217.70.190.124])
	by mail.netfilter.org (Postfix) with ESMTPSA id E449560074;
	Mon, 12 Oct 2026 00:00:12 +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: <20261011215953.1334630-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>