Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3564295pxb; Mon, 24 Jan 2022 12:19:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxW6yYunfUi6zNxYgZu/ayuadNywBPByjqTOz6qm1kQ6hPLzPptyk5Vg120y2DxbLhTd2Z7 X-Received: by 2002:a17:902:7209:b0:14a:27d1:a794 with SMTP id ba9-20020a170902720900b0014a27d1a794mr15738237plb.166.1643055435832; Mon, 24 Jan 2022 12:17:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643055435; cv=none; d=google.com; s=arc-20160816; b=Dj4gw3YFAREAxDZjzx8YKCPYvFmjLcgpySCpLDdXbn+v2AklxTLyvz54H6Uk9sNfPv eRAwiG0lgILTWPvU+SqBeDGwzoRS4VYFa5naU7Dpqg/9qcSqbF2UKOIguuTeLLZQVyYQ 0mlNyY8zIDCBl6KbsoTRMh2SPlyOreemDp5wUYEf81UfKI/1qm3qBFSHHxCWLvzSVIiF TkYtes+/yiUUPrKmdgO6LrHMN45tUVUuZCUtHueqsGbBrupQ5jW53Yz2AI6KGhywR7/c 7rlmLxRNyOMgMDYTefLvh7VIGP3dM1ARjuoBERnXgjk89naYgHQrLEkQATMdRq6uJFll yb7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7RuBJqsE9zd2CKw7RpGqNI5iBgBGF89wwoKLbZZicr0=; b=w1dbHL8z2qAs1O9pRpfBpUbw/AmY5Lou0Z9L6NGlV9wI5BngMBCQdoVFFfJfPTnlIM xH/CdP1jBVos+u0EhcmPARGEpryazcZ33TiYVuq5Qm+pNrNgbrpCuF5YCu3Qy63JXgmp UqQLIp63bDhigW2i4KrWboHxF399hb3Y+fpZ9czDgQPQMNKB/rkdTREuE7XVOchyNJUI K4ObDvBRKXFnB85ZJMIA4jU/f6qJGEkmd9Kkb/19ZeQ0v7aYg5BVmunpDm5dQ0chHAC3 ToGnPKQpf+y+AimcW+J0ZLntGCAhgSMzaI8xOt88RfIHHCsTJQb8JyknTIPRwWp+NtXg 1TYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RowIxncB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t34si13729896pgm.873.2022.01.24.12.17.03; Mon, 24 Jan 2022 12:17:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RowIxncB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348668AbiAXTTY (ORCPT + 99 others); Mon, 24 Jan 2022 14:19:24 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:39938 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347443AbiAXTKb (ORCPT ); Mon, 24 Jan 2022 14:10:31 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 05CDA60010; Mon, 24 Jan 2022 19:10:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 049F7C340E5; Mon, 24 Jan 2022 19:10:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643051430; bh=vwRGDU4N4TbEApmcUFKQ4hpx5acenT08Vv9AbCWceh8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RowIxncB1llFSMkT8R7ZE3fgtuZEodIKyhfeluIQiHgzf4aHHKJsIT9J0X8Y3D3ig NShOgfD1SdWvFfE09BFCDO9y/sctknW0DnHghNfRALEVTzjTowD+v4y+kkeQTDAB9N TGKri1CfGFX6x+yfNDzbHGduNXXs8UVU5p+o8Eqs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lukas Bulwahn , Jonathan Corbet Subject: [PATCH 4.14 160/186] Documentation: refer to config RANDOMIZE_BASE for kernel address-space randomization Date: Mon, 24 Jan 2022 19:43:55 +0100 Message-Id: <20220124183942.243699561@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183937.101330125@linuxfoundation.org> References: <20220124183937.101330125@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lukas Bulwahn commit 82ca67321f55a8d1da6ac3ed611da3c32818bb37 upstream. 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 Link: https://lore.kernel.org/r/20211230171940.27558-1-lukas.bulwahn@gmail.com Signed-off-by: Jonathan Corbet Signed-off-by: Greg Kroah-Hartman --- Documentation/admin-guide/hw-vuln/spectre.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Documentation/admin-guide/hw-vuln/spectre.rst +++ b/Documentation/admin-guide/hw-vuln/spectre.rst @@ -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.