During cache pruning the nscd cache is temparily inconsistent which is visible to clients that read a shared cache.
Created attachment 12633 [details] getent.c Run this in separate shells: S1# while :; do touch /etc/group; done S2# ./getent root S3# ./getent wheel
Fixed in 2.33.
commit 5e74e6f85842892bc25da8e8c70d8dadd485941a Author: Andreas Schwab <schwab@suse.de> Date: Wed Jun 17 16:05:13 2020 +0200 nscd: bump GC cycle during cache pruning (bug 26130) While nscd prunes a cache it becomes inconsistent temporarily, which is visible to clients if that cache is shared. Bump the GC cycle counter so that the clients notice the modification window. Uniformly use atomic_fetch_add to modify the GC cycle counter.