This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/23967] [2.28 Regression]: New sigaction implementation breaks m68k


https://sourceware.org/bugzilla/show_bug.cgi?id=23967

--- Comment #12 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, release/2.28/master has been updated
       via  27e039455d5ef0d30b835fb422fffafd42600fa4 (commit)
      from  b4ce4476fc5d14fff413abe130b2ea7a7554f8d3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=27e039455d5ef0d30b835fb422fffafd42600fa4

commit 27e039455d5ef0d30b835fb422fffafd42600fa4
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Dec 11 16:52:47 2018 -0200

    m68k: Fix sigaction kernel definition (BZ #23967)

    Commit b4a5d26d883 (linux: Consolidate sigaction implementation) added
    a wrong kernel_sigaction definition for m68k, meant for __NR_sigaction
    instead of __NR_rt_sigaction as used on generic Linux sigaction
    implementation.  This patch fixes it by using the Linux generic
    definition meant for the RT kernel ABI.

    Checked the signal tests on emulated m68-linux-gnu (Aranym).  It fixes
    the faulty signal/tst-sigaction and man works as expected.

        Adhemerval Zanella  <adhemerval.zanella@linaro.org>
        James Clarke  <jrtc27@jrtc27.com>

        [BZ #23967]
        * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
        Define if SA_RESTORER is defined.
        (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
        (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
        already defined.
        * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
        kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
        definitions.
        (HAS_SA_RESTORER): Define.
        * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
        SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
        (HAS_SA_RESTORER): Define.
        * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
        kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
        * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
        * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.

    (cherry picked from commit 43a45c2d829f164c1fb94d5f44afe326fae946e1)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                          |   22 ++++++++++++++++
 sysdeps/unix/sysv/linux/kernel_sigaction.h         |   12 +++++++-
 sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h    |   26 +++----------------
 sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h   |    3 +-
 sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h |    3 +-
 sysdeps/unix/sysv/linux/sh/kernel_sigaction.h      |    3 +-
 sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h   |    7 +----
 sysdeps/unix/sysv/linux/x86_64/sigaction.c         |    3 +-
 8 files changed, 45 insertions(+), 34 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]