Skip to content
Commit 0fea6d76 authored by Christoffer Dall's avatar Christoffer Dall
Browse files

arm/arm64: KVM: Fix set_clear_sgi_pend_reg offset

The sgi values calculated in read_set_clear_sgi_pend_reg() and
write_set_clear_sgi_pend_reg() were horribly incorrectly multiplied by 4
with catastrophic results in that subfunctions ended up overwriting
memory not allocated for the expected purpose.

This showed up as bugs in kfree() and the kernel complaining a lot of
you turn on memory debugging.

This addresses: http://marc.info/?l=kvm&m=141164910007868&w=2



Reported-by: default avatarShannon Zhao <zhaoshenglong@huawei.com>
Signed-off-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
parent a98f26f1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment