public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/26625] New: [2.33 Regression] CET is disabled
@ 2020-09-16 12:16 hjl.tools at gmail dot com
2020-09-17 12:31 ` [Bug libc/26625] " hjl.tools at gmail dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2020-09-16 12:16 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=26625
Bug ID: 26625
Summary: [2.33 Regression] CET is disabled
Product: glibc
Version: 2.33
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
CC: drepper.fsp at gmail dot com
Target Milestone: ---
commit 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]
Set CPU usable feature bits only for CPU features which are usable in
user space and whose usability can be detected from user space, excluding
features like FSGSBASE whose enable bit can only be checked in the kernel.
clears the usable bit of IBT and SHSTK since we don't know if IBT and SHSTK
are usable much later. But there are:
sysdeps/x86/cpu-features.c: if (!CPU_FEATURE_USABLE (IBT))
sysdeps/x86/cpu-features.c: if (!CPU_FEATURE_USABLE (SHSTK))
sysdeps/x86/dl-cet.c: enable_ibt &= (CPU_FEATURE_USABLE (IBT)
sysdeps/x86/dl-cet.c: enable_shstk &= (CPU_FEATURE_USABLE (SHSTK)
sysdeps/x86/tst-get-cpu-features.c: CHECK_CPU_FEATURE_USABLE (SHSTK);
sysdeps/x86/tst-get-cpu-features.c: CHECK_CPU_FEATURE_USABLE (IBT);
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/26625] [2.33 Regression] CET is disabled
2020-09-16 12:16 [Bug libc/26625] New: [2.33 Regression] CET is disabled hjl.tools at gmail dot com
@ 2020-09-17 12:31 ` hjl.tools at gmail dot com
2021-01-27 4:01 ` hjl.tools at gmail dot com
2021-01-29 12:07 ` hjl.tools at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2020-09-17 12:31 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=26625
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |2.33
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed by
commit 94cd37ebb293321115a36a422b091fdb72d2fb08
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Sep 16 05:27:32 2020 -0700
x86: Use HAS_CPU_FEATURE with IBT and SHSTK [BZ #26625]
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/26625] [2.33 Regression] CET is disabled
2020-09-16 12:16 [Bug libc/26625] New: [2.33 Regression] CET is disabled hjl.tools at gmail dot com
2020-09-17 12:31 ` [Bug libc/26625] " hjl.tools at gmail dot com
@ 2021-01-27 4:01 ` hjl.tools at gmail dot com
2021-01-29 12:07 ` hjl.tools at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2021-01-27 4:01 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=26625
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |---
Status|RESOLVED |REOPENED
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
This caused the regression since
GLIBC_TUNABLES=glibc.cpu.hwcaps=-IBT,-SHSTK
can no longer be used to disable IBT nor SHSTK. We should treat
IBT and SHSTK as special cases:
1. Set usable feature bits if CPU supports it and CET is enabled.
2. Clears the usable feature bits for GLIBC_TUNABLES or kernel
doesn't support it.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/26625] [2.33 Regression] CET is disabled
2020-09-16 12:16 [Bug libc/26625] New: [2.33 Regression] CET is disabled hjl.tools at gmail dot com
2020-09-17 12:31 ` [Bug libc/26625] " hjl.tools at gmail dot com
2021-01-27 4:01 ` hjl.tools at gmail dot com
@ 2021-01-29 12:07 ` hjl.tools at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2021-01-29 12:07 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=26625
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|REOPENED |RESOLVED
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed by
commit 04dff6fc0d4ad44fc4491f89fed6574380b78251
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Jan 26 20:48:45 2021 -0800
x86: Properly set usable CET feature bits [BZ #26625]
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-01-29 12:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16 12:16 [Bug libc/26625] New: [2.33 Regression] CET is disabled hjl.tools at gmail dot com
2020-09-17 12:31 ` [Bug libc/26625] " hjl.tools at gmail dot com
2021-01-27 4:01 ` hjl.tools at gmail dot com
2021-01-29 12:07 ` 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).