Documentation: refer to config RANDOMIZE_BASE for kernel address-space randomization
authorLukas Bulwahn <lukas.bulwahn@gmail.com>
Thu, 30 Dec 2021 17:19:40 +0000 (18:19 +0100)
committerJonathan Corbet <corbet@lwn.net>
Mon, 3 Jan 2022 22:56:53 +0000 (15:56 -0700)
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.

Fixes: 6e88559470f5 ("Documentation: Add section about CPU vulnerabilities for Spectre")
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Link: https://lore.kernel.org/r/20211230171940.27558-1-lukas.bulwahn@gmail.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/admin-guide/hw-vuln/spectre.rst

index ab7d402c16779305343505251c6b547fdd1afa90..a2b22d5640ec9f9fb2e918f0bdca323fc3b4da88 100644 (file)
@@ -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.