This is the mail archive of the
mailing list for the glibc project.
[PATCH 0/4] nptl: Fix Race conditions in pthread cancellation, (BZ#12683)
- From: Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Fri, 19 Sep 2014 10:21:10 -0300
- Subject: [PATCH 0/4] nptl: Fix Race conditions in pthread cancellation, (BZ#12683)
- Authentication-results: sourceware.org; auth=none
This patch set is the initial proposed fix for BZ#12683 . This is
a large patch set and incomplete in the sense it does not implement
the required parts for *all* architectures: currently I have adjusted
only for powerpc64 and x86_64. My idea is to first get comments
about the current approach and if is feasible I will work on more
arches (initially powerpc32, i386, and x32). However it will require
arch mantainers some help and debugging to make all arch at par.
The bugzilla issue, current GLIBC code and proposed approach is described at
GLIBC wiki page . My plan is to update the missing comments from
previous RFC thread (such as memory barriers in pthread_setcanceltype)
and guidelines to adjustment to missing architectures.
I pushed the patch set a sourceware.org branch . One note about the
patch size: the fixes required a large rework on GLIBC internals and
I saw quite difficult to split in *concise* parts to lead to somewhat
independent parts. However, comments on to split better this set is
The proposed patch is divided in 4 parts:
Patch 1: Pthread cancellation cleanups and full fix for powerpc64.
Patch 2: Required fixes for x86_64.
Patch 3: Missing NPTL failures fixes.
Patch 4: Generic lowlevellock-futex.h adjustment.
The bugzilla testcases are now showing the expected result: now leak resource
in test 1 and a hangup in test2.