This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 00/10] nptl: Fix Race conditions in pthread cancellation (BZ#12683)
- From: Chris Metcalf <cmetcalf at ezchip dot com>
- To: Joseph Myers <joseph at codesourcery dot com>, Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 18 Sep 2015 13:39:21 -0400
- Subject: Re: [PATCH 00/10] nptl: Fix Race conditions in pthread cancellation (BZ#12683)
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp dot mailfrom=cmetcalf at ezchip dot com;
- References: <55FB1CA0 dot 2 at linaro dot org> <alpine dot DEB dot 2 dot 10 dot 1509172032090 dot 2455 at digraph dot polyomino dot org dot uk> <55FC0CC7 dot 5030809 at linaro dot org> <alpine dot DEB dot 2 dot 10 dot 1509181322290 dot 5001 at digraph dot polyomino dot org dot uk> <55FC1F25 dot 402 at linaro dot org> <alpine dot DEB dot 2 dot 10 dot 1509181511300 dot 11870 at digraph dot polyomino dot org dot uk>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:23
On 09/18/2015 11:31 AM, Joseph Myers wrote:
One way is to make the return syscall another type like __syscall_arg_t
>and make the specific implementation for such ports to redefine it to
>a better one if it is required.
I think that's the right logical thing to do to handle such ABIs more
cleanly and reliably.
Whether it's needed for this patch series could be determined by examining
all syscalls.list entries for cancellable syscalls that can be used for
ILP32 configurations with 64-bit registers used in the syscall interface
(that's MIPS n32 and x86_64 x32, and I'm not sure about what the syscall
interface for tilegx32 looks like), to see if any beyond lseek can return
non-error values 2^32 or more.
I believe the tilegx32 syscall ABI uses only 32-bit values, as it was
modeled on the 32-bit x86 compat ABI.
--
Chris Metcalf, EZChip Semiconductor
http://www.ezchip.com