Red Hat Bugzilla – Bug 9313
valloc() is broken in glibc-2.1.3: returns are not aligned
Last modified: 2008-05-01 11:37:54 EDT
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
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.
Created attachment 110 [details]
regression test for valloc() in glibc.
Confirmed fixed in glibc-2.1.3-10.