]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: GC transaction race with abort path
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 22 Sep 2023 16:30:21 +0000 (18:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 12:56:34 +0000 (14:56 +0200)
commit5d319f7a81431c6bb32eb4dc7d7975f99e2c8c66
treed1a90d206e1aa890a9b5a7425a71000ef6cd7a38
parentafa584c35065051a11ae3ea3cc105b634053fcd8
netfilter: nf_tables: GC transaction race with abort path

commit 720344340fb9be2765bbaab7b292ece0a4570eae upstream.

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: Sasha Levin <sashal@kernel.org>
net/netfilter/nf_tables_api.c