Issue 20933 - druntime: core.thread doesn't support shadow stack
Summary: druntime: core.thread doesn't support shadow stack
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: x86_64 Linux
: P3 normal
Assignee: No Owner
URL:
Keywords:
Depends on: 24043
Blocks:
  Show dependency treegraph
 
Reported: 2020-06-15 16:27 UTC by Iain Buclaw
Modified: 2024-12-07 13:40 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Iain Buclaw 2020-06-15 16:27:32 UTC
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 Iain Buclaw 2020-06-15 16:56:33 UTC
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 dlangBugzillaToGithub 2024-12-07 13:40:22 UTC
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