summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLukas Gerlach <lukas.gerlach@cispa.de>2026-02-28 14:27:27 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-03-25 11:06:00 +0100
commit33743ec6679aa364ee19d1afbaa50593e9e6e443 (patch)
treea225b7f8367bdd3af95be6630f6d569b1ed5f9c0 /include/linux
parent4357e02cafabe01c2d737ceb4c4c6382fc2ee10a (diff)
riscv: Sanitize syscall table indexing under speculation
[ Upstream commit 25fd7ee7bf58ac3ec7be3c9f82ceff153451946c ] The syscall number is a user-controlled value used to index into the syscall table. Use array_index_nospec() to clamp this value after the bounds check to prevent speculative out-of-bounds access and subsequent data leakage via cache side channels. Signed-off-by: Lukas Gerlach <lukas.gerlach@cispa.de> Link: https://patch.msgid.link/20251218191332.35849-3-lukas.gerlach@cispa.de Signed-off-by: Paul Walmsley <pjw@kernel.org> [ Added linux/nospec.h for array_index_nospec() to make sure compile without error ] Signed-off-by: Leon Chen <leonchen.oss@139.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions