Messages in this thread | | | Date | Tue, 12 Apr 2011 01:28:19 +0900 | From | Paul Mundt <> | Subject | Re: [PATCH 5/5] sh, hw_breakpoints: Fix racy access to ptrace breakpoints |
| |
On Fri, Apr 08, 2011 at 07:34:27PM +0200, Frederic Weisbecker wrote: > While the tracer accesses ptrace breakpoints, the child task may > concurrently exit due to a SIGKILL and thus release its breakpoints > at the same time. We can then dereference some freed pointers. > > To fix this, hold a reference on the child breakpoints before > manipulating them. > > Reported-by: Oleg Nesterov <oleg@redhat.com> > Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> > Cc: Ingo Molnar <mingo@elte.hu> > Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> > Cc: Will Deacon <will.deacon@arm.com> > Cc: Prasad <prasad@linux.vnet.ibm.com> > Cc: Paul Mundt <lethal@linux-sh.org>
Acked-by: Paul Mundt <lethal@linux-sh.org>
| |