From: Patrick McHardy Date: Mon, 24 Nov 2008 23:56:17 +0000 (-0800) Subject: netfilter: ctnetlink: fix conntrack creation race X-Git-Tag: v2.6.28-rc8~73^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b54ad409fd09a395b839fb81f300880d76861c0e;p=pandora-kernel.git netfilter: ctnetlink: fix conntrack creation race Conntrack creation through ctnetlink has two races: - the timer may expire and free the conntrack concurrently, causing an invalid memory access when attempting to put it in the hash tables - an identical conntrack entry may be created in the packet processing path in the time between the lookup and hash insertion Hold the conntrack lock between the lookup and insertion to avoid this. Reported-by: Zoltan Borbely Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed