1
0
Fork 0
alistair23-linux/arch/i386/oprofile
Chris Wright 0939c17c7b x86: fix oprofile double free
Chuck reports that the recent fix from Andi to oprofile
6c977aad03 introduces a double free.  Each
cpu's cpu_msrs is setup to point to cpu 0's, which causes free_msrs to free
cpu 0's pointers for_each_possible_cpu.  Rather than copy the pointers, do
a deep copy instead.

[acme@redhat.com: allocate_msrs() was using for_each_online_cpu()]
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Cc: Andi Kleen <ak@suse.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Dave Jones <davej@redhat.com>
Cc: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-06-01 08:18:28 -07:00
..
Kconfig [PATCH] Move Kprobes and Oprofile to "Instrumentation Support" menu 2005-11-07 07:53:35 -08:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
backtrace.c [PATCH] x86: fix oprofile kernel callgraph regression 2006-02-14 08:25:29 -08:00
init.c [PATCH] Fix function/macro name collision on i386 oprofile 2005-09-07 16:57:29 -07:00
nmi_int.c x86: fix oprofile double free 2007-06-01 08:18:28 -07:00
nmi_timer_int.c move die notifier handling to common code 2007-05-08 11:15:04 -07:00
op_counter.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
op_model_athlon.c [PATCH] i386: Utilize performance counter reservation framework in oprofile 2006-09-26 10:52:26 +02:00
op_model_p4.c [PATCH] i386: Utilize performance counter reservation framework in oprofile 2006-09-26 10:52:26 +02:00
op_model_ppro.c [PATCH] i386: Handle 32 bit PerfMon Counter writes cleanly in oprofile 2007-02-13 13:26:23 +01:00
op_x86_model.h [PATCH] i386: Utilize performance counter reservation framework in oprofile 2006-09-26 10:52:26 +02:00