Bug 20933 – druntime: core.thread doesn't support shadow stack

Status
NEW
Severity
normal
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2020-06-15T16:27:32Z
Last change time
2024-12-07T13:40:22Z
Assigned to
No Owner
Creator
Iain Buclaw
Depends on
24043
Moved to GitHub: dmd#17188 →

Comments

Comment #0 by ibuclaw — 2020-06-15T16:27:32Z
As druntime manipulates user stack and doesn't support shadow stack from Intel CET. This _might_ be a problem on linux/glibc platforms that are configured to make use of this feature, but I haven't looked too hard at it to give a definitive yes/no. https://software.intel.com/content/www/us/en/develop/articles/intel-sdm.html
Comment #1 by ibuclaw — 2020-06-15T16:56:33Z
Confirmed, druntime won't work on platforms with Intel CET enabled. FAIL: libphobos.druntime/core/thread.d execution test FAIL: libphobos.druntime_shared/core/thread.d execution test FAIL: libphobos.phobos_shared/std/concurrency.d execution test FAIL: libphobos.phobos/std/concurrency.d execution test
Comment #2 by robert.schadek — 2024-12-07T13:40:22Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17188 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB