Bug 2040781

Summary: Fix data corruption in nbdkit-cow-filter and nbdkit-cache-filter [rhel-av-8.5z]
Product: Red Hat Enterprise Linux Advanced Virtualization Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: nbdkitAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: mxie <mxie>
Severity: medium Docs Contact:
Priority: high    
Version: 8.6CC: eblake, juzhou, kkiwi, mkalinin, mxie, rjones, tyan, tzheng, virt-bugs, virt-maint, vwu, xiaodwan, ymankad
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 8.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nbdkit-1.24.0-3.el8_5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2040775 Environment:
Last Closed: 2022-02-02 08:47:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1990135, 2040775    
Bug Blocks:    

Comment 4 mxie@redhat.com 2022-01-17 16:17:34 UTC
Verify the bug with nbdkit-1.24.0-3.module+el8.5.0+13900

Steps:
1.Check if the patch 'https://gitlab.com/nbdkit/nbdkit/-/commit/c0b15574647672cb5c48178333acdd07424692ef' is added to nbdkit-1.24.0-3.module+el8.5.0+13900

# rpmbuild -rp nbdkit-1.24.0-3.module+el8.5.0+13900+a08c0464.src.rpm

#  cat /root/rpmbuild/BUILD/nbdkit-1.24.0/filters/cache/cache.c |grep memset
      memset (&block[blkoffs], 0, n);
    memset (block, 0, blksize);
      memset (block, 0, count);

# cat /root/rpmbuild/BUILD/nbdkit-1.24.0/filters/cow/cow.c |grep memset
      memset (&block[blkoffs], 0, n);
    memset (block, 0, BLKSIZE);
      memset (block, 0, count);


Result:
   The bug has been fixed.

Comment 5 mxie@redhat.com 2022-01-18 01:51:46 UTC
The bug has been fixed according to comment4, move bug from ON_QA to VERIFIED

Comment 7 errata-xmlrpc 2022-02-02 08:47:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Low: virt:av and virt-devel:av security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0397