Bug 636906

Summary: 32bit compat vectored aio routines are broken
Product: Red Hat Enterprise Linux 6 Reporter: Jeff Moyer <jmoyer>
Component: kernelAssignee: Jeff Moyer <jmoyer>
Status: CLOSED ERRATA QA Contact: Zhouping Liu <zliu>
Severity: medium Docs Contact:
Priority: low    
Version: 6.1CC: nobody+295318, qcai
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-2.6.32-117.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-23 20:53:08 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 Jeff Moyer 2010-09-23 16:18:59 UTC
Description of problem:

It was reported[1] that 32 bit readv and writev AIO operations were
not functioning properly.  It turns out that the code to convert the
32bit io vectors to 64 bits was never written.  The results of that
can be pretty bad, but in my testing, it mostly ended up in generating
EFAULT as we walked off the list of I/O vectors provided.

[1] http://lkml.org/lkml/2010/3/8/309

See the upstream patch submission here: http://lkml.org/lkml/2010/4/30/434

Version-Release number of selected component (if applicable):
2.6.32-71.el6

How reproducible:
100%

Steps to Reproduce:
1. run the libaio test harness, built using -m32 and run on a 64bit box
  
Actual results:
Failure

Expected results:
Success

Comment 3 RHEL Program Management 2010-10-05 01:56:13 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 4 Jeff Moyer 2011-01-04 20:19:45 UTC
I'm backporting the following commits for this bug:

b83733639a494d5f42fa00a2506563fbd2d3015d
9d85cba718efeef9ca00ce3f7f34f5880737aa9b
7cbe17701a0379c7b05a79a6df4f24e41d2afde8
767b68e96993e29e3480d7ecdd9c4b84667c5762

Comment 6 Aristeu Rozanski 2011-02-18 22:14:39 UTC
Patch(es) available on kernel-2.6.32-117.el6

Comment 10 errata-xmlrpc 2011-05-23 20:53:08 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