Bug 9313

Summary: valloc() is broken in glibc-2.1.3: returns are not aligned
Product: [Retired] Red Hat Linux Reporter: Stephen Tweedie <sct>
Component: glibcAssignee: Cristian Gafton <gafton>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
regression test for valloc() in glibc. none

Description Stephen Tweedie 2000-02-10 17:51:08 UTC
valloc() is a variant of malloc() intended to return page-aligned
memory areas.  It is relied on by certain programs for mmap() alignment
or for raw IO, in which cases the kernel enforces page alignment on the
user's buffers.

RH6.1 valloc() correctly aligns its return addresses.  This is no longer
true in RH6.2 beta, and code may break because of this.  In particular,
lmdd running on raw devices is now broken in 6.2 due to this problem.

I'll attach a trivial test program demonstrating the bug.

Comment 1 Stephen Tweedie 2000-02-10 17:52:59 UTC
Created attachment 110 [details]
regression test for valloc() in glibc.

Comment 2 Stephen Tweedie 2000-02-23 17:11:59 UTC
Confirmed fixed in glibc-2.1.3-10.