Skip to content
Commit 28d170ab authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Benjamin Herrenschmidt
Browse files

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: default avatarOleg Nesterov <oleg@redhat.com>
Acked-by: default avatarMichael Neuling <mikey@neuling.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent fcb41a20
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment