]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
netfilter: restart search if moved to other chain
authorFlorian Westphal <fw@strlen.de>
Thu, 25 Aug 2016 13:33:29 +0000 (15:33 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 13 Mar 2018 10:48:42 +0000 (11:48 +0100)
commited5cea4fc82436b45bc9a44d3daff40cb668ccb4
tree901a20048b88ad120b955276c7422737caaeaa5a
parent3c787e5403ef72e14dfd60936da5cb57bd6c17d6
netfilter: restart search if moved to other chain

BugLink: http://bugs.launchpad.net/bugs/1754592
commit 95a8d19f28e6b29377a880c6264391a62e07fccc upstream.

In case nf_conntrack_tuple_taken did not find a conflicting entry
check that all entries in this hash slot were tested and restart
in case an entry was moved to another chain.

Reported-by: Eric Dumazet <edumazet@google.com>
Fixes: ea781f197d6a ("netfilter: nf_conntrack: use SLAB_DESTROY_BY_RCU and get rid of call_rcu()")
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
net/netfilter/nf_conntrack_core.c