From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753866AbaCXS6U (ORCPT ); Mon, 24 Mar 2014 14:58:20 -0400 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.228]:23477 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753552AbaCXS6T (ORCPT ); Mon, 24 Mar 2014 14:58:19 -0400 Date: Mon, 24 Mar 2014 14:58:15 -0400 From: Steven Rostedt To: Masami Hiramatsu Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Andi Kleen , Andi Kleen , Ananth N Mavinakayanahalli , Sandeepa Prabhu , Frederic Weisbecker , x86@kernel.org, fche@redhat.com, mingo@redhat.com, systemtap@sourceware.org, "H. Peter Anvin" , Sasha Levin , Thomas Gleixner , Seiji Aguchi , Andrew Morton Subject: Re: [PATCH -tip v8 08/26] kprobes/x86: Call exception handlers directly from do_int3/do_debug Message-ID: <20140324145815.1de836af@gandalf.local.home> In-Reply-To: <532FF10A.8010502@hitachi.com> References: <20140305115843.22766.8355.stgit@ltc230.yrl.intra.hitachi.co.jp> <20140305115939.22766.21199.stgit@ltc230.yrl.intra.hitachi.co.jp> <20140321210508.358c30ee@gandalf.local.home> <532FF10A.8010502@hitachi.com> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.118:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 24 Mar 2014 17:47:06 +0900 Masami Hiramatsu wrote: > >> @@ -857,7 +857,7 @@ no_change: > >> * Interrupts are disabled on entry as trap1 is an interrupt gate and they > >> * remain disabled throughout this function. > >> */ > >> -static int __kprobes post_kprobe_handler(struct pt_regs *regs) > >> +int __kprobes kprobe_debug_handler(struct pt_regs *regs) > >> - break; > >> - case DIE_DEBUG: > >> - if (post_kprobe_handler(args->regs)) { > > > > The DIE_DEBUG case is removed but not added anyplace else. The change > > log doesn't say why this was removed. > > As you can see the above hunk, post_kprobe_handler() is now renamed > as kprobe_debug_handler() which is called from do_debug() directly. > > What I meant in the patch comment; > > >> To avoid a kernel crash by probing on lockdep code, call > >> kprobe_int3_handler and kprobe_debug_handler directly > >> from do_int3 and do_debug. > > was actually pointing that change... > I missed the rename of post_kprobe_handler(). Reviewed-by: Steven Rostedt -- Steve