netfilter: nf_tables: add NFT_TRANS_PREPARE_ERROR to deal with bound set/chain
stable inclusion from stable-v5.10.188 commit 34d09fe49f59d3d7cb79ace1785b138b3b8d9e52 bugzilla: https://gitee.com/openeuler/kernel/issues/I86JB6 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=34d09fe49f59d3d7cb79ace1785b138b3b8d9e52 -------------------------------- [ Upstream commit 26b5a571 ] Add a new state to deal with rule expressions deactivation from the newrule error path, otherwise the anonymous set remains in the list in inactive state for the next generation. Mark the set/chain transaction as unbound so the abort path releases this object, set it as inactive in the next generation so it is not reachable anymore from this transaction and reference counter is dropped. Fixes: 1240eb93 ("netfilter: nf_tables: incorrect error path handling with NFT_MSG_NEWRULE") Signed-off-by:Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Lu Wei <luwei32@huawei.com>
Loading
Please sign in to comment