]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: really skip inactive sets when allocating name
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 9 Aug 2022 15:23:53 +0000 (17:23 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 11 Aug 2022 16:53:48 +0000 (18:53 +0200)
commitb08f44f750bfd46fbefec31d79bec925dcdbe678
treea7147cb95cc7ae4519b3a7d3d8caaf9420204bca
parente460eafd9afdcd03e03658f0f4d7b5dcf6e21cd5
netfilter: nf_tables: really skip inactive sets when allocating name

While looping to build the bitmap of used anonymous set names, check the
current set in the iteration, instead of the one that is being created.

Fixes: 326efd7734fb ("netfilter: nf_tables: add generation mask to sets")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c