From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8650 invoked by alias); 19 Jul 2014 18:54:38 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 8481 invoked by uid 55); 19 Jul 2014 18:54:33 -0000 From: "bugdal at aerifal dot cx" To: glibc-bugs@sourceware.org Subject: [Bug nptl/12683] Race conditions in pthread cancellation Date: Sat, 19 Jul 2014 18:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: bugdal at aerifal dot cx X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 2.19 X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-07/txt/msg00646.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=12683 --- Comment #20 from Rich Felker --- Steven, I don't think this bug is related to your issue. If bug 9712 (of which your 17168 seems to be a duplicate) is resolved by adding futex and glibc makes futex a cancellation point, THEN the resolution of this bug (12683) would make it safe to use cancellation with the futex function in a way that's race-free. I think this is a strong argument for resolving 9712 by adding futex: unless it's part of libc, there's no safe way to make it cancellable, because wrapping syscall() with async cancellation will introduce an application-level bug comparable to this bug. -- You are receiving this mail because: You are on the CC list for the bug.