prctl.2: Minor tweaks to "prctl.2: Add PR_SPEC_INDIRECT_BRANCH for SPECULATION_CTRL prctls" patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-05-13 13:19:50 +02:00
parent 277d7d6d04
commit 68b4922bf5
1 changed files with 13 additions and 6 deletions

View File

@ -1213,20 +1213,27 @@ arguments must be specified as 0; otherwise the call fails with the error
.\" commit 356e4bfff2c5489e016fdb925adbf12a1e3950ee
Sets the state of the speculation misfeature specified in
.IR arg2 .
Currently, this argument must be one of:
The speculation-misfeature settings are per-thread attributes.
.IP
Currently,
.I arg2
must be one of:
.RS
.TP
.B PR_SPEC_STORE_BYPASS
speculative store bypass control, or
Set the state of the speculative store bypass misfeature.
.\" commit 9137bb27e60e554dab694eafa4cca241fa3a694f
.TP
.BR PR_SPEC_INDIRECT_BRANCH " (since Linux 4.20)"
indirect branch speculation control.
Set the state of the indirect branch speculation misfeature.
.RE
.IP
(Otherwise the call fails with the error
.BR ENODEV ).
These settings are per-thread attributes.
If
.I arg2
does not have one of the above values,
then the call fails with the error
.BR ENODEV .
.IP
The
.IR arg3
argument is used to hand in the control value,