summaryrefslogtreecommitdiffstats
path: root/lib/genalloc.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-11-24 15:56:17 -0800
committerDavid S. Miller <davem@davemloft.net>2008-11-24 15:56:17 -0800
commitb54ad409fd09a395b839fb81f300880d76861c0e (patch)
tree580b23b89c04c85ad9795b37f81174e1bbb5311b /lib/genalloc.c
parent5147d14e995c097571d383fe1287fb33345a51ee (diff)
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 <bozo@andrews.hu> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/genalloc.c')
0 files changed, 0 insertions, 0 deletions