aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-02-04 08:54:05 -0500
committerPatrick McHardy <kaber@trash.net>2010-02-04 08:56:50 -0500
commitab59b19be78aac65cdd599fb5002c9019885e061 (patch)
tree4a299d95e2a3f16e5a57a15bf1db832aa420f6aa /net/lapb
parent056ff3e3bd1563969a311697323ff929df94415c (diff)
netfilter: nf_conntrack: per netns nf_conntrack_cachep
nf_conntrack_cachep is currently shared by all netns instances, but because of SLAB_DESTROY_BY_RCU special semantics, this is wrong. If we use a shared slab cache, one object can instantly flight between one hash table (netns ONE) to another one (netns TWO), and concurrent reader (doing a lookup in netns ONE, 'finding' an object of netns TWO) can be fooled without notice, because no RCU grace period has to be observed between object freeing and its reuse. We dont have this problem with UDP/TCP slab caches because TCP/UDP hashtables are global to the machine (and each object has a pointer to its netns). If we use per netns conntrack hash tables, we also *must* use per netns conntrack slab caches, to guarantee an object can not escape from one namespace to another one. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> [Patrick: added unique slab name allocation] Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions