[PATCH v7 22/39] arm64/gcs: Implement shadow stack prctl() interface

Thiago Jung Bauermann thiago.bauermann at linaro.org
Wed Dec 6 13:27:25 PST 2023


Mark Brown <broonie at kernel.org> writes:

> Implement the architecture neutral prtctl() interface for setting the
> shadow stack status, this supports setting and reading the current GCS
> configuration for the current thread.
>
> Userspace can enable basic GCS functionality and additionally also
> support for GCS pushes and arbatrary GCS stores.  It is expected that

s/arbatrary/arbitrary/

> this prctl() will be called very early in application startup, for
> example by the dynamic linker, and not subsequently adjusted during
> normal operation.  Users should carefully note that after enabling GCS
> for a thread GCS will become active with no call stack so it is not
> normally possible to return from the function that invoked the prctl().

-- 
Thiago



More information about the linux-riscv mailing list