glibc/sysdeps
Adhemerval Zanella 088a2055da aarch64: Fix LD_AUDIT with GCS in permissive mode
In permissive mode, during audit module handling, check_gcs is unaware
that it is handling audit modules rather than the binary itself.  It
causes the loader to fail to load the audit module, rather than
loading it and disabling GCS.

Also extends GCS tests with 4 LD_AUDIT tests:

1. tst-gcs-audit-disabled: checks if the audit module without GCS
   marking is loaded with default gcs support.

2. tst-gcs-audit-enforced: checks if the audit module without GCS
   marking is not loaded when GCS is enforced.

3. tst-gcs-audit-optional: checks if the audit module without GCS
   marking is loaded when GCS is optional.

4. tst-gcs-audit-override: check if the audit modules without GCS
   marking is loaded when GCS is overrided.

Checked on aarch64-linux-gnu with Linux 6.18 on Apple M4 emulated (for
BTI support) and on qemu 10.1.50 simulated (for GCS).

Reviewed-by: Yury Khrustalev <yury.khrustalev@arm.com>
Tested-by: Yury Khrustalev <yury.khrustalev@arm.com>
2026-01-14 15:00:24 -03:00
..
aarch64 aarch64: Fix LD_AUDIT with GCS in permissive mode 2026-01-14 15:00:24 -03:00
alpha Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
arc Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
arm Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
csky Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
generic aarch64: Fix LD_AUDIT with GCS in permissive mode 2026-01-14 15:00:24 -03:00
gnu Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
hppa Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
htl Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
hurd hurd: Fix sigreturn clobbering some xmm registers 2026-01-11 02:03:31 +01:00
i386 Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
ieee754 ldbl-128ibm-compat: Add local aliases for printf family symbols 2026-01-12 12:40:29 -05:00
loongarch Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
m68k Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
mach hurd: Fix sigreturn clobbering some xmm registers 2026-01-11 02:03:31 +01:00
microblaze Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
mips Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
nptl Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
or1k Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
posix Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
powerpc Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
pthread Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
riscv Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
s390 Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
sh Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
sparc Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
unix aarch64: Fix LD_AUDIT with GCS in permissive mode 2026-01-14 15:00:24 -03:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
wordsize-64 Update copyright dates with scripts/update-copyrights 2026-01-01 13:42:29 -08:00
x86 aarch64: Fix LD_AUDIT with GCS in permissive mode 2026-01-14 15:00:24 -03:00
x86_64 x86: Fix x86_64 build failure with -Os (BZ 33367) 2026-01-12 10:34:40 -03:00