This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
NPTL futex error handling
- From: Florian Weimer <fweimer at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 27 Jan 2014 15:27:29 +0100
- Subject: NPTL futex error handling
- Authentication-results: sourceware.org; auth=none
Looking at the kernel code, I believe that FUTEX_LOCK_PI and FUTEX_WAKE
(in the case of cross-process mutexes, it seems) can fail with ENOMEM,
in addition to the more-or-less expected failure cases.
Is the ENOMEM return value due to kernel changes after the initial futex
implementation, or has this already been evaluated and deemed not be
necessary for correctness?
--
Florian Weimer / Red Hat Product Security Team