summaryrefslogtreecommitdiff
path: root/include/linux/tc_act/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2026-03-26 14:29:09 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2026-03-26 14:29:09 +0800
commit2db06c15d8c7a0ccb6108524e16cd9163753f354 (patch)
treec120d3e61f115b10a642626f0ce91d138f104b89 /include/linux/tc_act/git@git.tavy.me:linux.git
parente4878c37f6679fdea91b27a0f4e60a871f0b7bad (diff)
LoongArch: KVM: Make kvm_get_vcpu_by_cpuid() more robust
kvm_get_vcpu_by_cpuid() takes a cpuid parameter whose type is int, so cpuid can be negative. Let kvm_get_vcpu_by_cpuid() return NULL for this case so as to make it more robust. This fix an out-of-bounds access to kvm_arch::phyid_map::phys_map[]. Cc: <stable@vger.kernel.org> Fixes: 73516e9da512adc ("LoongArch: KVM: Add vcpu mapping from physical cpuid") 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