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/19733] nscd_certainly_running flag mechanism broken on nscd shared cache


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.

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