[Bug nptl/34543] New: PI mutex timed lock returns EINVAL for negative seconds

fweimer at redhat dot com via Glibc-bugs <[email protected]>
Newsgroups gmane.comp.lib.glibc.bugs
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=34543

            Bug ID: 34543
           Summary: PI mutex timed lock returns EINVAL for negative
                    seconds
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P3
         Component: nptl
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

We treat negative seconds as valid in the non-PI case:

          /* Work around the fact that the kernel rejects negative timeout
             values despite them being valid.  */
          if (__glibc_unlikely (abstime->tv_sec < 0))
            return ETIMEDOUT;

This is missing from the PI case, so we pass the kernel-provided EINVAL to the
application.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.