On Wed, 19 Apr 2023 13:16:13 +0300, Dan Carpenter wrote: > 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. > > Applied to kvmarm/fixes, thanks! [1/1] KVM: arm64: Fix buffer overflow in kvm_arm_set_fw_reg() https://git.kernel.org/kvmarm/kvmarm/c/a25bc8486f9c -- Best, Oliver