[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <177011102209.2472980.4751215527771350608.b4-ty@kernel.org>
Date: Tue, 3 Feb 2026 20:29:01 +0000
From: Will Deacon <will@...nel.org>
To: Catalin Marinas <catalin.marinas@....com>,
Thiago Jung Bauermann <thiago.bauermann@...aro.org>,
Mark Brown <broonie@...nel.org>,
Breno Leitao <leitao@...ian.org>
Cc: kernel-team@...roid.com,
Will Deacon <will@...nel.org>,
linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
kernel-team@...a.com
Subject: Re: [PATCH v2] arm64/gcs: Fix error handling in arch_set_shadow_stack_status()
On Mon, 02 Feb 2026 10:32:51 -0800, Breno Leitao wrote:
> alloc_gcs() returns an error-encoded pointer on failure, which comes
> from do_mmap(), not NULL.
>
> The current NULL check fails to detect errors, which could lead to using
> an invalid GCS address.
>
> Use IS_ERR_VALUE() to properly detect errors, consistent with the
> check in gcs_alloc_thread_stack().
>
> [...]
Applied to arm64 (for-next/core), thanks!
[1/1] arm64/gcs: Fix error handling in arch_set_shadow_stack_status()
https://git.kernel.org/arm64/c/53c998527ffa
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
Powered by blists - more mailing lists