Summary: | revert malloc hook deprecation or provide an alternative | ||
---|---|---|---|
Product: | glibc | Reporter: | Daniel Micay <danielmicay> |
Component: | malloc | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | adhemerval.zanella, yann |
Priority: | P2 | Flags: | fweimer:
security-
|
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
Daniel Micay
2014-05-13 07:45:33 UTC
Here's the hook usage in jemalloc with an explanation of why this is required even in dynamically linked binaries: https://github.com/jemalloc/jemalloc/blob/dev/src/jemalloc.c#L1339 For 2.25 GLIBC has fixed some issues (BZ#17730, BZ#20432, BZ#20432) to support and simplify both dynamic and malloc interposition. There is no need to known glibc internal symbols neither interpose them to actually interpose the malloc on both glibc and loader (check malloc/tst-interpose-* tests). It is, however, non compatible solutions and some old releases do not support these fixes (I have backported them to my own branchs, linaro/2.21/master and linaro/2.23/master, so you might check what is required to interpose them). We can backport them to old releases branches so static allocation is correctly supported, however malloc hooks will not be reverted since they are, as you correctly pointed out, a deficient API with many issues and current approach solves these issues. |