Re: [PATCH] arm64/gcs: Fix error handling in arch_set_shadow_stack_status()
From: Mark Brown
Date: Mon Feb 02 2026 - 08:12:39 EST
On Fri, Jan 30, 2026 at 01:43:09AM -0800, Breno Leitao wrote:
> alloc_gcs() returns an error-encoded pointer on failure, which comes
> from do_mmap(), not NULL.
Good spot, thanks:
Reviewed-by: Mark Brown <broonie@xxxxxxxxxx>
> PS: This was compiled-tested only, given I unfortunately don't have
> a hardware to test on _yet_.
You can run with the Arm software models, shrinkwrap provides a
convenient way to do that:
https://shrinkwrap.docs.arm.com/en/latest/
or the very latest qemu.
Attachment:
signature.asc
Description: PGP signature