aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-02-08 11:35:23 -0500
committerPatrick McHardy <kaber@trash.net>2010-02-08 11:35:23 -0500
commit9ab48ddcb144fdee908708669448dd136cf4894a (patch)
tree17553fbd8a4ed0a6ab60607473807ee088639819 /net/lapb
parentdab1531a07ad7c5be4ebe715a3d08742f0c638e3 (diff)
netfilter: nf_conntrack: fix hash resizing with namespaces
As noticed by Jon Masters <jonathan@jonmasters.org>, the conntrack hash size is global and not per namespace, but modifiable at runtime through /sys/module/nf_conntrack/hashsize. Changing the hash size will only resize the hash in the current namespace however, so other namespaces will use an invalid hash size. This can cause crashes when enlarging the hashsize, or false negative lookups when shrinking it. Move the hash size into the per-namespace data and only use the global hash size to initialize the per-namespace value when instanciating a new namespace. Additionally restrict hash resizing to init_net for now as other namespaces are not handled currently. Cc: stable@kernel.org Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions