This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nscd/7067] New: nscd race between prune thread and cache invalidation


prune_cache() can be called twice in parallel on the same database with of
course devastating effects: the call in invalidate_cache() is protected with
prune_lock, but nscd_run_prune() does not actually hold this lock during
prune_cache().

This happens commonly e.g. on notebooks roaming between wireless networks
(NetworkManager invalidates the hosts cache).

Patch to follow, introducing new lock prune_run_lock to guard prune_cache() calls.

-- 
           Summary: nscd race between prune thread and cache invalidation
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nscd
        AssignedTo: drepper at redhat dot com
        ReportedBy: pasky at suse dot cz
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=7067

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]