diff options
| author | Huacai Chen <chenhuacai@loongson.cn> | 2026-03-26 14:29:09 +0800 |
|---|---|---|
| committer | Huacai Chen <chenhuacai@loongson.cn> | 2026-03-26 14:29:09 +0800 |
| commit | b97bd69eb0f67b5f961b304d28e9ba45e202d841 (patch) | |
| tree | 664b7d98e2c7e477b06e2ef5638aada1dfede7c2 /include/linux/tc_act/git@git.tavy.me:linux.git | |
| parent | 2db06c15d8c7a0ccb6108524e16cd9163753f354 (diff) | |
LoongArch: KVM: Handle the case that EIOINTC's coremap is empty
EIOINTC's coremap in eiointc_update_sw_coremap() can be empty, currently
we get a cpuid with -1 in this case, but we actually need 0 because it's
similar as the case that cpuid >= 4.
This fix an out-of-bounds access to kvm_arch::phyid_map::phys_map[].
Cc: <stable@vger.kernel.org>
Fixes: 3956a52bc05bd81 ("LoongArch: KVM: Add EIOINTC read and write functions")
Reported-by: Aurelien Jarno <aurel32@debian.org>
Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1131431
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'include/linux/tc_act/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
