[PATCH v2] elf: Make string tunables startup-only

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Thu Jul 30 11:47:12 GMT 2026



On 30/07/26 03:41, Andreas Schwab wrote:
> On Jul 29 2026, Adhemerval Zanella wrote:
> 
>> +/* Set by __tunable_seal_strings once the values of the string tunables are
>> +   no longer valid.  */
>> +static bool tunables_strings_sealed attribute_relro;
>> +
>> +static void __attribute__ ((noreturn))
>> +tunable_sealed_error (const tunable_t *cur, const char *action)
>> +{
>> +  _dl_fatal_printf ("Fatal glibc error: %s: string tunable %s after "
>> +		    "process initialization\n", cur->name, action);
> 
> I think this should be presented as an internal error, ie. it is not due
> to some kind of resource constraint, but a glibc programming error.
> 

Maybe something like:

  "internal error: %s: string tunable %s after process initialization\n"

?


More information about the Libc-alpha mailing list