Need a mechanism to disable glibc rseq for binaries with capabilities
Florian Weimer
fweimer@redhat.com
Thu Feb 26 13:49:07 GMT 2026
* Ashok Dwarakinath:
> Hi folks,
>
> We have a binary with CAP_SYS_ADMIN capability that is started by a
> non-root user. This binary is linked to Google tcmalloc. The service
> has a lot of threads, so it benefits from tcmalloc per-CPU caches. We
> are migrating to glibc 2.34 (RHEL 9) which enables glibc rseq by
> default. This results in google tcmalloc disabling per-CPU cache
> support (https://github.com/google/tcmalloc/issues/144). We found
> that disabling rseq using GLIBC_TUNABLES doesn't work for binaries
> with capabilities set. So, we need a different mechanism to make this
> work. Thoughts?
There might be a way to address this gap using path-based filters in
system-wide tunables:
[PATCH v5 4/4] Add system-wide tunables: Filters
<https://inbox.sourceware.org/libc-alpha/ddd06f961f6ef2c38838ae5775e630e7ec4d86ef.1770786739.git.dj@redhat.com/>
Ashok, would this cover your scenario? Would you be able to ship an
ldconfig configuration file along with your application that marks its
installation path as trusted and applies tunables to it?
Thanks,
Florian
More information about the Libc-alpha
mailing list