- Add EPERM to the possible PR_SET_SPECULATION_CTRL pr_ctl() error codes

to "legitimize" it
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEzv7L6UO9uDPlPSfHEsHwGGHeVUoFAmmKXq8ACgkQEsHwGGHe
 VUphlBAAjbLCojuZkShsdTTTD2JsmVf10Vk5MuqpX1U57pXd+whVt0V1NUjSdt/a
 lZUkawXMJ8sMqFKgwWM2R4Z56bOQdz9nTWNcNniYBM7yBRQYmSMJjCX7a2X6idJh
 2p8o4ShdLRiyEsn1g8XZnvkV2xPJJf81vI+9MzdSIjvqXIqQcD/OzkZB56/q2662
 64stXKiQpML9PSpL+7ExCNyLBFQcnBNwE3Lecu6LKJK497Inx38uQWSPzl1CT9+s
 oDafjVJJVufY5uKUYHhx7OS2Edpifrvvtpy3X1kiZ0t/c5070+kI32Jy9hCZPTlz
 f0QzxMHRTQU5neB+0Oo7J9ZsnL08h2WbEKGcLczo6KWrqUguWqfpdzElcFvzgn+l
 iI8JcYlt7AlI+GfNtE8Imn41eZfYvTaJQsHRyRXltju+hvVGGjNnQ+EORtDvXb88
 wDFUveLSZyf7T/CcSJqto9mUcCByRlXTUT8i5FUk41hyBCmVYsGbCGjl7ETSHC1j
 +MWEZWXRgb7HylMBXQgnfhPTOJ+x3ZzOHCV6n9Ref+CaEOgol2h649JO+zuRg0u9
 wfQO1XYXbhuDt1PpRV5P2PxDJM/ndnL45AoHj01NYPsqm2neN/DTXwHT4pQASovA
 siTkwunQUkzU2CTEZcvOGD01hGlHe03Dmy2sQb64EP2xZaqCqMc=
 =7SMY
 -----END PGP SIGNATURE-----

Merge tag 'x86_bugs_for_v7.0_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 bug documentation update from Borislav Petkov:

 - Add EPERM to the possible PR_SET_SPECULATION_CTRL pr_ctl() error
   codes to "legitimize" it

* tag 'x86_bugs_for_v7.0_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  Documentation/x86: Fix PR_SET_SPECULATION_CTRL error codes
This commit is contained in:
Linus Torvalds 2026-02-10 18:23:47 -08:00
commit 75b2a60367
1 changed files with 8 additions and 4 deletions

View File

@ -81,11 +81,15 @@ Value Meaning
ERANGE arg3 is incorrect, i.e. it's neither PR_SPEC_ENABLE nor
PR_SPEC_DISABLE nor PR_SPEC_FORCE_DISABLE.
ENXIO Control of the selected speculation misfeature is not possible.
See PR_GET_SPECULATION_CTRL.
ENXIO For PR_SPEC_STORE_BYPASS: control of the selected speculation misfeature
is not possible via prctl, because of the system's boot configuration.
EPERM Speculation was disabled with PR_SPEC_FORCE_DISABLE and caller tried to
enable it again.
EPERM For PR_SPEC_L1D_FLUSH and PR_SPEC_INDIRECT_BRANCH: control of the
mitigation is not possible because of the system's boot configuration.
EPERM Speculation was disabled with PR_SPEC_FORCE_DISABLE and caller
tried to enable it again.
======= =================================================================
Speculation misfeature controls