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