All of lore.kernel.org
 help / color / mirror / Atom feed
From: Catalin Marinas <catalin.marinas@arm.com>
To: William Cohen <wcohen@redhat.com>
Cc: David Long <dave.long@linaro.org>,
	"Jon Medhurst (Tixy)" <tixy@linaro.org>,
	Steve Capper <steve.capper@linaro.org>,
	Ananth N Mavinakayanahalli <ananth@in.ibm.com>,
	Will Deacon <will.deacon@arm.com>,
	linux-kernel@vger.kernel.org,
	Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>,
	Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>,
	sandeepa.s.prabhu@gmail.com,
	Russell King <linux@arm.linux.org.uk>,
	davem@davemloft.net, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v6 3/6] arm64: Kprobes with single stepping support
Date: Fri, 22 May 2015 17:54:29 +0100	[thread overview]
Message-ID: <20150522165428.GC29424@e104818-lin.cambridge.arm.com> (raw)
In-Reply-To: <555F5011.90808@redhat.com>

On Fri, May 22, 2015 at 11:49:37AM -0400, William Cohen wrote:
> On 05/22/2015 07:00 AM, Catalin Marinas wrote:
> > Any plans to post an updated version with the "unexpected single-step
> > error" fixed?
> 
> The only place this issue with the "unexpected single-step error" has
> been observed is with the arm64 kretporbe handler code calling kprobed
> functions.  Experiments with kprobed functions being called in the
> kprobe handlers showed that situation was handled appropriately. 
> 
> There is proposed fix to address the issue with the trampoline, the
> attached patch.  This is modeled after the way that the x86 handles
> the kretprobe.  The trampoline directly save and restores the
> registers and uses a normal call to the kretprobe handler.  It
> operates similarly to what you are suggesting above, but just for the
> special case of the kretprobes.

Thanks. I guess David will post a v7 series with this patch included and
other comments addressed.

BTW, I'll be on holiday for a week, back on the 1st of June. Hopefully
this series gets some more reviews by then ;)

-- 
Catalin

WARNING: multiple messages have this Message-ID (diff)
From: catalin.marinas@arm.com (Catalin Marinas)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v6 3/6] arm64: Kprobes with single stepping support
Date: Fri, 22 May 2015 17:54:29 +0100	[thread overview]
Message-ID: <20150522165428.GC29424@e104818-lin.cambridge.arm.com> (raw)
In-Reply-To: <555F5011.90808@redhat.com>

On Fri, May 22, 2015 at 11:49:37AM -0400, William Cohen wrote:
> On 05/22/2015 07:00 AM, Catalin Marinas wrote:
> > Any plans to post an updated version with the "unexpected single-step
> > error" fixed?
> 
> The only place this issue with the "unexpected single-step error" has
> been observed is with the arm64 kretporbe handler code calling kprobed
> functions.  Experiments with kprobed functions being called in the
> kprobe handlers showed that situation was handled appropriately. 
> 
> There is proposed fix to address the issue with the trampoline, the
> attached patch.  This is modeled after the way that the x86 handles
> the kretprobe.  The trampoline directly save and restores the
> registers and uses a normal call to the kretprobe handler.  It
> operates similarly to what you are suggesting above, but just for the
> special case of the kretprobes.

Thanks. I guess David will post a v7 series with this patch included and
other comments addressed.

BTW, I'll be on holiday for a week, back on the 1st of June. Hopefully
this series gets some more reviews by then ;)

-- 
Catalin

  reply	other threads:[~2015-05-22 16:54 UTC|newest]

