]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Jan 2019 09:28:55 +0000 (09:28 +0000)
commitaa06e0cac8297fa9c63eb7bbdabedb46b229c583
treef42a523bf377d6b72fc77ec14b3de88bac73011c
parent0cd81b95ce9e11c0604bbc70881a9d43380c9c3f
netfilter: nf_tables: bogus EBUSY in chain deletions

BugLink: http://bugs.launchpad.net/bugs/1808185
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c
net/netfilter/nft_immediate.c