public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "bugdal at aerifal dot cx" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sourceware.org Subject: [Bug nptl/14485] File corruption race condition in robust mutex unlocking Date: Tue, 10 Feb 2015 00:18:00 -0000 [thread overview] Message-ID: <bug-14485-131-WAy4Aj3cSP@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-14485-131@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=14485 --- Comment #8 from Rich Felker <bugdal at aerifal dot cx> --- In reply to comment 4, this issue can be avoided by applications in at least two ways: 1. Use a separate mapping of the shared synchronization object for each user/thread that might want to unmap it. 2. Use a separate synchronization object local to the process to synchronize unmapping of the shared mutex. Since the only way you'd have multiple threads in the same process accessing the shared synchronization object is by storing the pointer to the (mapping containing the) shared mutex in some process-local object that's shared between threads, it seems natural that you would already be synchronizing access to this memory with another mutex (or other synchronization object) stored with the pointer. So approach 2 seems like it's always practical, probably doesn't involve any new synchronization, and likely makes it unnecessary/useless to support self-synchronized unmapping. On the other hand, it may not actually be any harder to support self-synchronized unmapping than to support self-synchronized destruction+unmapping, which almost certainly needs to be supported. -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2015-02-10 0:18 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-08-17 18:52 [Bug nptl/14485] New: " bugdal at aerifal dot cx 2012-08-17 22:34 ` [Bug nptl/14485] " bugdal at aerifal dot cx 2014-06-17 18:35 ` fweimer at redhat dot com 2014-06-25 10:47 ` fweimer at redhat dot com 2014-06-25 15:47 ` bugdal at aerifal dot cx 2015-02-09 0:28 ` mail at nh2 dot me 2015-02-09 20:41 ` carlos at redhat dot com 2015-02-09 21:13 ` carlos at redhat dot com 2015-02-09 22:51 ` bugdal at aerifal dot cx 2015-02-10 0:18 ` bugdal at aerifal dot cx [this message] 2015-02-10 21:57 ` triegel at redhat dot com 2015-02-10 22:17 ` bugdal at aerifal dot cx 2015-08-09 12:29 ` mail at nh2 dot me 2021-10-21 15:42 ` fweimer at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-14485-131-WAy4Aj3cSP@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).