linux/include
Markus Metzger 9f339e7028 x86, ptrace, mm: fix double-free on race
Ptrace_detach() races with __ptrace_unlink() if the traced task is
reaped while detaching. This might cause a double-free of the BTS
buffer.

Change the ptrace_detach() path to only do the memory accounting in
ptrace_bts_detach() and leave the buffer free to ptrace_bts_untrace()
which will be called from __ptrace_unlink().

The fix follows a proposal from Oleg Nesterov.

Reported-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-02-11 15:44:20 +01:00
..
acpi
asm-arm
asm-frv
asm-generic
asm-h8300
asm-m32r
asm-mn10300
crypto
drm
keys
linux x86, ptrace, mm: fix double-free on race 2009-02-11 15:44:20 +01:00
math-emu
media Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 2009-02-02 19:26:06 -08:00
mtd headers_check fix: mtd/inftl-user.h 2009-01-31 00:13:34 +05:30
net
pcmcia
rdma
rxrpc
scsi
sound headers_check fix: sound/hdsp.h 2009-01-31 00:13:56 +05:30
trace
video headers_check fix: video/uvesafb.h 2009-01-31 00:14:52 +05:30
xen
Kbuild