Bug 26615 - powerpc: libc segfaults when LD_PRELOADed with libgcc
Summary: powerpc: libc segfaults when LD_PRELOADed with libgcc
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.28
: P2 normal
Target Milestone: 2.33
Assignee: Raphael Moreira Zinsly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-14 16:22 UTC by Raphael Moreira Zinsly
Modified: 2020-11-02 10:08 UTC (History)
3 users (show)

See Also:
Host:
Target: powerpc64le*
Build:
Last reconfirmed: 2020-09-15 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Moreira Zinsly 2020-09-14 16:22:51 UTC
On RHEL 8.2 if you try to run:
$ LD_PRELOAD=/lib64/libgcc_s.so.1 /lib64/libc.so.6
You will get a segmentation fault on powerpc64le, this is due to an _rtld_global_ro._dl_powerpc_cpu_features access without checking for a _rtld_global_ro reallocation.
This patch fix the issue: https://sourceware.org/pipermail/libc-alpha/2020-September/117567.html
Comment 1 Tulio Magno Quites Machado Filho 2020-09-15 16:06:43 UTC
There is a patch proposing to fix this issue here: https://patchwork.sourceware.org/project/glibc/patch/20200914145924.11389-1-rzinsly@linux.ibm.com/
Comment 2 Raphael Moreira Zinsly 2020-09-22 21:00:41 UTC
The patch was accepted.