Bug 173155

Summary: kernel dm: DM_LIST_VERSIONS_CMD ioctl reponse truncated
Product: Red Hat Enterprise Linux 4 Reporter: Alasdair Kergon <agk>
Component: kernelAssignee: Alasdair Kergon <agk>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: jbaron
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHSA-2006-0132 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-03-07 20:42:49 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:    
Bug Blocks: 168429    

Description Alasdair Kergon 2005-11-14 18:21:44 UTC
In some circumstances the LIST_VERSIONS (dmsetup targets) output is truncated
because the size calculation forgets about a 'uint32_t' in each
structure - but the inclusion of the whole of ALIGN_MASK frequently
compensates for the omission.
                                                                                
(This is a quick workaround to use an upper bound.  The code ought
to be fixed to supply the actual size.)

As a result of this bug, 'lvcreate --type error' fails when it shouldn't.

Comment 1 Alasdair Kergon 2005-11-14 19:17:51 UTC
dm-list-targets-fix.patch

Comment 6 Red Hat Bugzilla 2006-03-07 20:42:49 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 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/RHSA-2006-0132.html