Re: [PATCH v8 20/38] arm64/gcs: Ensure that new threads have a GCS

From: Mark Brown
Date: Wed Feb 21 2024 - 13:16:55 EST


On Mon, Feb 19, 2024 at 11:02:22PM -0300, Thiago Jung Bauermann wrote:
> Mark Brown <broonie@xxxxxxxxxx> writes:

> > + gcspr_el0 = addr + size - (2 * sizeof(u64));
> > + if (!gcs_consume_token(tsk, gcspr_el0)) {

> Should this code validate the end of stack marker? Or doesn't it matter
> whether the marker is correct or not?

I don't think we specifically care, we're just looking for a token here.

Attachment: signature.asc
Description: PGP signature