Re: [PATCH RFC nf-next 11/12] netfilter: ipset: remove last region lock usage
Florian Westphal <[email protected]> Thu, 16 Jul 2026 16:52:53 +0200
| Newsgroups | gmane.comp.security.firewalls.netfilter.devel |
|---|---|
| Message-ID | <[email protected]> |
Jozsef Kadlecsik <[email protected]> wrote: > The comment string is kept in struct ip_set_comment_rcu. The whole mess > about the extension was due to resize copying the pointer of the wrapper > struct ip_set_comment while ongoing gc could happen. However resize is gone > now. Re-add from userspace can change the comment string but it can nicely > be handled with rcu. So as far as I see ext_size remains to be solved and > the hash types could remain lockless. Great, thanks Jozsef. So plan is to make it atomic64_t (which obsoletes the _slow()) functions added here) which also avoids set->lock for hash add/del.