Skip to content

Commit

Permalink
Accept cases where we don't have permission to disable `PR_SPEC_STORE…
Browse files Browse the repository at this point in the history
…_BYPASS`
  • Loading branch information
rocallahan committed Aug 2, 2024
1 parent d5ed041 commit fad9da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/prctl_speculation_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ int main(void) {
} else if (ret & PR_SPEC_ENABLE) {
test_assert(-1 == prctl(PR_SET_SPECULATION_CTRL, PR_SPEC_STORE_BYPASS,
PR_SPEC_DISABLE, 0, 0) &&
errno == ENXIO);
(errno == ENXIO || errno == EPERM));
} else {
test_assert(-1 == prctl(PR_SET_SPECULATION_CTRL, PR_SPEC_STORE_BYPASS,
PR_SPEC_ENABLE, 0, 0) &&
Expand Down

0 comments on commit fad9da3

Please sign in to comment.