OSDN Git Service

netfilter: conntrack: fix removal of conntrack entries when l4tracker is removed
authorFlorian Westphal <fw@strlen.de>
Thu, 2 Aug 2018 10:30:09 +0000 (12:30 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 16 Aug 2018 17:37:04 +0000 (19:37 +0200)
commit1c117d3b721a2678020d522ff1bf33984d4f0a5a
tree393fa09a994a917624df36ac6a6ee9c63a066a1e
parent6a48de0144767f2c6880540c0a4ac6741e3c440b
netfilter: conntrack: fix removal of conntrack entries when l4tracker is removed

nf_ct_l4proto_unregister_one() leaves conntracks added by
to-be-removed tracker behind, nf_ct_l4proto_unregister has to iterate
for each protocol to be removed.

v2: call nf_ct_iterate_destroy without holding nf_ct_proto_mutex.

Fixes: 2c41f33c1b703 ("netfilter: move table iteration out of netns exit paths")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_proto.c