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/22156] [hppa,ia64,microblaze] Executable stack default


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

--- Comment #1 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, master has been updated
       via  12ef66c411efe5910f0a9a74c92480db7e12eae0 (commit)
      from  44dade71f3cf739618affe0db5b40c15418ecb99 (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=12ef66c411efe5910f0a9a74c92480db7e12eae0

commit 12ef66c411efe5910f0a9a74c92480db7e12eae0
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Tue Sep 26 16:30:46 2017 +0000

    Fix ia64 executable stack default (bug 22156).

    As per https://gcc.gnu.org/ml/gcc-patches/2017-09/msg01220.html ia64
    defaults to non-executable stacks in the Linux kernel (furthermore,
    the use of function descriptors means that trampolines for nested
    function pointers never need an executable stack).  glibc however
    defines DEFAULT_STACK_PERMS to include PF_X for that architecture,
    meaning (a) elf/check-execstack fails and (b) (from code inspection,
    not tested, but this is why I think this is a user-visible bug) thread
    stacks are unnecessarily mapped with execute permission.  This patch
    fixes the DEFAULT_STACK_PERMS definition in question.

    Tested (compilation only) with build-many-glibcs.py for ia64.  This
    fixes the check-execstack failure.

        [BZ #22156]
        * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.

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

Summary of changes:
 ChangeLog                |    5 +++++
 sysdeps/ia64/stackinfo.h |    5 ++---
 2 files changed, 7 insertions(+), 3 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]