From: Florian Westphal <fw@strlen.de>
To: Jindrich Makovicka <makovick@gmail.com>
Cc: Thorsten Leemhuis <regressions@leemhuis.info>,
Genes Lists <lists@sapience.com>,
Greg KH <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org, coreteam@netfilter.org,
netfilter-devel@vger.kernel.org,
Pablo Neira Ayuso <pablo@netfilter.org>,
stable@vger.kernel.org, regressions@lists.linux.dev,
"Kris Karas (Bug Reporting)" <bugs-a21@moonlit-rail.com>
Subject: Re: [REGRESSION] 6.19.4 stable netfilter / nftables [resolved]
Date: Tue, 3 Mar 2026 19:44:54 +0100 [thread overview]
Message-ID: <aacsJnLwaAuKZIrf@strlen.de> (raw)
In-Reply-To: <ce07b65b86473acac101c4854f6201d05597d48c.camel@gmail.com>
Jindrich Makovicka <makovick@gmail.com> wrote:
> > > commit 12b1681793e9b7552495290785a3570c539f409d
> > > Author: Pablo Neira Ayuso <pablo@netfilter.org>
> > > Date: Fri Feb 6 13:33:46 2026 +0100
> > >
> > > netfilter: nft_set_rbtree: validate open interval overlap
> > >
> > > Example set definition is here:
> > >
> > > https://bugzilla.kernel.org/show_bug.cgi?id=221158
> >
> > Does that problem happen with 7.0-rc2 as well? This is important to
> > know
> > to determine if this is a general problem or a backporting problem.
> >
>
> Yes, the same problem shows up with 7.0-rc2. I updated the bugzilla
> attachment to reproduce the bug just by feeding it to nft,
>
> # uname -a
> Linux holly 7.0.0-rc2 #25 SMP PREEMPT_DYNAMIC Tue Mar 3 18:17:21 CET
> 2026 x86_64 GNU/Linux
> # nft -f test-full.nft
> test-full.nft:1643:1-25: Error: Could not process rule: File exists
> 12.14.179.24-12.14.179.31,
> ^^^^^^^^^^^^^^^^^^^^^^^^^
Pablo, it looks like the is a discrepancy between the comment and the
code. Comment talks about 'open interval', but it checks that some
start interval was found instead of checking that the OPEN_INTERVAL
bit is raised:
diff --git a/net/netfilter/nft_set_rbtree.c b/net/netfilter/nft_set_rbtree.c
--- a/net/netfilter/nft_set_rbtree.c
+++ b/net/netfilter/nft_set_rbtree.c
@@ -556,7 +556,8 @@ static int __nft_rbtree_insert(const struct net *net, const struct nft_set *set,
/* - start element overlaps an open interval but end element is new:
* partial overlap, reported as -ENOEMPTY.
*/
- if (!rbe_ge && priv->start_rbe_cookie && nft_rbtree_interval_end(new))
+ if (!rbe_ge && priv->start_rbe_cookie & NFT_RBTREE_OPEN_INTERVAL &&
+ nft_rbtree_interval_end(new))
return -ENOTEMPTY;
Does that look correct to you?
next prev parent reply other threads:[~2026-03-03 18:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-27 3:46 [REGRESSION] 6.19.4 stable netfilter / nftables Genes Lists
2026-02-27 8:00 ` Thorsten Leemhuis
2026-02-27 8:13 ` Florian Westphal
2026-02-27 18:58 ` [REGRESSION] 6.19.4 stable netfilter / nftables -> resolved Genes Lists
2026-02-27 12:23 ` [REGRESSION] 6.19.4 stable netfilter / nftables Genes Lists
2026-02-27 13:12 ` [REGRESSION] 6.19.4 stable netfilter / nftables [resolved] Genes Lists
2026-02-27 13:17 ` Greg KH
2026-02-27 13:39 ` Genes Lists
2026-03-03 7:00 ` Jindrich Makovicka
2026-03-03 7:31 ` Thorsten Leemhuis
2026-03-03 17:32 ` Jindrich Makovicka
2026-03-03 18:44 ` Florian Westphal [this message]
2026-03-03 22:03 ` Pablo Neira Ayuso
2026-03-04 5:50 ` Thorsten Leemhuis
2026-03-04 11:09 ` Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aacsJnLwaAuKZIrf@strlen.de \
--to=fw@strlen.de \
--cc=bugs-a21@moonlit-rail.com \
--cc=coreteam@netfilter.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lists@sapience.com \
--cc=makovick@gmail.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
--cc=regressions@leemhuis.info \
--cc=regressions@lists.linux.dev \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox