]> git.ipfire.org Git - thirdparty/glibc.git/commit
aarch64: Add glibc.cpu.aarch64_gcs tunable
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 17 Jul 2023 07:31:05 +0000 (08:31 +0100)
committerYury Khrustalev <yury.khrustalev@arm.com>
Thu, 10 Oct 2024 12:40:35 +0000 (13:40 +0100)
commit6c973abacff1c72b0d47fb0e96d938117cc4348e
tree5db78891812c8ba8f0ef9fde38fbfda4ab7b309a
parentd2768c779c087e6fe3e0f265e35b10407a47c297
aarch64: Add glibc.cpu.aarch64_gcs tunable

This tunable is for controlling the GCS status. It is the argument to
the PR_SET_SHADOW_STACK_STATUS prctl, by default 0, so GCS is disabled.

The status is stored into GL(dl_aarch64_gcs) early and only applied
later, since enabling GCS is tricky: it must happen on a top level
stack frame. (Using GL instead of GLRO because it may need updates
depending on loaded libraries that happen after readonly protection
is applied, however library marking based GCS setting is not yet
implemented.)
sysdeps/aarch64/dl-tunables.list
sysdeps/unix/sysv/linux/aarch64/cpu-features.c
sysdeps/unix/sysv/linux/aarch64/dl-procruntime.c [new file with mode: 0644]