All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maxim Ostapenko <m.ostapenko@partner.samsung.com>
To: riku.voipio@iki.fi, peter.maydell@linaro.org, qemu-trivial@nongnu.org
Cc: Slava Garbuzov <v.garbuzov@samsung.com>,
	Yury Gribov <y.gribov@samsung.com>
Subject: Re: [Qemu-trivial] [PATCH] Fix ABI incompatibility between Qemu-aarch64 and Linux Kernel in signal handling.
Date: Mon, 02 Feb 2015 12:23:25 +0400	[thread overview]
Message-ID: <54CF33FD.5020003@partner.samsung.com> (raw)
In-Reply-To: <54CF336A.7080205@partner.samsung.com>

Sorry, missed ML.

-Maxim
On 02/02/2015 12:20 PM, Maxim Ostapenko wrote:
> Hi,
>
> this patch fixes https://bugs.launchpad.net/qemu/+bug/1416988.
>
> There is a small ABI incompatibility between Qemu-aarch64 and Linux 
> Kernel 3.19 caused by wrong size of struct target_siginfo in Qemu. 
> This tiny patch fixes the issue.
>
> -Maxim
>
> From 1d662e325d004bce2d640cfea5b337c92c7feca2 Mon Sep 17 00:00:00 2001
> From: Max Ostapenko <m.ostapenko@partner.samsung.com>
> Date: Mon, 2 Feb 2015 12:03:20 +0400
> Subject: [PATCH] linux-user: wrong TARGET_SI_PAD_SIZE value for some 
> targets.
>
> Fix TARGET_SI_PAD_SIZE for S390X, SPARC, ALPHA and AARCH64 to correspond
> Linux Kernel 3.19 c59c961ca511dc7ee2f4f7e9c224d16f5c76ca6e revision.
> ---
>  linux-user/syscall_defs.h | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
> index ebb3be1..b95a0b2 100644
> --- a/linux-user/syscall_defs.h
> +++ b/linux-user/syscall_defs.h
> @@ -655,7 +655,12 @@ typedef struct {
>  #endif
>
>  #define TARGET_SI_MAX_SIZE    128
> +#if defined(TARGET_S390X) || defined(TARGET_SPARC) \
> +   || defined(TARGET_ALPHA) || defined(TARGET_AARCH64)
> +#define TARGET_SI_PAD_SIZE    ((TARGET_SI_MAX_SIZE/sizeof(int)) - 4)
> +#else
>  #define TARGET_SI_PAD_SIZE    ((TARGET_SI_MAX_SIZE/sizeof(int)) - 3)
> +#endif
>
>  typedef struct target_siginfo {
>  #ifdef TARGET_MIPS



       reply	other threads:[~2015-02-02 14:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <54CF336A.7080205@partner.samsung.com>
2015-02-02  8:23 ` Maxim Ostapenko [this message]
2015-02-02 14:23   ` [Qemu-trivial] [PATCH] Fix ABI incompatibility between Qemu-aarch64 and Linux Kernel in signal handling Peter Maydell
2015-02-02 14:23     ` [Qemu-devel] " Peter Maydell
2015-02-02 13:52     ` [Qemu-trivial] " Maxim Ostapenko
2015-02-02 13:52       ` [Qemu-devel] " Maxim Ostapenko
2015-02-02 14:56       ` [Qemu-trivial] " Peter Maydell
2015-02-02 14:56         ` [Qemu-devel] " Peter Maydell

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=54CF33FD.5020003@partner.samsung.com \
    --to=m.ostapenko@partner.samsung.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=riku.voipio@iki.fi \
    --cc=v.garbuzov@samsung.com \
    --cc=y.gribov@samsung.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.