[PATCH v10 21/40] arm64/gcs: Implement shadow stack prctl() interface
Mark Brown
broonie at kernel.org
Wed Aug 21 06:41:19 PDT 2024
On Wed, Aug 21, 2024 at 01:54:33PM +0100, Catalin Marinas wrote:
> Otherwise it looks fine.
> Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>
I've also added:
+
+ /* Ensure we remember GCSPR_EL0 if we're disabling. */
+ if (task_gcs_el0_enabled(current))
+ current->thread.gcspr_el0 = read_sysreg_s(SYS_GCSPR_EL0);
to handle the disable case.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20240821/5aebfe09/attachment.sig>
More information about the linux-riscv
mailing list