netfilter: nf_tables: use correct lock to protect gc_list
authorSasha Levin <sashal@kernel.org>
Fri, 22 Sep 2023 17:01:12 +0000 (19:01 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 29 Sep 2023 04:25:15 +0000 (05:25 +0100)
commit42dc3569d3c61812f370ec58ed4a75e1262ec2a4
treedef25c90a6dd91e93c79009598c6c5ff2f3c4857
parentfedec11c2cd19f5361c7e59bbbdf518a50799fb5
netfilter: nf_tables: use correct lock to protect gc_list

commit 8357bc946a2abc2a10ca40e5a2105d2b4c57515e upstream.

Use nf_tables_gc_list_lock spinlock, not nf_tables_destroy_list_lock to
protect the gc_list.

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: Sasha Levin <sashal@kernel.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name netfilter-nf_tables-use-correct-lock-to-protect-gc_l.patch
net/netfilter/nf_tables_api.c