]> git.baikalelectronics.ru Git - kernel.git/commit
ptrace/powerpc: Don't flush_ptrace_hw_breakpoint() on fork()
authorOleg Nesterov <oleg@redhat.com>
Sun, 21 Apr 2013 06:47:59 +0000 (06:47 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 23 Apr 2013 06:05:06 +0000 (16:05 +1000)
commite831044e068fd547f54c9c4633a06472a1bed819
treeab18538e19ad14fca380a18631ab7417b3fdad4d
parentb233187aedcdae59880d7b57ab2d46d9a37a611d
ptrace/powerpc: Don't flush_ptrace_hw_breakpoint() on fork()

arch_dup_task_struct() does flush_ptrace_hw_breakpoint(src), this
destroys the parent's breakpoints for no reason. We should clear
child->thread.ptrace_bps[] copied by dup_task_struct() instead.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/process.c