Files
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
..
2008-12-25 11:05:13 +11:00
2008-11-14 10:39:13 +11:00
2008-10-22 22:09:59 -07:00
2009-01-31 00:13:34 +05:30
2008-08-31 16:00:42 +02:00
2009-01-31 00:13:56 +05:30
2009-01-31 00:14:52 +05:30