archive mirror
 help / color / mirror / Atom feed
From: Michael Ellerman <>
To: Ravi Bangoria <>,
Cc: Ravi Bangoria <>,,,
	"Naveen N . Rao" <>,
Subject: Re: [PATCH v2] powerpc/watchpoint: Disable watchpoint hit by larx/stcx instructions
Date: Thu, 19 Sep 2019 20:25:55 +1000 (AEST)	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On Tue, 2019-09-10 at 13:15:13 UTC, Ravi Bangoria wrote:
> If watchpoint exception is generated by larx/stcx instructions, the
> reservation created by larx gets lost while handling exception, and
> thus stcx instruction always fails. Generally these instructions are
> used in a while(1) loop, for example spinlocks. And because stcx
> never succeeds, it loops forever and ultimately hangs the system.
> Note that ptrace anyway works in one-shot mode and thus for ptrace
> we don't change the behaviour. It's up to ptrace user to take care
> of this.
> Signed-off-by: Ravi Bangoria <>
> Acked-by: Naveen N. Rao <>

Applied to powerpc next, thanks.


      reply	other threads:[~2019-09-19 10:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-10 13:15 Ravi Bangoria
2019-09-19 10:25 ` Michael Ellerman [this message]

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:

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

  git send-email \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH v2] powerpc/watchpoint: Disable watchpoint hit by larx/stcx instructions' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).