From 68b4922bf5d69ede5fe6529d96399b350b7fefc2 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 13 May 2020 13:19:50 +0200 Subject: [PATCH] prctl.2: Minor tweaks to "prctl.2: Add PR_SPEC_INDIRECT_BRANCH for SPECULATION_CTRL prctls" patch Signed-off-by: Michael Kerrisk --- man2/prctl.2 | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/man2/prctl.2 b/man2/prctl.2 index 4223d5a9b..392e72b4c 100644 --- a/man2/prctl.2 +++ b/man2/prctl.2 @@ -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,