[PATCH] tests: Handle system-wide tunables in rseq tests

Michael Jeanson mjeanson@efficios.com
Tue Jul 7 14:45:12 GMT 2026


On 2026-07-06 17:21, DJ Delorie wrote:
> Michael Jeanson <mjeanson@efficios.com> writes:
>> Also one more question, are system-wide tunables supposed to work with
>> statically linked executables? In my test environment I'm able to make
>> tst-rseq fail with a suitable /etc/tunables.conf but it seem to have no
>> impact on tst-rseq-static.
> 
> The current code is conditional on both SHARED and USE_LDCONFIG, as the
> data comes from /etc/ld.so.cache.
> 
> I don't remember exactly what the blocker here was, as we do support
> calling dlopen() from a static binary, and I assume that must load
> /etc/ld.so.cache.

That should probably be part of the user documentation, it seenms like 
an easy pitfall since the GLIBC_TUNABLE variable is not affected by the 
linking type of a binary.



More information about the Libc-alpha mailing list