Bug 4353 - [ANCK 5.10][kvm] structures return by KVM_GET_DEBUGREGS might not be all intialized
Summary: [ANCK 5.10][kvm] structures return by KVM_GET_DEBUGREGS might not be all inti...
Status: RESOLVED DUPLICATE of bug 4500
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: virt (show other bugs) virt
Version: 5.10.y-9
Hardware: All Linux
: P3-Medium S4-trivial
Target Milestone: ---
Assignee: liusong
QA Contact: shuming
URL:
Whiteboard:
Keywords:
: 4682 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-03-06 09:28 UTC by liusong
Modified: 2023-05-04 17:28 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description liusong 2023-03-06 09:28:53 UTC
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:
Comment 1 Joseph Qi alibaba_cloud_group 2023-03-14 11:10:12 UTC
Duplicated with:
https://bugzilla.openanolis.cn/show_bug.cgi?id=4500

*** This bug has been marked as a duplicate of bug 4500 ***
Comment 2 maqiao alibaba_cloud_group 2023-05-04 17:28:34 UTC
*** Bug 4682 has been marked as a duplicate of this bug. ***