netfilter: cttimeout: decouple unlink and free on netns destruction
authorFlorian Westphal <fw@strlen.de>
Mon, 11 Apr 2022 11:01:22 +0000 (13:01 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 13 May 2022 16:52:16 +0000 (18:52 +0200)
commit42df4fb9b1bed6a6d2c1f79b974a9ed14de27ea1
treed471d5f4d86276156913e524b14124f9c46a7da8
parentc56716c69ce1ac320432fb1ea5654196ba24d2f8
netfilter: cttimeout: decouple unlink and free on netns destruction

Increment the extid on module removal; this makes sure that even
in extreme cases any old uncofirmed entry that happened to be kept
e.g. on nfnetlink_queue list will not trip over a stale timeout
reference.

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