Documentation: refer to config RANDOMIZE_BASE for kernel address-space randomization
Subsystems (3)
PATCH 1/1 Documentation: refer to config RANDOMIZE_BASE for kernel address-space randomization
The config RANDOMIZE_SLAB does not exist, the authors probably intended to refer to the config RANDOMIZE_BASE, which provides kernel address-space randomization. They probably just confused SLAB with BASE (these two four-letter words coincidentally share three common letters), as they also point out the config SLAB_FREELIST_RANDOM as further randomization within the same sentence.
Fix the reference of the config for kernel address-space randomization to the config that provides that.
--- Documentation/admin-guide/hw-vuln/spectre.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/admin-guide/hw-vuln/spectre.rst +1 -1
@@ -468,7 +468,7 @@ Spectre variant 2 before invoking any firmware code to prevent Spectre variant 2 exploits using the firmware. - Using kernel address space randomization (CONFIG_RANDOMIZE_SLAB=y + Using kernel address space randomization (CONFIG_RANDOMIZE_BASE=y and CONFIG_SLAB_FREELIST_RANDOM=y in the kernel configuration) makes attacks on the kernel generally more difficult.
Signature · 1 line
2.17.1
Jonathan Corbet
maintainerQuoted 21 lines · Lukas Bulwahn
The config
RANDOMIZE_SLABdoes not exist, the authors probably intended to refer to the configRANDOMIZE_BASE, which provides kernel address-space randomization. They probably just confused SLAB with BASE (these two four-letter words coincidentally share three common letters), as they also point out the configSLAB_FREELIST_RANDOMas further randomization within the same sentence.Fix the reference of the config for kernel address-space randomization to the config that provides that.
Fixes 6e88559470f5 ("Documentation: Add section about CPU vulnerabilities for Spectre")Signed-off-by Lukas Bulwahn <[email protected]>--- Documentation/admin-guide/hw-vuln/spectre.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/admin-guide/hw-vuln/spectre.rst +0
-0
Documentation/admin-guide/hw-vuln/spectre.rst Spectre variant 2 · line 473
Quoted 7 lines
Documentation/admin-guide/hw-vuln/spectre.rst +1
-1@@ -468,7 +468,7 @@ Spectre variant 2 before invoking any firmware code to prevent Spectre variant 2 exploits using the firmware. - Using kernel address space randomization (CONFIG_RANDOMIZE_SLAB=y + Using kernel address space randomization (CONFIG_RANDOMIZE_BASE=y and CONFIG_SLAB_FREELIST_RANDOM=y in the kernel configuration) makes attacks on the kernel generally more difficult.
Makes sense to me...applied, thanks.
jon