[PATCH v2 00/23] NSS, nscd updates (for group merging and more)

Carlos O'Donell carlos@redhat.com
Mon Mar 23 13:48:48 GMT 2026


On 3/20/26 4:40 PM, Florian Weimer wrote:
> This is an enhanced rework of my previous series:
> 
>    RFC: Towards deprecating the ERANGE protocol for NSS
>    <https://inbox.sourceware.org/libc-alpha/cover.1764012721.git.fweimer@redhat.com/>
> 
> The new version covers passwd and group.  It should have a proper
> software TM for the shared nscd mapping for those two nscd databases,
> following the same approach that we use in _dl_find_object.
> 
> The existing nscd test is enhanced with checks that the shared cache
> actually works, by examining the statistics counters.
> 
> In the nscd client code, I switched the ad-hoc read-write lock to a the
> real one from <pthread.h> (still under the __libc_rwlock_* alias).  This
> simplifies the code quite a bit and removes a few corner cases where the
> old code was busy-waiting.
> 
> The reworked group merging code is still included, that part has not
> changed.
> 
> One thing that is annoying is the GLIBC_2.1.2 compatibility version that
> we need for the *_r functions.  I had not noticed the need for that
> before.  This is quite a blob of extra code per *_r function, so I think
> we should generate that, but perhaps not with the preprocessor.

Fails pre-commit CI. May you please have a look?
https://patchwork.sourceware.org/project/glibc/patch/05e0a557343d05d4406b3776e13af4b1147b1541.1774037705.git.fweimer@redhat.com/

The failure is across all 3 testers so it looks reproducible.

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list