public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH][BZ #20973] Robust mutexes: Fix lost wake-up.
@ 2016-12-15 22:27 Torvald Riegel
  2016-12-15 22:29 ` Torvald Riegel
  0 siblings, 1 reply; 10+ messages in thread
From: Torvald Riegel @ 2016-12-15 22:27 UTC (permalink / raw)
  To: GLIBC Devel; +Cc: vl, Michael Adam, Rich Felker

See patch for a description.

Tested on x86_64-linux with our tests and the test case from the
original bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1401665

OK?

I'm sending this minimal patch first to have something that's easy to
backport.  I'll send further such patches for any other bugs I can find
for which a simple backport is possible.  I then plan to follow this up
with a general clean-up of robust mutexes including proper documentation
of the concurrent code.

There's another bug that's probably just a glibc problem, one that is a
glibc problem but seems to happen to work currently (at least on
x86_64), one bug that is just in kernel code, and there's also a general
design flaw in the glibc/kernel synchronization algorithm that prevents
us from guaranteeing the mutex destruction requirements.  I'll work on
the latter two subsequently and crosspost to LKML.

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

end of thread, other threads:[~2016-12-20 15:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-15 22:27 [PATCH][BZ #20973] Robust mutexes: Fix lost wake-up Torvald Riegel
2016-12-15 22:29 ` Torvald Riegel
2016-12-16 14:11   ` Florian Weimer
2016-12-16 14:45     ` Volker Lendecke
     [not found]       ` <CAJ+X7mT1cU1_2ON2JZM9oYMP_cak734tkf+PZJeo4MZg1i4gmw@mail.gmail.com>
2016-12-19 17:15         ` Florian Weimer
2016-12-16 22:13     ` Torvald Riegel
2016-12-19 19:47       ` Florian Weimer
2016-12-19 20:30         ` Carlos O'Donell
2016-12-20 15:03         ` Torvald Riegel
2016-12-19 18:20   ` Carlos O'Donell

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).