netfilter: nf_tables: bogus EBUSY in chain deletions
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 8 May 2018 00:43:57 +0000 (02:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Jul 2018 13:30:49 +0000 (15:30 +0200)
commit2b93cb2861dedfc43d7eb82c37c4eafbc385fef8
tree28094cc4d5a75c572cc45015814bfd0b19472e8f
parent4ae6a7afae5362289cc99aa80f7d6229521888c3
netfilter: nf_tables: bogus EBUSY in chain deletions

commit bb7b40aecbf778c0c83a5bd62b0f03ca9f49a618 upstream.

When removing a rule that jumps to chain and such chain in the same
batch, this bogusly hits EBUSY. Add activate and deactivate operations
to expression that can be called from the preparation and the
commit/abort phases.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c
net/netfilter/nft_immediate.c