diff options
author | Phil Sutter <phil@nwl.cc> | 2023-10-19 16:03:36 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-10-24 13:16:29 +0200 |
commit | 3cb03edb4de33fd04c4ea55f47397b96a8657c53 (patch) | |
tree | c82f45e2442d232d6d0349df570e5d08b7ad72d2 /net/unix/garbage.c | |
parent | 1578c32877191815f631af32ba5dfc1f1b20c1b4 (diff) |
netfilter: nf_tables: Add locking for NFT_MSG_GETRULE_RESET requests
Rule reset is not concurrency-safe per-se, so multiple CPUs may reset
the same rule at the same time. At least counter and quota expressions
will suffer from value underruns in this case.
Prevent this by introducing dedicated locking callbacks for nfnetlink
and the asynchronous dump handling to serialize access.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions