URL:
https://github.com/SSSD/sssd/pull/5370
Title: #5370: nss: Use posix_fallocate() to alloc memcache file
deastoe commented:
"""
I have re-produced this on rawhide. As expected (since the failures appear limited to the
tests where sssd is killed immediately after the cache is cleared) this change appears to
expose a race condition where the receipt of the termination signal is causing the cache
clear to be interrupted.
```
(2020-10-23 16:23:34): [nss] [nss_clear_memcache] (0x0400): Clearing memory caches.
(2020-10-23 16:23:34): [nss] [sss_mmap_cache_init] (0x0100): Fast 'PASSWD' mmap
cache: timeout = 300, slots = 209712
(2020-10-23 16:23:34): [nss] [sss_mmap_cache_init] (0x0020): Failed to allocate file
/tmp/sssd-intg.BMBMV1g9/var/lib/sss/mc/passwd: 4(Interrupted system call)
(2020-10-23 16:23:34): [nss] [sss_mmap_cache_reinit] (0x0020): Failed to re-initialize
mmap cache.
(2020-10-23 16:23:34): [nss] [nss_clear_memcache] (0x0020): passwd mmap cache invalidation
failed
(2020-10-23 16:23:34): [nss] [sbus_issue_request_done] (0x0040):
sssd.service.clearMemcache: Error [4]: Interrupted system call
(2020-10-23 16:23:34): [nss] [sss_responder_ctx_destructor] (0x0400): Responder is being
shut down
```
"""
See the full comment at
https://github.com/SSSD/sssd/pull/5370#issuecomment-715453530