public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/30305] New: Incorrect asm constraint in feraiseexcept on x86-64
@ 2023-04-03  7:46 fweimer at redhat dot com
  2023-04-03  7:46 ` [Bug math/30305] " fweimer at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2023-04-03  7:46 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30305

            Bug ID: 30305
           Summary: Incorrect asm constraint in feraiseexcept on x86-64
           Product: glibc
           Version: 2.38
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
  Target Milestone: ---
            Target: x86_64-linux-gnu
             Flags: security-

It's been reported that the old sysdeps/x86/fpu/bits/fenv.h implementation has
incorrect asm constraints because they not reflect that divss clobbers its
output argument. This has been fixed in with the removal of the inline
implementation in this commit:

commit 4a30b6109c119feeb95cf154382057fbf757d4da
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon Mar 9 10:21:51 2020 -0300

    x86: Remove feraiseexcept optimization

    Similar to fenvinline.h removal, this kind of optimization is better
    implemented by the compiler.  Also newer code avoid setting exceptions
    directly (for instance the code to make new logf, log2f and powf
    implementatation to now support SVID compat).

    The BZ#94194 [1] the corresponding GCC bug for adding replacements
    for these on x86.

    Checked on x86_64-linux-gnu and i686-linux-gnu.

    [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94194

However, the out-of-line implementation in sysdeps/x86_64/fpu/fraiseexcpt.c
seems to have the same bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-04-03 16:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-03  7:46 [Bug math/30305] New: Incorrect asm constraint in feraiseexcept on x86-64 fweimer at redhat dot com
2023-04-03  7:46 ` [Bug math/30305] " fweimer at redhat dot com
2023-04-03 15:25 ` fweimer at redhat dot com
2023-04-03 15:43 ` fweimer at redhat dot com
2023-04-03 16:41 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).