From: Jozsef Kadlecsik <kadlec@netfilter.org>
To: Florian Westphal <fw@strlen.de>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nf 0/5] netfilter: ipset fixes and rhastable prep work
Date: Mon, 3 Aug 2026 10:34:54 +0200 (CEST) [thread overview]
Message-ID: <e7c0f855-d6bd-ce82-b223-786ed42853b7@netfilter.org> (raw)
In-Reply-To: <amusRhSn19YQzmQe@strlen.de>
Hi Florian,
On Thu, 30 Jul 2026, Florian Westphal wrote:
> https://sashiko.dev/#/patchset/20260730183853.21868-1-fw%40strlen.de
>
> 'This is a pre-existing issue, but does asynchronous element destruction
> in list_set_flush() race with this synchronous zeroing of set->ext_size,
> causing an integer underflow?
>
> If a user flushes a list:set ipset, list_set_flush() forces the counter to 0
> here. The elements are queued for asynchronous deletion via call_rcu() inside
> list_set_del().'
>
> I will have another look at this to see if thats correct, in any case
> this should be handled in a different change.
I should have left out the call to atomic64_set(&set->ext_size, 0) in
list_set_flush() and let the list_set_del() calls adjust the ext_size
value. What do you thing, would it solve the issue?
Best regards,
Jozsef
--
E-mail : kadlec@netfilter.org, kadlec@blackhole.kfki.hu, kadlecsik.jozsef@wigner.hu
Address: Wigner Research Centre for Physics
H-1525 Budapest 114, POB. 49, Hungary
next prev parent reply other threads:[~2026-08-03 8:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-30 18:38 [PATCH nf 0/5] netfilter: ipset fixes and rhastable prep work Florian Westphal
2026-07-30 18:38 ` [PATCH nf 1/5] netfilter: ipset: rework cidr bookkeeping Florian Westphal
2026-07-30 18:38 ` [PATCH nf 2/5] netfilter: ipset: switch ext_size to atomic64_t Florian Westphal
2026-07-30 18:38 ` [PATCH nf 3/5] netfilter: ipset: add small wrappers for hash and bucket sizes Florian Westphal
2026-07-30 18:38 ` [PATCH nf 4/5] netfilter: ipset: add and use mtype_del_cidr_all helper Florian Westphal
2026-07-30 18:38 ` [PATCH nf 5/5] netfilter: ipset: switch to rcu work Florian Westphal
2026-07-30 19:55 ` [PATCH nf 0/5] netfilter: ipset fixes and rhastable prep work Florian Westphal
2026-08-03 8:34 ` Jozsef Kadlecsik [this message]
2026-08-03 8:55 ` Florian Westphal
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=e7c0f855-d6bd-ce82-b223-786ed42853b7@netfilter.org \
--to=kadlec@netfilter.org \
--cc=fw@strlen.de \
--cc=netfilter-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.