netfilter: conntrack: restart iteration on resize
authorFlorian Westphal <fw@strlen.de>
Sun, 21 May 2017 10:52:58 +0000 (12:52 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 29 May 2017 10:46:11 +0000 (12:46 +0200)
commit0d02d5646eb84403766a11a1d3b19e670a3d45d5
tree65216eda295cf6a68a42830bb3b931b1a3aae506
parent2843fb69980b84dfa939733c91dceae533aa89e9
netfilter: conntrack: restart iteration on resize

We could some conntracks when a resize occurs in parallel.

Avoid this by sampling generation seqcnt and doing a restart if needed.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_core.c