public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/26552] New: CPU_FEATURE_USABLE_P should be more conservative
@ 2020-08-29 12:34 hjl.tools at gmail dot com
  2020-09-03 11:41 ` [Bug dynamic-link/26552] " hjl.tools at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: hjl.tools at gmail dot com @ 2020-08-29 12:34 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 26552
           Summary: CPU_FEATURE_USABLE_P should be more conservative
           Product: glibc
           Version: 2.33
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: i386,x86-64

Usability of some CPU features can't be detected from user space.  For
example, CR4.FSGSBASE

FSGSBASE-Enable Bit (bit 16 of CR4) — Enables the instructions RDFSBASE,
RDGSBASE, WRFSBASE, and WRGSBASE.

>From user space, we can't tell if FSGSBASE is enabled.

As the start, CPU_FEATURE_USABLE_P should return true only for new ISAs
which can be detected from user space.

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

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

* [Bug dynamic-link/26552] CPU_FEATURE_USABLE_P should be more conservative
  2020-08-29 12:34 [Bug dynamic-link/26552] New: CPU_FEATURE_USABLE_P should be more conservative hjl.tools at gmail dot com
@ 2020-09-03 11:41 ` hjl.tools at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: hjl.tools at gmail dot com @ 2020-09-03 11:41 UTC (permalink / raw)
  To: glibc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |2.33
         Resolution|---                         |FIXED

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed for 2.33 by

ommit 04bba1e5d84b6fd8d3a3b006bc240cd5d241ee30
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Aug 5 13:51:56 2020 -0700

    x86: Set CPU usable feature bits conservatively [BZ #26552]

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

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

end of thread, other threads:[~2020-09-03 11:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-29 12:34 [Bug dynamic-link/26552] New: CPU_FEATURE_USABLE_P should be more conservative hjl.tools at gmail dot com
2020-09-03 11:41 ` [Bug dynamic-link/26552] " hjl.tools at gmail 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).