aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2013-07-08 19:00:51 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-09 13:33:25 -0400
commit6af9df7f5ba35806a5919d3a36d95fd40e210b89 (patch)
treecbcb2761b2579b984113f1e3950eab70bb6191be /arch/arm
parent6961ed96f14463d7c6e38d8c2093f5d53bd70574 (diff)
ptrace/arm: revert "hw_breakpoints: Fix racy access to ptrace breakpoints"
This reverts commit bf0b8f4b55e5 ("hw_breakpoints: Fix racy access to ptrace breakpoints"). The patch was fine but we can no longer race with SIGKILL after commit 9899d11f6544 ("ptrace: ensure arch_ptrace/ptrace_request can never race with SIGKILL"), the __TASK_TRACED tracee can't be woken up and ->ptrace_bps[] can't go away. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Will Deacon <will.deacon@arm.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jan Kratochvil <jan.kratochvil@redhat.com> Cc: Michael Neuling <mikey@neuling.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Paul Mundt <lethal@linux-sh.org> Cc: Prasad <prasad@linux.vnet.ibm.com> Cc: Russell King <linux@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/kernel/ptrace.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c
index 2bc1514d6dbe..0dd3b79b15c3 100644
--- a/arch/arm/kernel/ptrace.c
+++ b/arch/arm/kernel/ptrace.c
@@ -886,20 +886,12 @@ long arch_ptrace(struct task_struct *child, long request,
886 886
887#ifdef CONFIG_HAVE_HW_BREAKPOINT 887#ifdef CONFIG_HAVE_HW_BREAKPOINT
888 case PTRACE_GETHBPREGS: 888 case PTRACE_GETHBPREGS:
889 if (ptrace_get_breakpoints(child) < 0)
890 return -ESRCH;
891
892 ret = ptrace_gethbpregs(child, addr, 889 ret = ptrace_gethbpregs(child, addr,
893 (unsigned long __user *)data); 890 (unsigned long __user *)data);
894 ptrace_put_breakpoints(child);
895 break; 891 break;
896 case PTRACE_SETHBPREGS: 892 case PTRACE_SETHBPREGS:
897 if (ptrace_get_breakpoints(child) < 0)
898 return -ESRCH;
899
900 ret = ptrace_sethbpregs(child, addr, 893 ret = ptrace_sethbpregs(child, addr,
901 (unsigned long __user *)data); 894 (unsigned long __user *)data);
902 ptrace_put_breakpoints(child);
903 break; 895 break;
904#endif 896#endif
905 897