This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 05/13] nptl: powerpc64: Fix Race conditions in pthread cancellation (BZ#12683)


On Wed, 2015-10-07 at 13:23 -0300, Adhemerval Zanella wrote:
> From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
> 
> This patches adds the powerpc64 modification required for the BZ#12683 fix.
> It basically removes the enable_asynccancel/disable_asynccancel function
> usage on code used on powerpc64, and provide a arch-specific symbol that
> contains global markers to be used in SIGCANCEL handler.
> 
> Checked on powerpc64 and powerpc64le.
> 
> 	 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fnctl):
> 	 Remove CANCEL_ASYNC/CANCEL_RESET usage.
> 	 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
> 	 Likewise.
> 	 (PSEUDO_RET): Likewise.
> 	 (__pthread_get_ip): Add implementation.
> 	 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
> 	 (SYSCALL_CANCEL_ERROR): New define.
> 	 (SYSCALL_CANCEL_ERRNO): New define.
> 	 * sysdeps/unix/sysv/linux/powerpc/syscall_cancel.S: New file:
> 	 cancellable syscall.
> 	 * sysdeps/unix/sysv/linux/powerpc/sysdep.c (__syscall_cancel_error):
> 	 New symbol: cancellable syscall error handler.
> ---

LGTM



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]