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

2024-02-21 Thread Mark Brown
On Mon, Feb 19, 2024 at 11:02:22PM -0300, Thiago Jung Bauermann wrote: > Mark Brown 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 t

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

2024-02-19 Thread Thiago Jung Bauermann
Mark Brown writes: > When a new thread is created by a thread with GCS enabled the GCS needs > to be specified along with the regular stack. clone3() has been > extended to support this case, allowing userspace to explicitly specify > the size and location of the GCS. The specified GCS must h

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

2024-02-03 Thread Mark Brown
When a new thread is created by a thread with GCS enabled the GCS needs to be specified along with the regular stack. clone3() has been extended to support this case, allowing userspace to explicitly specify the size and location of the GCS. The specified GCS must have a valid GCS token at the to