This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/10381] New: sdt.h macros create relocatable addresses in non-writable allocated .probes section
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 10 Jul 2009 11:22:12 -0000
- Subject: [Bug runtime/10381] New: sdt.h macros create relocatable addresses in non-writable allocated .probes section
- Reply-to: sourceware-bugzilla at sourceware dot org
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.