This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nscd/5381] New: nscd: Race condition of mempool_alloc() .. cache_add() and gc()
- From: "pasky at suse dot cz" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 21 Nov 2007 04:58:37 -0000
- Subject: [Bug nscd/5381] New: nscd: Race condition of mempool_alloc() .. cache_add() and gc()
- Reply-to: sourceware-bugzilla at sourceware dot org
nscd does not use sufficient locking, allowing gc() to be run between
mempool_alloc() of data and its addition by cache_add(). Thus, gc() will free
the data again before it could have been added and properly accounted for. The
code should take the read database lock already before the mempool_alloc() call.
--
Summary: nscd: Race condition of mempool_alloc() .. cache_add()
and gc()
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=5381
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.