summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-02-03 14:58:06 +0300
committerPatrick McHardy <kaber@trash.net>2010-02-03 14:58:06 +0300
commit056ff3e3bd1563969a311697323ff929df94415c (patch)
treeed88f59dc16a5096edea653f178c597bcbbc5caa /tools/perf/scripts/python
parente578756c35859a459d78d8416195bc5f5ff897d0 (diff)
downloadlinux-056ff3e3bd1563969a311697323ff929df94415c.tar.xz
netfilter: nf_conntrack: fix memory corruption with multiple namespaces
As discovered by Jon Masters <jonathan@jonmasters.org>, the "untracked" conntrack, which is located in the data section, might be accidentally freed when a new namespace is instantiated while the untracked conntrack is attached to a skb because the reference count it re-initialized. The best fix would be to use a seperate untracked conntrack per namespace since it includes a namespace pointer. Unfortunately this is not possible without larger changes since the namespace is not easily available everywhere we need it. For now move the untracked conntrack initialization to the init_net setup function to make sure the reference count is not re-initialized and handle cleanup in the init_net cleanup function to make sure namespaces can exit properly while the untracked conntrack is in use in other namespaces. Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions