]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ecache: document extension area access rules
authorFlorian Westphal <fw@strlen.de>
Sun, 13 Oct 2019 18:19:45 +0000 (20:19 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 17 Oct 2019 09:26:20 +0000 (11:26 +0200)
commitf51f30ae0a5084986e579a5f7617db4adc80a1bf
tree56083e4d8bb240c4947fb6b63f14911e2b7e7d7f
parent971b69cc7fd92c47ac59b195afd3c65c90e401e2
netfilter: ecache: document extension area access rules

Once ct->ext gets free'd via kfree() rather than kfree_rcu we can't
access the extension area anymore without owning the conntrack.

This is a special case:

The worker is walking the pcpu dying list while holding dying list lock:
Neither ct nor ct->ext can be free'd until after the walk has completed.

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