mbox series

[v2,0/2] Make non-executable stack disable by default

Message ID 20240614125300.310236-1-adhemerval.zanella@linaro.org
Headers show
Series Make non-executable stack disable by default | expand

Message

Adhemerval Zanella Netto June 14, 2024, 12:50 p.m. UTC
First patch is a stackinfo.h cleanup for better default, while the
second is the patch to disable executable stacks.

Changes from v1:
* Fixed tests invocation without --enable-hardcoded-path-in-tests.
* Added hurd, hppa, mips exceptions.

Adhemerval Zanella (2):
  elf: Consolidate stackinfo.h
  elf: Make non-executable stack disable by default

 Makeconfig                                    |   1 +
 NEWS                                          |   4 +
 elf/Makefile                                  |  50 ++++++++-
 elf/dl-load.c                                 |   8 ++
 elf/dl-support.c                              |   5 +
 elf/dl-tunables.list                          |   6 +
 elf/rtld.c                                    |   4 +
 elf/tst-execstack-prog-static.c               |   1 +
 elf/tst-execstack.c                           | 106 +++++-------------
 elf/tst-ro-dynamic-mod.map                    |   3 +-
 elf/tst-rtld-list-tunables.exp                |   1 +
 manual/tunables.texi                          |  20 ++++
 nptl/Makefile                                 |  11 +-
 sysdeps/aarch64/stackinfo.h                   |  33 ------
 sysdeps/arc/stackinfo.h                       |  33 ------
 sysdeps/csky/stackinfo.h                      |  29 -----
 sysdeps/generic/stackinfo.h                   |  15 ++-
 sysdeps/hppa/dl-tunables.list                 |  11 ++
 sysdeps/loongarch/stackinfo.h                 |  33 ------
 sysdeps/mach/hurd/dl-tunables.list            |  11 ++
 sysdeps/nios2/stackinfo.h                     |  33 ------
 sysdeps/powerpc/{ => powerpc32}/stackinfo.h   |   8 +-
 sysdeps/riscv/stackinfo.h                     |  33 ------
 sysdeps/unix/sysv/linux/mips/Makefile         |  13 +++
 .../sysv/linux/mips/dl-tunables-arch.list     |  12 ++
 25 files changed, 201 insertions(+), 283 deletions(-)
 create mode 100644 elf/tst-execstack-prog-static.c
 delete mode 100644 sysdeps/aarch64/stackinfo.h
 delete mode 100644 sysdeps/arc/stackinfo.h
 delete mode 100644 sysdeps/csky/stackinfo.h
 create mode 100644 sysdeps/hppa/dl-tunables.list
 delete mode 100644 sysdeps/loongarch/stackinfo.h
 create mode 100644 sysdeps/mach/hurd/dl-tunables.list
 delete mode 100644 sysdeps/nios2/stackinfo.h
 rename sysdeps/powerpc/{ => powerpc32}/stackinfo.h (82%)
 delete mode 100644 sysdeps/riscv/stackinfo.h
 create mode 100644 sysdeps/unix/sysv/linux/mips/dl-tunables-arch.list