Description of problem: kvm: initialize all of the kvm_debugregs structure before sending it to userspace When calling the KVM_GET_DEBUGREGS ioctl, on some configurations, there might be some unitialized portions of the kvm_debugregs structure that could be copied to userspace. Prevent this as is done in the other kvm ioctls, by setting the whole structure to 0 before copying anything into it. Bonus is that this reduces the lines of code as the explicit flag setting and reserved space zeroing out can be removed. see upstream: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2c10b61421a28e95a46ab489fd56c0f442ff6952
https://gitee.com/anolis/cloud-kernel/pulls/1451
*** Bug 4353 has been marked as a duplicate of this bug. ***