Thread overview: 74+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-20 20:19 [PATCH v6 0/6] arm64: Add kernel probes (kprobes) support David Long
2015-04-20 20:19 ` David Long
2015-04-20 20:19 ` [PATCH v6 1/6] arm64: Add HAVE_REGS_AND_STACK_ACCESS_API feature David Long
2015-04-20 20:19   ` David Long
2015-05-20 13:39   ` Catalin Marinas
2015-05-20 13:39     ` Catalin Marinas
2015-05-21  3:29     ` David Long
2015-05-21  3:29       ` David Long
2015-05-21 17:55       ` Catalin Marinas
2015-05-21 17:55         ` Catalin Marinas
2015-05-22 17:05         ` David Long
2015-05-22 17:05           ` David Long
2015-04-20 20:19 ` [PATCH v6 2/6] arm64: Add more test functions to insn.c David Long
2015-04-20 20:19   ` David Long
2015-04-20 20:19 ` [PATCH v6 3/6] arm64: Kprobes with single stepping support David Long
2015-04-20 20:19   ` David Long
2015-05-20 16:39   ` Catalin Marinas
2015-05-20 16:39     ` Catalin Marinas
2015-05-21  4:44     ` David Long
2015-05-21  4:44       ` David Long
2015-05-22 11:00       ` Catalin Marinas
2015-05-22 11:00         ` Catalin Marinas
2015-05-22 15:49         ` William Cohen
2015-05-22 15:49           ` William Cohen
2015-05-22 16:54           ` Catalin Marinas [this message]
2015-05-22 16:54             ` Catalin Marinas
2015-05-22 16:57             ` David Long
2015-05-22 16:57               ` David Long
2015-04-20 20:19 ` [PATCH v6 4/6] arm64: kprobes instruction simulation support David Long
2015-04-20 20:19   ` David Long
2015-04-20 20:19 ` [PATCH v6 5/6] arm64: Add kernel return probes support (kretprobes) David Long
2015-04-20 20:19   ` David Long
2015-04-20 20:19 ` [PATCH v6 6/6] kprobes: Add arm64 case in kprobe example module David Long
2015-04-20 20:19   ` David Long
2015-04-21 11:42 ` [PATCH v6 0/6] arm64: Add kernel probes (kprobes) support Masami Hiramatsu
2015-04-21 11:42   ` Masami Hiramatsu
2015-04-21 14:07   ` William Cohen
2015-04-21 14:07     ` William Cohen
2015-04-24 21:14   ` William Cohen
2015-04-24 21:14     ` William Cohen
2015-04-28  2:58     ` William Cohen
2015-04-28  2:58       ` William Cohen
2015-04-29 10:23       ` Will Deacon
2015-04-29 10:23         ` Will Deacon
2015-05-02  1:44         ` William Cohen
2015-05-02  1:44           ` William Cohen
2015-05-05  5:14           ` David Long
2015-05-05  5:14             ` David Long
2015-05-05 15:48             ` Will Deacon
2015-05-05 15:48               ` Will Deacon
2015-05-05 16:18               ` William Cohen
2015-05-05 16:18                 ` William Cohen
2015-05-05 21:02               ` William Cohen
2015-05-05 21:02                 ` William Cohen
2015-05-06  3:14                 ` William Cohen
2015-05-06  3:14                   ` William Cohen
2015-05-12  5:54               ` David Long
2015-05-12  5:54                 ` David Long
2015-05-12 12:48                 ` William Cohen
2015-05-12 12:48                   ` William Cohen
2015-05-13  9:22                   ` Masami Hiramatsu
2015-05-13  9:22                     ` Masami Hiramatsu
2015-05-13 15:41                     ` William Cohen
2015-05-13 15:41                       ` William Cohen
2015-05-13 19:58                       ` David Long
2015-05-13 19:58                         ` David Long
2015-05-13 20:35                         ` William Cohen
2015-05-13 20:35                           ` William Cohen
2015-05-14  0:01                       ` Masami Hiramatsu
2015-05-14  0:01                         ` Masami Hiramatsu
2015-05-14  3:48                         ` Ananth N Mavinakayanahalli
2015-05-14  3:48                           ` Ananth N Mavinakayanahalli
2015-04-29  4:33   ` David Long
2015-04-29  4:33     ` David Long

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150522165428.GC29424@e104818-lin.cambridge.arm.com \
    --to=catalin.marinas@arm.com \
    --cc=ananth@in.ibm.com \
    --cc=anil.s.keshavamurthy@intel.com \
    --cc=dave.long@linaro.org \
    --cc=davem@davemloft.net \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=masami.hiramatsu.pt@hitachi.com \
    --cc=sandeepa.s.prabhu@gmail.com \
    --cc=steve.capper@linaro.org \
    --cc=tixy@linaro.org \
    --cc=wcohen@redhat.com \
    --cc=will.deacon@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.