netfilter: nftables: skip hook overlap logic if flowtable is stale
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 17 Mar 2021 20:19:57 +0000 (21:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Apr 2021 11:36:08 +0000 (13:36 +0200)
commit8a57256e0548fee9b9918c5a7bffc8770dcc5afa
tree2140e50ff75f761d48baab39f8162a0894a3f95e
parentb0c795f4cc53dbf7580812bad9db7cb20da8c995
netfilter: nftables: skip hook overlap logic if flowtable is stale

[ Upstream commit 86fe2c19eec4728fd9a42ba18f3b47f0d5f9fd7c ]

If the flowtable has been previously removed in this batch, skip the
hook overlap checks. This fixes spurious EEXIST errors when removing and
adding the flowtable in the same batch.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nf_tables_api.c