Re: [PATCH v13 22/40] arm64/gcs: Ensure that new threads have a GCS

2024-10-04 Thread Mark Brown
On Fri, Oct 04, 2024 at 02:18:45PM +0300, Catalin Marinas wrote: > I think Szabolcs mentioned a GCS leak with v12: > https://lore.kernel.org/r/ZtrihWQFyb2/x...@arm.com > (and in some private messages IIRC) > Has this been identified? The changelog only mentions a leak in v8. Yes, it's this in

Re: [PATCH v13 22/40] arm64/gcs: Ensure that new threads have a GCS

2024-10-04 Thread Catalin Marinas
On Tue, Oct 01, 2024 at 11:59:01PM +0100, Mark Brown wrote: > When a new thread is created by a thread with GCS enabled the GCS needs > to be specified along with the regular stack. > > Unfortunately plain clone() is not extensible and existing clone3() > users will not specify a stack so all exis

[PATCH v13 22/40] arm64/gcs: Ensure that new threads have a GCS

2024-10-01 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. Unfortunately plain clone() is not extensible and existing clone3() users will not specify a stack so all existing code would be broken if we mandated specifying the stack explicit