]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: conntrack: destroy functions need to free queued packets
authorFlorian Westphal <fw@strlen.de>
Tue, 25 Jul 2017 22:02:33 +0000 (00:02 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 31 Jul 2017 17:09:39 +0000 (19:09 +0200)
commitbad7aa87d19c8a0c38036ff0b9b0639335e58ff9
tree54dd9cce351fb40fa4eb95d5d27e60992360c9fe
parent398fcd21a11f4480b155cb5d8ee578c9bb98a784
netfilter: conntrack: destroy functions need to free queued packets

queued skbs might be using conntrack extensions that are being removed,
such as timeout.  This happens for skbs that have a skb->nfct in
unconfirmed state (i.e., not in hash table yet).

This is destructive, but there are only two use cases:
 - module removal (rare)
 - netns cleanup (most likely no conntracks exist, and if they do,
   they are removed anyway later on).

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