Description of problem: When "mdadm --query" runs in a 32bit userspace on a 64bit kernel, compat ioctls (ioctl32) are used to talk to the md driver. Support for md bitmap ioctls was merged upstream in 2.6.19 but is missing from the RHEL5 kernels. This leads to error messages in dmesg when "mdadm --query" runs. Version-Release number of selected component (if applicable): 2.6.18-1.2714.el5 How reproducible: 100% Steps to Reproduce: 1. Install 32bit mdadm on a system running a 64bit kernel 2. Run "mdadm --query /some/md/device" Actual results: error printed to dmesg/console: ioctl32(mdadm:1776): Unknown cmd fd(3) cmd(50000915){10} arg(fa80e460) Expected results: No errors reported in dmesg. Additional info: This was fixed upstream by the following commits: http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=da3ed32fe568148ede256975d40825ffcdac767b http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=d19c2ee0b8d1cd83f8bc0f1f5e94e6b6ec71ea10
Created attachment 143416 [details] Add md bitmap compat ioctl support Patch merging the changes from the two git commits
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.
*** Bug 210175 has been marked as a duplicate of this bug. ***
QE ack for RHEL5.2. Reproducer in comment 0.
You can download this test kernel from http://people.redhat.com/dzickus/el5
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 the 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/RHBA-2008-0314.html