Skip to content
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

test_speculation_ctrl will fail on some systems #31

Open
catern opened this issue Dec 14, 2020 · 0 comments
Open

test_speculation_ctrl will fail on some systems #31

catern opened this issue Dec 14, 2020 · 0 comments

Comments

@catern
Copy link

catern commented Dec 14, 2020

test_speculation_ctrl calls prctl(PR_SET_SPECULATION_CTRL, PR_SPEC_STORE_BYPASS, PR_SPEC_ENABLE), but when running on a kernel where someone has previously called prctl(PR_SET_SPECULATION_CTRL, PR_SPEC_STORE_BYPASS, PR_SPEC_FORCE_DISABLE), this will always fail.

We ran into this in the Nix package, where we need to disable this test to build reliably: NixOS/nixpkgs#106875

Maybe the test should call PR_GET_SPECULATION_CTRL first and check if it's PR_SPEC_FORCE_DISABLE, and skip the ENABLE if so?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant