<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.openanolis.cn/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.openanolis.cn/"
          
          maintainer="service@openanolis.org"
>

    <bug>
          <bug_id>4500</bug_id>
          
          <creation_ts>2023-03-13 20:02:15 +0000</creation_ts>
          <short_desc>[ANCK 5.10] kvm: initialize all of the kvm_debugregs structure before sending it to userspace</short_desc>
          <delta_ts>2023-03-14 11:10:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>ANCK</classification>
          <product>ANCK 5.10 Dev</product>
          <component>virt</component>
          <version>5.10.y-9</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3-Medium</priority>
          <bug_severity>S3-normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="YTFD-oa">xu.chao6</reporter>
          <assigned_to name="YTFD-oa">xu.chao6</assigned_to>
          <cc>joseph.qi</cc>
    
    
    <cc>liu.song13</cc>
    
    
    <cc>mqaio</cc>
    
    
    <cc>xlpang</cc>
          
          <qa_contact name="shuming">qingming.su</qa_contact>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>15058</commentid>
    <comment_count>0</comment_count>
    <who name="YTFD-oa">xu.chao6</who>
    <bug_when>2023-03-13 20:02:15 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15064</commentid>
    <comment_count>1</comment_count>
    <who name="Joseph Qi">joseph.qi</who>
    <bug_when>2023-03-14 11:06:26 +0000</bug_when>
    <thetext>https://gitee.com/anolis/cloud-kernel/pulls/1451</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15066</commentid>
    <comment_count>2</comment_count>
    <who name="Joseph Qi">joseph.qi</who>
    <bug_when>2023-03-14 11:10:12 +0000</bug_when>
    <thetext>*** Bug 4353 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>