]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
LoongArch: Add spectre boundry for syscall dispatch table
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Apr 2026 07:45:12 +0000 (15:45 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 22 Apr 2026 07:45:12 +0000 (15:45 +0800)
commit0c965d2784fbbd7f8e3b96d875c9cfdf7c00da3d
tree288191ccae726697441cafb8a2f68b4124063a42
parent37e57e8ad96cdec4a57b55fd10bef50f7370a954
LoongArch: Add spectre boundry for syscall dispatch table

The LoongArch syscall number is directly controlled by userspace, but
does not have a array_index_nospec() boundry to prevent access past the
syscall function pointer tables.

Cc: stable@vger.kernel.org
Assisted-by: gkh_clanker_2000
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/syscall.c