🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #5984

Re: linux-next: manual merge of the bluetooth-fixes tree with the net tree

#5984
From: Pablo Neira Ayuso
Date: Wed, 21 Oct 2026 11:55
108 lines
11928 bytes
Hi,

@netdev maintainers: Please, see below.

On Wed, Oct 21, 2026 at 12:01:41PM +0100, Mark Brown wrote:
> Hi all,
> 
> Today's linux-next merge of the bluetooth-fixes tree got a conflict in:
> 
>   net/netfilter/nf_conntrack_netlink.c
> 
> between commit:
> 
>   cd37ab22a74e0 ("netfilter: nf_conntrack_netlink: fix inverted IPv6 tuple filter")
> 
> from the net tree and commit:
> 
>   1ae2d094b0200 ("netfilter: ctnetlink: fix inverted IPv6 address match in dump filter")
> 
> from the bluetooth-fixes tree.
> 
> I fixed it up (see below) and can carry the fix as necessary. This
> is now fixed as far as linux-next is concerned, but any non trivial
> conflicts should be mentioned to your upstream maintainer when your tree
> is submitted for merging.  You may also want to consider cooperating
> with the maintainer of the conflicting tree to minimise any particularly
> complex conflicts.

Sorry for this: This patch is duplicated, one variant went into
net.git and another into net-next.git.

Two possibilities:

- Revert 1ae2d094b020 ("netfilter: ctnetlink: fix inverted IPv6
  address match in dump filter") in net-next.git

or

- Revert cd37ab22a74e ("netfilter: nf_conntrack_netlink: fix inverted
  IPv6 tuple filter")

before net-next.git gets merged into net.git, because these two
patches address the same issue.

Apologies for this.

> diff --combined net/netfilter/nf_conntrack_netlink.c
> index cc8695d5356d2,4b6abe36028e3..0000000000000
> --- a/net/netfilter/nf_conntrack_netlink.c
> +++ b/net/netfilter/nf_conntrack_netlink.c
> @@@ -911,6 -911,7 +911,7 @@@ struct ctnetlink_filter 
>   static const struct nla_policy cta_filter_nla_policy[CTA_FILTER_MAX + 1] = {
>   	[CTA_FILTER_ORIG_FLAGS]		= NLA_POLICY_MASK(NLA_U32, CTA_FILTER_F_ALL),
>   	[CTA_FILTER_REPLY_FLAGS]	= NLA_POLICY_MASK(NLA_U32, CTA_FILTER_F_ALL),
> + 	[CTA_FILTER_ZONE]		= { .type = NLA_FLAG },
>   };
>   
>   static int ctnetlink_parse_filter(const struct nlattr *attr,
> @@@ -930,6 -931,9 +931,9 @@@
>   	if (tb[CTA_FILTER_REPLY_FLAGS])
>   		filter->reply_flags = nla_get_u32(tb[CTA_FILTER_REPLY_FLAGS]);
>   
> + 	if (tb[CTA_FILTER_ZONE])
> + 		filter->zone_filter = true;
> + 
>   	return 0;
>   }
>   
> @@@ -1006,6 -1010,7 +1010,7 @@@ ctnetlink_alloc_filter(const struct nla
>   	if (err)
>   		goto err_filter;
>   
> + 	/* CTA_ZONE is allowed without CTA_FILTER_ZONE. */
>   	if (cda[CTA_ZONE]) {
>   		err = ctnetlink_parse_zone(cda[CTA_ZONE], &filter->zone);
>   		if (err < 0)
> @@@ -1020,6 -1025,12 +1025,12 @@@
>   	if (err < 0)
>   		goto err_filter;
>   
> + 	/* CTA_FILTER_ZONE cannot be set without CTA_ZONE. */
> + 	if (filter->zone_filter && !cda[CTA_ZONE]) {
> + 		err = -EINVAL;
> + 		goto err_filter;
> + 	}
> + 
>   	if (filter->orig_flags) {
>   		if (!cda[CTA_TUPLE_ORIG]) {
>   			err = -EINVAL;
> @@@ -1098,13 -1109,13 +1109,13 @@@ static int ctnetlink_filter_match_tuple
>   		break;
>   	case NFPROTO_IPV6:
>   		if ((flags & CTA_FILTER_FLAG(CTA_IP_SRC)) &&
> - 		    ipv6_addr_cmp(&filter_tuple->src.u3.in6,
> - 				  &ct_tuple->src.u3.in6))
> + 		    !ipv6_addr_equal(&filter_tuple->src.u3.in6,
> + 				     &ct_tuple->src.u3.in6))
>   			return 0;
>   
>   		if ((flags & CTA_FILTER_FLAG(CTA_IP_DST)) &&
> - 		    ipv6_addr_cmp(&filter_tuple->dst.u3.in6,
> - 				  &ct_tuple->dst.u3.in6))
> + 		    !ipv6_addr_equal(&filter_tuple->dst.u3.in6,
> + 				     &ct_tuple->dst.u3.in6))
>   			return 0;
>   		break;
>   	}
Technical Details
Message-ID: <atioPA8ofnC-PCGi@chamomile>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349988-linux-kernel-netdev=dewy.ru
References: <atiblfL12VddJgjU@sirena.co.uk>

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-349988-linux-kernel-netdev=dewy.ru
From: pablo@netfilter.org (Pablo Neira Ayuso)
Newsgroups: linux.kernel.netdev
Subject: Re: linux-next: manual merge of the bluetooth-fixes tree with the
 net tree
Date: Wed, 21 Oct 2026 13:55:40 +0200
Organization: Usenet Network
Message-ID: <atioPA8ofnC-PCGi@chamomile>
References: <atiblfL12VddJgjU@sirena.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Info: usenet.network;
	logging-data="4132169"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:gSsTsh6zWqjb7re5bwgKiK+2Iug= sha256:xyukyqPEYjGRSKZ38tA58mBuYS1B2Y6tS9iptvSFyXk=
	sha1:sSwEqkvYhkr4pljOvk404Pq3nmo= sha256:skxeOVjF4IIsnPoyj9UsEQi5rFQPba/mVOI/IBDJ0g0=
Content-Disposition: inline
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 C90EC110FEB; Wed, 21 Oct 2026 15:04:59 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 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, 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 I4tROkkfjnBi;
	Wed, 21 Oct 2026 15:04:56 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-349988-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 09341110FCE; Wed, 21 Oct 2026 15:04:47 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id DE3B08806D; Wed, 21 Oct 2026 11:56:05 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1792583757;
	b=La8qxVEyJzt41f4fCYoXfmTNiIpQ714nOVvW8Oiu31MtMV/CiTLEjDAkjgtVT3muxyJ4
	 33ogQsKndsU8gCagCxlGtCDYgcUySeZxGpbYhS7yO8V9+DQ3Cqtiu+wDkY/zSrTcXzqme
	 8PbNj6jNiQTYgy14a/VUtHnjT9csu8rr/PNLY8lrtgtQr9vroWRoEkkIlXfMZVt0PsL4m
	 IiFsie1cf/eT5gbkMie0n0tgNJ8Hd5+t3J96OZlbOn+pfjK81WLZjk+sABiXfY2nVVqzN
	 Gvn+6UUaVPjH5dbcwNzg/oJXvEMQQHejauML09uit0p5u49qx7RSekO8p2ZBALYAuFg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792583757;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=ZNdCeQ9XS2Flnfv4lzRM2sIK+csUFPPvzL/2db4vShQ=;
	b=rDXjI9eH4wfY346dDjm6k2vzseHMpFPB522O5SOpWQxW1DnY/uHqHmshQZr+UM28UcY6
	 HV/LNIPhn1E7wR9jK5r2eYVK+aqmsfixPOsAwNyGnUyv64tUj83MPFZv+c2cRcwLUH6a9
	 82AiXIuIIAkS2rsFAb0IT8wQrTs5J7g+Cvopkzrb8fx/e3pf71Ts1zWpu0wFhcbYXFUMR
	 zsiJ+gzPugh+136VzoXlBsgoKTx8Fw4g1iHyGaY4rkcPwCDqbDtw2uv8Z9EHqQmaC0EyY
	 B0GJMDzzjD7+by4iuLG7f2EYtgtf7acOCA6L6O+kH3ygXt5aqaN/hMhhIAQaIo9NqNQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=netfilter.org header.i=@netfilter.org header.a=rsa-sha256 header.s=2025 header.b=Ws2U6S4c;
	dmarc=none header.from=netfilter.org;
	spf=pass smtp.mailfrom=netfilter.org;
	arc=fail smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 86B7A606A321;
	Wed, 21 Oct 2026 11:55:57 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=netfilter.org header.i=@netfilter.org header.a=rsa-sha256 header.s=2025 header.b=Ws2U6S4c
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.70.190.124
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792583746;
	b=K+3Asi/0SYhkvw4QYlhIWM+k8RJP8jbRBhG4fuSecpkkrr9BXgpmDO1SvV02ZCcuCdHy
	 U31VBdzwakJzjliRjqeKuVI4TcTFVBuTw8BBf5IHMCjliY7p6UWloUBPxU18/t861xr7U
	 etEqF7cuLmLpfxgvdfsfFmGPJj1RpFIzBSHSrTDWUAfmng28kVCkgc3qW8NhyQi+H9MJW
	 TMVJN1R6ckFRZoAPEYUXfxB4Wr6Gf+ie9M4wyXdD23VJNLQEz3nv6cggodLDYXmoYzd32
	 KMfhKszxERN8BYTYvsczD4iUIDpoKzfCpa/OmZr+9WBb9j42v/y6sWInVc/wc2aN5Vg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792583746;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To:X-Spam-Status:X-Spam-Checker-Version;
	bh=ZNdCeQ9XS2Flnfv4lzRM2sIK+csUFPPvzL/2db4vShQ=;
	b=0wwIoTTgXFFUThWVU5P/y1xyNXWZUzbpM/owyoOyeDvr3InhmlXfD1DIyc98dmM4gU0G
	 TqA9KtZyglM/FgVp/nYhlpjMAG5ceql+FyJJWShiv8Bf22y6xSDqOi/LfWBnJ+wZFPgLP
	 DKuQxqdHkItwDzTfNtyzsPtz8KU3kgc67fRTL+idVZFtbND2+hM0SwhicybrCVsfTAGUh
	 wwwn2vHIonUnGRoEEz67kfuILNPG8GwXjK5LDy80KRGCE3+RleegntpbPQcX7YyQUqkht
	 /6rHxfTEsBs58KmUBwPMT8a5aiFRNSLGNozZQVBGiWt9MPA0lZO6EMTIr0izVQe55tA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=netfilter.org;
	spf=pass smtp.mailfrom=netfilter.org;
	dkim=pass header.d=netfilter.org header.i=@netfilter.org header.a=rsa-sha256 header.s=2025 header.b=Ws2U6S4c;
	arc=none smtp.remote-ip=217.70.190.124
X-Received: from mail.netfilter.org (mail.netfilter.org [217.70.190.124])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with UTF8SMTPS id 0EC04606A32A;
	Wed, 21 Oct 2026 11:55:44 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0EC04606A32A
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=1792583742;
	bh=ZNdCeQ9XS2Flnfv4lzRM2sIK+csUFPPvzL/2db4vShQ=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To:From;
	b=Ws2U6S4cm6HdM2RjSxhp0xr0WAR/N531fqehEQTWHmclX2acBiwRCFPVhVYrqgSXi
	 E+wcHZnClZ0ICxMpF91GC2a/XBskE9yaBdLjulJI2AJ3nERp+iI2WpXMWLofEOoIXt
	 kmpP6FRF0tTMEskXIGuVS2D6KtcIyxu5oVgmVJ0C2DPK//d06fEQsyvr25bAiI+OvC
	 8hUHuFJNtUTYvUFg2zRY/oZG12pQdl1R4w0AfDa3AvCnanLncuhe5iaepvQW/saEjj
	 3z2g90vPvwu0GZrTp8x7tarbIQjr+Fy9maiDiyVjVODSTHZrr7Ligp6TPndVll0WjB
	 NmtY6lj9eB10g==
X-Received: from netfilter.org (mail-agni [217.70.190.124])
	by mail.netfilter.org (Postfix) with UTF8SMTPSA id 5579360052;
	Wed, 21 Oct 2026 13:55:42 +0200 (CEST)
X-Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
	Marcel Holtmann <marcel@holtmann.org>,
	Johan Hedberg <johan.hedberg@gmail.com>,
	David Miller <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Next Mailing List <linux-next@vger.kernel.org>,
	Liu Chao <liuc63@xiaopeng.com>, Networking <netdev@vger.kernel.org>,
	Paolo Abeni <pabeni@redhat.com>, Piotr Kubik <piotr@kubik.pl>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <atiblfL12VddJgjU@sirena.co.uk>