OSDN Git Service

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)
commit63f55acf7b479250b7b0293333c3d94e05cb3f6f
tree56083e4d8bb240c4947fb6b63f14911e2b7e7d7f
parentf8615bf8a3dabd84bf844c6f888929495039d389
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