[Bug nptl/23861] rdlock stalls indefinitely on an unlocked pthread rwlock
cvs-commit at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Thu Dec 13 11:25:00 GMT 2018
https://sourceware.org/bugzilla/show_bug.cgi?id=23861
--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via f21e8f8ca466320fed38bdb71526c574dae98026 (commit)
via 3d265911c2aac65d978f679101594f9071024874 (commit)
from bf8ae8c09ab7ae4c402f26fd1a2cff4b64e50eea (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f21e8f8ca466320fed38bdb71526c574dae98026
commit f21e8f8ca466320fed38bdb71526c574dae98026
Author: Andreas Schwab <schwab@suse.de>
Date: Thu Nov 8 14:28:22 2018 +0100
Fix rwlock stall with PREFER_WRITER_NONRECURSIVE_NP (bug 23861)
In the read lock function (__pthread_rwlock_rdlock_full) there was a
code path which would fail to reload __readers while waiting for
PTHREAD_RWLOCK_RWAITING to change. This failure to reload __readers
into a local value meant that various conditionals used the old value
of __readers and with only two threads left it could result in an
indefinite stall of one of the readers (waiting for PTHREAD_RWLOCK_RWAITING
to go to zero, but it never would).
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3d265911c2aac65d978f679101594f9071024874
commit 3d265911c2aac65d978f679101594f9071024874
Author: Andreas Schwab <schwab@suse.de>
Date: Mon Nov 12 11:11:40 2018 +0100
Reindent nptl/pthread_rwlock_common.c
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 9 +++
nptl/Makefile | 3 +-
nptl/pthread_rwlock_common.c | 160 +++++++++++++++++++++---------------------
nptl/tst-rwlock-pwn.c | 87 +++++++++++++++++++++++
4 files changed, 179 insertions(+), 80 deletions(-)
create mode 100644 nptl/tst-rwlock-pwn.c
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list