-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linux prctl add speculation control flags #2838
Conversation
r? @Amanieu (rust-highfive has picked a reviewer for you, use r? to override) |
90b5085
to
949874b
Compare
@@ -626,6 +626,19 @@ pub const PTRACE_PEEKSIGINFO_SHARED: ::c_uint = 1; | |||
pub const PTRACE_SYSEMU: ::c_uint = 31; | |||
pub const PTRACE_SYSEMU_SINGLESTEP: ::c_uint = 32; | |||
|
|||
pub const PR_GET_SPECULATION_CTRL: ::c_int = 52; | |||
pub const PR_SET_SPECULATION_CTRL: ::c_int = 52; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test fails with:
bad PR_SET_SPECULATION_CTRL value at byte 0: rust: 52 (0x34) != c 53 (0x35)
pub const PR_SET_SPECULATION_CTRL: ::c_int = 52; | |
pub const PR_SET_SPECULATION_CTRL: ::c_int = 53; |
949874b
to
6bc25bc
Compare
Thanks! @bors r+ |
linux prctl add speculation control flags
💔 Test failed - checks-actions |
@bors retry |
☀️ Test successful - checks-actions, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13, checks-cirrus-freebsd-14 |
No description provided.