[Bug runtime/10381] New: sdt.h macros create relocatable addresses in non-writable allocated .probes section
mjw at redhat dot com
sourceware-bugzilla@sourceware.org
Fri Jul 10 11:22:00 GMT 2009
This causes selinux memory protection failures:
SELinux is preventing uprobesgcc-O0de from loading
/usr/local/build/systemtap-obj/testsuite/libuprobeslibgcc-O0default-debug.so
which requires text relocation.
Which look like:
./myexe: error while loading shared libraries: libmylib.so: cannot open shared
object file: No such file or directory
Where mylib.c just has the innocent looking:
STAP_PROBE1(test, lib_main, 1);
This seems to be caused by the fact that we are taking the address of the
generated label (&&label) and store that in the .probes section. Which seem to
result in R_X86_64_RELATIVE relocations in the .probes section, which is
insegment 0 which is LOADed with just R E, not W.
--
Summary: sdt.h macros create relocatable addresses in non-
writable allocated .probes section
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: runtime
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: mjw at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10381
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Systemtap
mailing list