Re: [PATCH v10 21/40] arm64/gcs: Implement shadow stack prctl() interface

Mark Brown
2024-08-21T13:41:28Z

[-- Attachment #1: Type: text/plain, Size: 381 bytes --]

On Wed, Aug 21, 2024 at 01:54:33PM +0100, Catalin Marinas wrote:

> Otherwise it looks fine.

> Reviewed-by: Catalin Marinas <catalin.marinas@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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]