Skip to content

Commit 8dc742f

Browse files
suryasaimadhugregkh
authored andcommitted
Documentation/spec_ctrl: Do some minor cleanups
commit dd07926 upstream Fix some typos, improve formulations, end sentences with a fullstop. Signed-off-by: Borislav Petkov <bp@suse.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 43c47eb commit 8dc742f

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎Documentation/userspace-api/spec_ctrl.rst‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
Speculation Control
33
===================
44

5-
Quite some CPUs have speculation related misfeatures which are in fact
6-
vulnerabilites causing data leaks in various forms even accross privilege
7-
domains.
5+
Quite some CPUs have speculation-related misfeatures which are in
6+
fact vulnerabilities causing data leaks in various forms even across
7+
privilege domains.
88

99
The kernel provides mitigation for such vulnerabilities in various
10-
forms. Some of these mitigations are compile time configurable and some on
11-
the kernel command line.
10+
forms. Some of these mitigations are compile-time configurable and some
11+
can be supplied on the kernel command line.
1212

1313
There is also a class of mitigations which are very expensive, but they can
1414
be restricted to a certain set of processes or tasks in controlled
@@ -32,18 +32,18 @@ the following meaning:
3232
Bit Define Description
3333
==== ===================== ===================================================
3434
0 PR_SPEC_PRCTL Mitigation can be controlled per task by
35-
PR_SET_SPECULATION_CTRL
35+
PR_SET_SPECULATION_CTRL.
3636
1 PR_SPEC_ENABLE The speculation feature is enabled, mitigation is
37-
disabled
37+
disabled.
3838
2 PR_SPEC_DISABLE The speculation feature is disabled, mitigation is
39-
enabled
39+
enabled.
4040
3 PR_SPEC_FORCE_DISABLE Same as PR_SPEC_DISABLE, but cannot be undone. A
4141
subsequent prctl(..., PR_SPEC_ENABLE) will fail.
4242
==== ===================== ===================================================
4343

4444
If all bits are 0 the CPU is not affected by the speculation misfeature.
4545

46-
If PR_SPEC_PRCTL is set, then the per task control of the mitigation is
46+
If PR_SPEC_PRCTL is set, then the per-task control of the mitigation is
4747
available. If not set, prctl(PR_SET_SPECULATION_CTRL) for the speculation
4848
misfeature will fail.
4949

@@ -61,9 +61,9 @@ Common error codes
6161
Value Meaning
6262
======= =================================================================
6363
EINVAL The prctl is not implemented by the architecture or unused
64-
prctl(2) arguments are not 0
64+
prctl(2) arguments are not 0.
6565

66-
ENODEV arg2 is selecting a not supported speculation misfeature
66+
ENODEV arg2 is selecting a not supported speculation misfeature.
6767
======= =================================================================
6868

6969
PR_SET_SPECULATION_CTRL error codes
@@ -74,7 +74,7 @@ Value Meaning
7474
0 Success
7575

7676
ERANGE arg3 is incorrect, i.e. it's neither PR_SPEC_ENABLE nor
77-
PR_SPEC_DISABLE nor PR_SPEC_FORCE_DISABLE
77+
PR_SPEC_DISABLE nor PR_SPEC_FORCE_DISABLE.
7878

7979
ENXIO Control of the selected speculation misfeature is not possible.
8080
See PR_GET_SPECULATION_CTRL.

0 commit comments

Comments
 (0)