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-07-26 12:00:12 -07:00
2009-01-06 17:10:04 -08:00
2009-01-06 15:59:10 -08:00
2008-12-29 08:29:52 +01:00
2008-04-28 08:58:20 -07:00
2009-01-14 14:15:18 +01:00
2008-12-29 11:27:46 +02:00
2009-01-06 15:59:07 -08:00
2009-01-14 14:15:18 +01:00
2009-01-14 14:15:23 +01:00
2008-08-15 17:22:57 +02:00
2009-01-06 15:59:10 -08:00
2009-01-06 15:59:08 -08:00
2009-01-06 15:59:14 -08:00
2008-04-17 20:05:39 +02:00
2009-01-14 14:15:24 +01:00
2009-01-06 15:59:08 -08:00
2009-01-29 18:04:44 -08:00
2009-01-06 15:59:01 -08:00
2009-01-13 19:13:01 +01:00
2009-01-14 14:15:30 +01:00
2007-10-20 01:27:18 +02:00
2009-01-14 14:15:30 +01:00
2009-01-14 14:15:24 +01:00
2009-02-11 15:44:20 +01:00
2008-08-20 15:40:30 -07:00
2009-01-31 15:08:56 -08:00
2008-07-28 16:30:21 -07:00
2008-09-13 14:41:52 -07:00
2009-01-14 14:15:23 +01:00
2009-01-14 14:15:23 +01:00
2009-01-14 14:15:23 +01:00
2009-01-27 16:42:03 +10:00
2009-01-08 08:31:09 -08:00
2009-01-08 08:31:07 -08:00
2009-01-08 08:31:05 -08:00
2009-01-06 15:59:03 -08:00
2008-11-06 15:41:19 -08:00
2009-01-06 15:59:03 -08:00
2008-06-12 18:05:41 -07:00
2009-01-01 10:12:29 +10:30
2007-10-20 01:27:18 +02:00
2008-09-02 19:21:38 -07:00
2008-10-20 08:50:25 -07:00
2009-01-06 15:59:07 -08:00
2008-07-26 20:53:14 -04:00
2009-01-31 15:08:56 -08:00
2009-01-01 10:12:29 +10:30
2008-12-15 16:27:06 -08:00
2009-01-28 10:43:42 +02:00
2008-11-06 15:41:19 -08:00
2008-11-30 10:03:35 -08:00
2009-01-08 08:31:05 -08:00
2009-01-08 08:31:08 -08:00
2009-01-29 18:04:43 -08:00
2007-05-11 08:29:32 -07:00
2008-10-20 08:52:31 -07:00
2008-08-12 17:52:53 +10:00
2009-01-15 16:39:40 -08:00
2009-01-08 08:31:09 -08:00
2009-01-01 10:12:29 +10:30