]> 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)
commit568d511dc22994d3767b11c49e2fa4d31806559d
tree56083e4d8bb240c4947fb6b63f14911e2b7e7d7f
parent75e03bbfefa4987dd6c0350eb1dcb96fdaf45c50
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