Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759209AbZDGGiP (ORCPT ); Tue, 7 Apr 2009 02:38:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758758AbZDGGgw (ORCPT ); Tue, 7 Apr 2009 02:36:52 -0400 Received: from e28smtp01.in.ibm.com ([59.145.155.1]:56092 "EHLO e28smtp01.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758165AbZDGGgv (ORCPT ); Tue, 7 Apr 2009 02:36:51 -0400 Date: Tue, 7 Apr 2009 12:06:20 +0530 From: "K.Prasad" To: Alan Stern Cc: Ingo Molnar , Linux Kernel Mailing List , Andrew Morton , Benjamin Herrenschmidt , Frederic Weisbecker , maneesh@linux.vnet.ibm.com, Roland McGrath , Steven Rostedt , "K.Prasad" Subject: [Patch 07/11] Modify signal handling code to refrain from re-enabling HW Breakpoints Message-ID: <20090407063620.GH17461@in.ibm.com> References: <20090407063058.301701787@prasadkr_t60p.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename=modify_signal_07 User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1329 Lines: 38 From: Alan Stern This patch disables re-enabling of Hardware Breakpoint registers through the signal handling code. This is now done during hw_breakpoint_handler(). Signed-off-by: K.Prasad Signed-off-by: Alan Stern --- arch/x86/kernel/signal.c | 9 --------- 1 file changed, 9 deletions(-) Index: arch/x86/kernel/signal.c =================================================================== --- arch/x86/kernel/signal.c.orig +++ arch/x86/kernel/signal.c @@ -799,15 +799,6 @@ static void do_signal(struct pt_regs *re signr = get_signal_to_deliver(&info, &ka, regs, NULL); if (signr > 0) { - /* - * Re-enable any watchpoints before delivering the - * signal to user space. The processor register will - * have been cleared if the watchpoint triggered - * inside the kernel. - */ - if (current->thread.debugreg7) - set_debugreg(current->thread.debugreg7, 7); - /* Whee! Actually deliver the signal. */ if (handle_signal(signr, &info, &ka, oldset, regs) == 0) { /* -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/