public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nscd/5381] New: nscd: Race condition of mempool_alloc() .. cache_add() and gc()
@ 2007-11-21  4:58 pasky at suse dot cz
  2007-11-21  4:59 ` [Bug nscd/5381] " pasky at suse dot cz
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: pasky at suse dot cz @ 2007-11-21  4:58 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-02-13 20:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-21  4:58 [Bug nscd/5381] New: nscd: Race condition of mempool_alloc() .. cache_add() and gc() pasky at suse dot cz
2007-11-21  4:59 ` [Bug nscd/5381] " pasky at suse dot cz
2007-12-15  9:39 ` ismail at pardus dot org dot tr
2008-04-19 17:36 ` drepper at redhat dot com
2008-11-22 11:09 ` pasky at suse dot cz
2008-11-26 13:41 ` pasky at suse dot cz
2008-11-26 13:42 ` pasky at suse dot cz
2008-11-26 16:12 ` drepper at redhat dot com
2008-11-26 21:51 ` pasky at suse dot cz
2009-01-16 15:37 ` pasky at suse dot cz
2009-02-13 20:37 ` drepper at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).