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
..
aicache.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
cache.c nscd: Skip unusable entries in first pass in prune_cache (bug 30800) 2023-08-29 08:28:38 +02:00
cachedumper.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
connections.c nscd: Do not rebuild getaddrinfo (bug 30709) 2023-08-11 10:10:16 +02:00
dbg_log.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dbg_log.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Depend
getgrgid_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getgrnam_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gethstbyad_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gethstbynm3_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getpwnam_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getpwuid_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getsrvbynm_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getsrvbypt_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
grpcache.c nscd: Use errval, not errno to guide cache update (bug 30662) 2023-07-24 15:12:26 +02:00
hstcache.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
initgrcache.c Fix all the remaining misspellings -- BZ 25337 2023-06-02 01:39:48 +00:00
Makefile nscd: Do not rebuild getaddrinfo (bug 30709) 2023-08-11 10:10:16 +02:00
mem.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
netgroupcache.c Replace rawmemchr (s, '\0') with strchr 2023-02-06 16:16:19 +00:00
nscd_conf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nscd_getai.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nscd_getgr_r.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
nscd_gethst_r.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
nscd_getpw_r.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
nscd_getserv_r.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
nscd_helper.c Fix all the remaining misspellings -- BZ 25337 2023-06-02 01:39:48 +00:00
nscd_initgroups.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nscd_netgroup.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
nscd_proto.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
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
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: Improve nscd.conf comments. 2019-08-19 09:57:58 -04:00
nscd.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nscd.init
nscd.service
nscd.tmpfiles
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 Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
selinux.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
servicescache.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00