Bug 669272

Summary: xfs: need upstream unaligned aio/dio data corruption fixes
Product: Red Hat Enterprise Linux 6 Reporter: Dave Chinner <dchinner>
Component: kernelAssignee: Dave Chinner <dchinner>
Status: CLOSED ERRATA QA Contact: Petr Beňas <pbenas>
Severity: high Docs Contact:
Priority: low    
Version: 6.1CC: esandeen, pbenas, pstehlik, yugzhang
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kernel-2.6.32-112.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-23 20:37:32 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:

Description Dave Chinner 2011-01-13 05:48:58 UTC
Description of problem:

The outstanding problem of qemu using aio on unaligned partitions still needs fixing. The original set of problems were reported in 589985, and the equivalent ext4 bug is 615309. A set of fixes for XFS was just accepted upstream for 2.6.38, found here:

http://oss.sgi.com/archives/xfs/2011-01/msg00156.html

Version-Release number of selected component (if applicable):

RHEL 6.1

How reproducible:

100%

Steps to Reproduce:
1. Run test 240 in xfstests.
  
Actual results:
Sub block data corruption is detected

Expected results:
No data corruption.

Additional info:

Comment 2 Dave Chinner 2011-01-13 06:10:56 UTC
The upstream patch series has too many dependencies to apply to a RHEL 6 tree easily, so I'm going to port only the first and last patches of the series and ignore all the clean-ups. The first patch fixes sync write error return values, the last patch fixes the unaligned dio issue.

Comment 3 Eric Sandeen 2011-01-13 22:11:09 UTC
Dave, if you can make this one for 6.1, can you set devel_ack?  thanks.

Comment 4 RHEL Program Management 2011-01-14 06:30:51 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 5 Dave Chinner 2011-01-14 22:26:45 UTC
patches posted to rhkernel-list on 14/1/11

Comment 6 Aristeu Rozanski 2011-02-03 16:00:13 UTC
Patch(es) available on kernel-2.6.32-112.el6

Comment 10 Petr Beňas 2011-02-14 12:24:01 UTC
Reproduced  in 2.6.32-94.el6 and verified in 2.6.32-104.el6.

Comment 11 errata-xmlrpc 2011-05-23 20:37:32 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0542.html