Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932253AbYCSXV2 (ORCPT ); Wed, 19 Mar 2008 19:21:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933905AbYCSVtj (ORCPT ); Wed, 19 Mar 2008 17:49:39 -0400 Received: from mx1.redhat.com ([66.187.233.31]:41458 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938806AbYCSVti (ORCPT ); Wed, 19 Mar 2008 17:49:38 -0400 Message-ID: <47DFDF1E.7000600@redhat.com> Date: Tue, 18 Mar 2008 11:26:22 -0400 From: Masami Hiramatsu User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: Yakov Lerner CC: prasanna@in.ibm.com, ananth@in.ibm.com, anil.s.keshavamurthy@intel.com, davem@davemloft.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kprobes: correct regs->ip value in post_hander() References: <1205850409-12914-1-git-send-email-iler.ml@gmail.com> In-Reply-To: <1205850409-12914-1-git-send-email-iler.ml@gmail.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1153 Lines: 35 Yakov Lerner wrote: > From: "Yakov Lerner" > > This patch corrects the value of regs->ip in post_handler(). Prior to > this patch, post_handler() was given address meaningless to the user in > regs->ip. The expected value is address of the next instruction to be > executed after kprobed instruction. This patch simply swaps the order of > post_handler() and resume_execution(). post_handler() now sees the > corrected, expected value in regs->ip. post_handler() is now called after > after resume_execution(), not before. > > Only x86 platform was tested. Arm arch needs no changes. > > Signed-off-by: Yakov Lerner Thank you, I tested this on x86-64/x86/ia64. Acked-by: Masami Hiramatsu -- Masami Hiramatsu Software Engineer Hitachi Computer Products (America) Inc. Software Solutions Division e-mail: mhiramat@redhat.com -- 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/