]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:18:29 +0000 (11:18 +0200)
commitc6a6e16bff302b8b61d6edb39766b21b5a06402b
treef585466d50ddc049f83f06f2d098b91228a8ed4e
parent3bdff3e14308f3ea406d215afe7de034c550e92b
netfilter: nf_tables: really skip inactive sets when allocating name

commit d35141763b44935e7dd0c592c7532d18be2c7e2e upstream.

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: 0ae6e5fff9b7 ("netfilter: nf_tables: add generation mask to sets")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nf_tables_api.c