[PATCH v7 2/4] Add system-wide tunables: cache ld.so.cache

DJ Delorie dj@redhat.com
Mon Jun 15 19:41:42 GMT 2026


Arjun Shankar <arjun@redhat.com> writes:
>> +      offset = ALIGN_CACHE (sizeof (struct cache_file)
>> +                           + cache->nlibs * sizeof (struct file_entry));
>
> This should be tmp_cache instead of cache.

Fixed.

>> +  struct cache_extension_all_loaded tmp_ext;
>> +  if (!cache_extension_load (tmp_cache_new, tmp_cache, tmp_cachesize, &tmp_ext))
>> +    /* The extension is corrupt, so the cache is corrupt.  */
>> +    return;
>
> This is missing an munmap.

Fixed.



More information about the Libc-alpha mailing list