Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Tony Wu <tung7970@gmail.com>
To: ralf@linux-mips.org, linux-mips@linux-mips.org
Subject: Re: MIPS: Delete definition of SA_RESTORER.
Date: Wed, 3 Apr 2013 12:28:19 +0800	[thread overview]
Message-ID: <20130403042819.GA1013@hades.local> (raw)
In-Reply-To: <CA+zhxNntS-+Di-DRt5gUF7+P6KovOzmeoh741Y06i_d2-ccngw@mail.gmail.com>

Upstream cdef9602fb [signal: always clear sa_restorer on execve] was
also applied to v3.0 and v3.4 stable branches. So, the SA_RESTORER patch
Ralf applied to v3.8 is needed as well.

Here's the original commit message:
SA_RESTORER used to be defined as 0x04000000 but only the O32 ABI ever
supported its use and no libc was using it, so the entire sa-restorer
functionality was removed with lmo commit 39bffc12c3580ab [Zap sa_restorer.]
for 2.5.48 retaining only the SA_RESTORER definition as a reminder to avoid
accidental reuse of the mask bit.

Upstream cdef9602fbf1871a43f0f1b5cea10dd0f275167d [signal: always clear
sa_restorer on execve] adds code that assumes sa_sigaction has an
sa_restorer field, if SA_RESTORER is defined which would break MIPS.
So remove the SA_RESTORER definition before the v3.8.4 merge.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Tony Wu <tung7970@gmail.com>

diff --git a/arch/mips/include/asm/signal.h b/arch/mips/include/asm/signal.h
index c783f36..edfb2b0 100644
--- a/arch/mips/include/asm/signal.h
+++ b/arch/mips/include/asm/signal.h
@@ -84,8 +84,6 @@ typedef unsigned long old_sigset_t;		/* at least 32 bits */
 #define SA_NOMASK	SA_NODEFER
 #define SA_ONESHOT	SA_RESETHAND
 
-#define SA_RESTORER	0x04000000	/* Only for o32 */
-
 /*
  * sigaltstack controls
  */

On Wed, Apr 03, 2013 at 12:54:30AM +0800, Tony Wu wrote:
> Hi, Ralf,
> 
> Also need to remove SA_RESTORER from arch/mips/include/signal.h for
> linux-3.0-stable and linux-3.4-stable or it will break compilation.
> 
> Thanks,
> Tony
> 
> ---------- Forwarded message ----------
> From: <linux-mips@linux-mips.org>
> Date: Tue, Apr 2, 2013 at 11:20 PM
> Subject: MIPS: Delete definition of SA_RESTORER.
> To: git-commits@linux-mips.org
> 
> 
> Author: Ralf Baechle <ralf@linux-mips.org> Mon Mar 25 13:43:14 2013 +0100
> Commit: 17da8d63add23830892ac4dc2cbb3b5d4ffb79a8
> Gitweb: http://git.linux-mips.org/g/ralf/linux/17da8d63add2
> Branch: linux-3.8-stable
> 
> SA_RESTORER used to be defined as 0x04000000 but only the O32 ABI ever
> supported its use and no libc was using it, so the entire sa-restorer
> functionality was removed with lmo commit 39bffc12c3580ab [Zap sa_restorer.]
> for 2.5.48 retaining only the SA_RESTORER definition as a reminder to avoid
> accidental reuse of the mask bit.
> 
> Upstream cdef9602fbf1871a43f0f1b5cea10dd0f275167d [signal: always clear
> sa_restorer on execve] adds code that assumes sa_sigaction has an
> sa_restorer field, if SA_RESTORER is defined which would break MIPS.
> So remove the SA_RESTORER definition before the v3.8.4 merge.
> 
> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
> 
> ---
> 
>  arch/mips/include/uapi/asm/signal.h |    8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/mips/include/uapi/asm/signal.h
> b/arch/mips/include/uapi/asm/signal.h
> index 770732c..dfd6b5e 100644
> --- a/arch/mips/include/uapi/asm/signal.h
> +++ b/arch/mips/include/uapi/asm/signal.h
> @@ -72,6 +72,12 @@ typedef unsigned long old_sigset_t;          /* at least
> 32 bits */
>   *
>   * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
>   * Unix names RESETHAND and NODEFER respectively.
> + *
> + * SA_RESTORER used to be defined as 0x04000000 but only the O32 ABI ever
> + * supported its use and no libc was using it, so the entire sa-restorer
> + * functionality was removed with lmo commit 39bffc12c3580ab for 2.5.48
> + * retaining only the SA_RESTORER definition as a reminder to avoid
> + * accidental reuse of the mask bit.
>   */
>  #define SA_ONSTACK     0x08000000
>  #define SA_RESETHAND   0x80000000
> @@ -84,8 +90,6 @@ typedef unsigned long old_sigset_t;           /* at least
> 32 bits */
>  #define SA_NOMASK      SA_NODEFER
>  #define SA_ONESHOT     SA_RESETHAND
> 
> -#define SA_RESTORER    0x04000000      /* Only for o32 */
> -
>  #define MINSIGSTKSZ    2048
>  #define SIGSTKSZ       8192

           reply	other threads:[~2013-04-03  4:28 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CA+zhxNntS-+Di-DRt5gUF7+P6KovOzmeoh741Y06i_d2-ccngw@mail.gmail.com>]

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=20130403042819.GA1013@hades.local \
    --to=tung7970@gmail.com \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox