[Bug nscd/19733] nscd_certainly_running flag mechanism broken on nscd shared cache

fweimer at redhat dot com sourceware-bugzilla@sourceware.org
Thu Mar 10 20:21:00 GMT 2016


https://sourceware.org/bugzilla/show_bug.cgi?id=19733

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
              Flags|                            |security-

--- Comment #3 from Florian Weimer <fweimer at redhat dot com> ---
We could piggy-back on the robust mutex processing on Linux.

I have not tested if the current implementation supports this, but it might be
possible to have a permanently-locked mutex, and check that it is locked using
pthread_mutex_trylock.  If this function returns EOWNERDEAD, the mapping is
stale.  If it returns EBUSY, the mapping is live.

(Marking as security-, even though this could lead to stale data being used.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list