This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/16418] [powerpc] ppc's get_clockfreq is racy and cancel-unsafe
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 21 Jan 2015 15:54:23 +0000
- Subject: [Bug libc/16418] [powerpc] ppc's get_clockfreq is racy and cancel-unsafe
- Auto-submitted: auto-generated
- References: <bug-16418-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16418
--- Comment #2 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 6b2ba95b6baab6b1789e8823c8a808e09bc98794 (commit)
from 191220b3065c659065f8c1e5282ea6410aa47a93 (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=6b2ba95b6baab6b1789e8823c8a808e09bc98794
commit 6b2ba95b6baab6b1789e8823c8a808e09bc98794
Author: Adhemerval Zanella <azanella@linux.vnet.ibm.com>
Date: Mon Nov 24 16:18:26 2014 -0500
BZ #16418: Fix powerpc get_clockfreq raciness
This patch fix powerpc __get_clockfreq racy and cancel-safe issues by
dropping internal static cache and by using nocancel file operations.
The vDSO failure check is also removed, since kernel code does not
return an error (it cleans cr0.so bit on function return) and the static
code (to read value /proc) now uses non-cancellable calls.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 +
NEWS | 18 ++--
sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c | 128 +++++++++++------------
3 files changed, 74 insertions(+), 78 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.