netfilter: nf_tables: GC transaction race with abort path
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 17 Aug 2023 23:13:52 +0000 (01:13 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 23 Aug 2023 14:10:01 +0000 (16:10 +0200)
commit720344340fb9be2765bbaab7b292ece0a4570eae
tree304c4725b51056a3ebfb28ff5759ec88da2f25fc
parent2c9f0293280e258606e54ed2b96fa71498432eae
netfilter: nf_tables: GC transaction race with abort path

Abort path is missing a synchronization point with GC transactions. Add
GC sequence number hence any GC transaction losing race will be
discarded.

Fixes: 5f68718b34a5 ("netfilter: nf_tables: GC transaction API to avoid race with control plane")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nf_tables_api.c