diff options
author | 2023-04-19 13:16:13 +0300 | |
---|---|---|
committer | 2023-04-19 15:22:37 +0000 | |
commit | a25bc8486f9c01c1af6b6c5657234b2eee2c39d6 (patch) | |
tree | 2f5b5af5ef4b17a89390c36f72406fefb06a7a5a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: arm64: Make vcpu flag updates non-preemptible (diff) | |
download | wireguard-linux-a25bc8486f9c01c1af6b6c5657234b2eee2c39d6.tar.xz wireguard-linux-a25bc8486f9c01c1af6b6c5657234b2eee2c39d6.zip |
KVM: arm64: Fix buffer overflow in kvm_arm_set_fw_reg()
The KVM_REG_SIZE() comes from the ioctl and it can be a power of two
between 0-32768 but if it is more than sizeof(long) this will corrupt
memory.
Fixes: 99adb567632b ("KVM: arm/arm64: Add save/restore support for firmware workaround state")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/4efbab8c-640f-43b2-8ac6-6d68e08280fe@kili.mountain
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions