glibc/nscd
Florian Weimer c00b984fcd nscd: Skip unusable entries in first pass in prune_cache (bug 30800)
Previously, if an entry was marked unusable for any reason, but had
not timed out yet, the assert would trigger.

One way to get into such state is if a data change is detected during
re-validation of an entry.  This causes the entry to be marked as not
usable.  If exits nscd soon after that, then the clock jumps
backwards, and nscd restarted, the cache re-validation run after
startup triggers the removed assert.

The change is more complicated than just the removal of the assert
because entries marked as not usable should be garbage-collected in
the second pass.  To make this happen, it is necessary to update some
book-keeping data.

Reviewed-by: DJ Delorie <dj@redhat.com>
2023-08-29 08:28:38 +02:00
..
Depend
Makefile nscd: Do not rebuild getaddrinfo (bug 30709) 2023-08-11 10:10:16 +02:00
aicache.c
cache.c nscd: Skip unusable entries in first pass in prune_cache (bug 30800) 2023-08-29 08:28:38 +02:00
cachedumper.c
connections.c nscd: Do not rebuild getaddrinfo (bug 30709) 2023-08-11 10:10:16 +02:00
dbg_log.c
dbg_log.h
getgrgid_r.c
getgrnam_r.c
gethstbyad_r.c
gethstbynm3_r.c
getpwnam_r.c
getpwuid_r.c
getsrvbynm_r.c
getsrvbypt_r.c
grpcache.c nscd: Use errval, not errno to guide cache update (bug 30662) 2023-07-24 15:12:26 +02:00
hstcache.c
initgrcache.c Fix all the remaining misspellings -- BZ 25337 2023-06-02 01:39:48 +00:00
mem.c
netgroupcache.c
nscd-client.h Fix all the remaining misspellings -- BZ 25337 2023-06-02 01:39:48 +00:00
nscd.c Fix all the remaining misspellings -- BZ 25337 2023-06-02 01:39:48 +00:00
nscd.conf
nscd.h
nscd.init
nscd.service
nscd.tmpfiles
nscd_conf.c
nscd_getai.c
nscd_getgr_r.c
nscd_gethst_r.c
nscd_getpw_r.c
nscd_getserv_r.c
nscd_helper.c Fix all the remaining misspellings -- BZ 25337 2023-06-02 01:39:48 +00:00
nscd_initgroups.c
nscd_netgroup.c
nscd_proto.h
nscd_setup_thread.c Fix all the remaining misspellings -- BZ 25337 2023-06-02 01:39:48 +00:00
nscd_stat.c Fix all the remaining misspellings -- BZ 25337 2023-06-02 01:39:48 +00:00
pwdcache.c nscd: Use errval, not errno to guide cache update (bug 30662) 2023-07-24 15:12:26 +02:00
res_hconf.c
selinux.c
selinux.h
servicescache.c