All of lore.kernel.org
 help / color / mirror / Atom feed
From: Riku Voipio <riku.voipio@iki.fi>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, patches@linaro.org
Subject: Re: [Qemu-devel] [PATCH] linux-user/signal.c: Set fault address in AArch64 signal info
Date: Fri, 2 May 2014 13:06:58 +0300	[thread overview]
Message-ID: <CAOHGK-arXg_+c=jCxL56Gj-Jbro+qB3jivb6POjU7wNDfu6s8w@mail.gmail.com> (raw)
In-Reply-To: <1398965777-7694-1-git-send-email-peter.maydell@linaro.org>

[-- Attachment #1: Type: text/plain, Size: 1542 bytes --]

On Thu, May 1, 2014 at 8:36 PM, Peter Maydell <peter.maydell@linaro.org>wrote:

> Set the fault address correctly in the signal information passed
> to a signal handler for AArch64 guests.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> This would be a candidate for stable except that it depends on
> the a64 system rework which added exception.vaddress. Hopefully
> not many guests care about the fault address information...
>
> Riku: I'm assuming you'll put this in your tree; I can put it in
> target-arm if you prefer, but I know you have those other pending
> signal.c changes...
>

I've put in the linux-user que now, the signal.c changes didn't get any
review yet,
and I want to at least submit them with better descriptions.

Riku


>
>  linux-user/signal.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/linux-user/signal.c b/linux-user/signal.c
> index 7d6246f..5b8a01f 100644
> --- a/linux-user/signal.c
> +++ b/linux-user/signal.c
> @@ -1242,8 +1242,7 @@ static int target_setup_sigframe(struct
> target_rt_sigframe *sf,
>      __put_user(env->pc, &sf->uc.tuc_mcontext.pc);
>      __put_user(pstate_read(env), &sf->uc.tuc_mcontext.pstate);
>
> -    __put_user(/*current->thread.fault_address*/ 0,
> -            &sf->uc.tuc_mcontext.fault_address);
> +    __put_user(env->exception.vaddress,
> &sf->uc.tuc_mcontext.fault_address);
>
>      for (i = 0; i < TARGET_NSIG_WORDS; i++) {
>          __put_user(set->sig[i], &sf->uc.tuc_sigmask.sig[i]);
> --
> 1.9.2
>
> --
> Riku Voipio

[-- Attachment #2: Type: text/html, Size: 2347 bytes --]

      reply	other threads:[~2014-05-02 10:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-01 17:36 [Qemu-devel] [PATCH] linux-user/signal.c: Set fault address in AArch64 signal info Peter Maydell
2014-05-02 10:06 ` Riku Voipio [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:
  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='CAOHGK-arXg_+c=jCxL56Gj-Jbro+qB3jivb6POjU7wNDfu6s8w@mail.gmail.com' \
    --to=riku.voipio@iki.fi \
    --cc=patches@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /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.