]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netfilter: nfnetlink_cthelper: use {READ,WRITE}_ONCE for accessing helper flags
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 26 May 2026 16:40:44 +0000 (18:40 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 5 Jun 2026 11:11:54 +0000 (13:11 +0200)
commitf8bf5edf7157984bb8e288c8b04fdb041223b80c
tree6d5ca83a7f2276aaba0678971956ac5634d412d0
parenta625c94144c9b66d32e1f374f909f38db46161c1
netfilter: nfnetlink_cthelper: use {READ,WRITE}_ONCE for accessing helper flags

Conntrack helper flags are accessed from packet and netlink dump path.
Concurrent update of userspace helper flags is not possible, because the
nfnl_mutex in held on updates. These flags are only used by userspace
helpers. Use {READ,WRITE}_ONCE() to access this flags from lockless
paths.

Fixes: 12f7a505331e ("netfilter: add user-space connection tracking helper infrastructure")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_core.c
net/netfilter/nfnetlink_cthelper.c