Description of problem: 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. upstream: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.172&id=6416c2108ba54d569e4c98d3b62ac78cb12e7107 Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Duplicated with: https://bugzilla.openanolis.cn/show_bug.cgi?id=4500 *** This bug has been marked as a duplicate of bug 4500 ***
*** Bug 4682 has been marked as a duplicate of this bug. ***