From: Richard Henderson Date: Wed, 8 Oct 2025 21:56:05 +0000 (-0700) Subject: linux-user/aarch64: Release gcs stack on thread exit X-Git-Tag: v10.2.0-rc1~67^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c9448037758277eb3dae71f98be3bbfdc91f467;p=thirdparty%2Fqemu.git linux-user/aarch64: Release gcs stack on thread exit Reviewed-by: Pierrick Bouvier Signed-off-by: Richard Henderson Message-id: 20251008215613.300150-66-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- diff --git a/linux-user/syscall.c b/linux-user/syscall.c index dffe6c2016..47a6b58cf5 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -9429,6 +9429,12 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, FUTEX_WAKE, INT_MAX, NULL, NULL, 0); } +#ifdef TARGET_AARCH64 + if (ts->gcs_base) { + target_munmap(ts->gcs_base, ts->gcs_size); + } +#endif + object_unparent(OBJECT(cpu)); object_unref(OBJECT(cpu)); /*