[PATCH] KVM: Array access out of bounds

2024-10-23 Thread Liu Jing
In the kvmppc_mmu_book3s_64_xlate function, r = be64_to_cpu(pteg[i+1]); i used is 16 after the last loop and adding 1 will cross the line. Signed-off-by: Liu Jing diff --git a/arch/powerpc/kvm/book3s_64_mmu.c b/arch/powerpc/kvm/book3s_64_mmu.c index 61290282fd9e..75d2b284c4b4 100644 --- a/arch

[PATCH] cpufreq: Fix the cacography in powernv-cpufreq.c

2024-09-02 Thread Liu Jing
The word 'swtich' is wrong, so fix it. Signed-off-by: Liu Jing --- drivers/cpufreq/powernv-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/powernv-cpufreq.c b/drivers/cpufreq/powernv-cpufreq.c index fddbd1ea1635..64fa92623a51 100644 ---