From 28d170abad3d6dfbe7309c0097d7de8a51c6b779 Mon Sep 17 00:00:00 2001 From: Oleg Nesterov Date: Sun, 21 Apr 2013 06:47:59 +0000 Subject: [PATCH] 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 Acked-by: Michael Neuling Signed-off-by: Benjamin Herrenschmidt --- Reading git-format-patch failed