From: Qing Lee <l.qing95@gmail.com>
To: netdev-bot+sinfo@kernel.org
Cc: Pablo Neira Ayuso <pablo@netfilter.org>,
Florian Westphal <fw@strlen.de>, Phil Sutter <phil@nwl.cc>,
netfilter-devel@vger.kernel.org, coreteam@netfilter.org,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH nf] netfilter: ipset: do not exceed maxelem when reusing a deleted slot
Date: Fri, 4 Dec 2026 17:04:22 +0100 [thread overview]
Message-ID: <20261204160422.181200-1-l.qing95@gmail.com> (raw)
In-Reply-To: <179639924046.3305.14799040042850658552@kernel.org>
Hi,
This bug was observed during real-world testing on an embedded Linux 6.18
system running an iptables rule with a hash:ip ipset configured with a
small maxelem (5) and a timeout.
After a previously inserted entry expired/was removed from a bucket and
5 other IPs subsequently filled the set to maxelem, inserting another IP
that hashed into the bucket with the deleted slot succeeded, resulting in
`ipset list` reporting 6 entries with `maxelem 5`.
From there, I traced the issue to mtype_add() in
net/netfilter/ipset/ip_set_hash_gen.h, verified it is still present in
nf.git, and compile-tested the patch with W=1.
Thanks,
Qing
prev parent reply other threads:[~2026-12-04 16:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 15:43 [PATCH nf] netfilter: ipset: do not exceed maxelem when reusing a deleted slot Qing Lee
2026-12-04 15:47 ` netdev-bot+sinfo
2026-12-04 16:04 ` Qing Lee [this message]
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=20261204160422.181200-1-l.qing95@gmail.com \
--to=l.qing95@gmail.com \
--cc=coreteam@netfilter.org \
--cc=fw@strlen.de \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev-bot+sinfo@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
--cc=phil@nwl.cc \
/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