summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorBreno Leitao <leitao@debian.org>2026-02-02 10:32:51 -0800
committerWill Deacon <will@kernel.org>2026-02-03 09:30:20 +0000
commit53c998527ffa60f9deda8974a11ad39790684159 (patch)
treec92d0a97035f3b9bba7afe47cd7f959b0d87582b /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parentbb0c99e08ab9aa6d04b40cb63c72db9950d51749 (diff)
arm64/gcs: Fix error handling in arch_set_shadow_stack_status()
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(). Fixes: b57180c75c7e ("arm64/gcs: Implement shadow stack prctl() interface") Reviewed-by: Mark Brown <broonie@kernel.org> Signed-off-by: Breno Leitao <leitao@debian.org> Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions