Bug 10972 - KSM support missing: MADV_MERGEABLE and MADV_UNMERGEABLE not defined
Summary: KSM support missing: MADV_MERGEABLE and MADV_UNMERGEABLE not defined
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-17 13:36 UTC by Aurelien Jarno
Modified: 2014-07-01 05:21 UTC (History)
1 user (show)

See Also:
Host: x86_64-linux-gnu
Target: x86_64-linux-gnu
Build: x86_64-linux-gnu
Last reconfirmed:
fweimer: security-


Attachments
Patch for main architectures (659 bytes, patch)
2009-11-17 13:36 UTC, Aurelien Jarno
Details | Diff
Patch for ports architectures (619 bytes, patch)
2009-11-17 13:37 UTC, Aurelien Jarno
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aurelien Jarno 2009-11-17 13:36:12 UTC
KSM support has been added in kernel 2.6.32, and with it the MADV_MERGEABLE and
MADV_UNMERGEABLE constants:
 
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d19f352484467a5e518639ddff0554669c10ffab

The following patches update glibc headers to also add this constants.
Comment 1 Aurelien Jarno 2009-11-17 13:36:41 UTC
Created attachment 4390 [details]
Patch for main architectures
Comment 2 Aurelien Jarno 2009-11-17 13:37:14 UTC
Created attachment 4391 [details]
Patch for ports architectures
Comment 3 Ulrich Drepper 2009-11-17 17:39:10 UTC
Already fixed in git.  Don't attach patches for ports to the real bug reports.