From nobody Mon Apr 20 01:09:46 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2C47CCA480 for ; Fri, 24 Jun 2022 01:21:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230317AbiFXBVU (ORCPT ); Thu, 23 Jun 2022 21:21:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbiFXBVT (ORCPT ); Thu, 23 Jun 2022 21:21:19 -0400 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00E2756FA1; Thu, 23 Jun 2022 18:21:17 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=liusong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0VHETYia_1656033648; Received: from localhost(mailfrom:liusong@linux.alibaba.com fp:SMTPD_---0VHETYia_1656033648) by smtp.aliyun-inc.com; Fri, 24 Jun 2022 09:21:15 +0800 From: Liu Song To: corbet@lwn.net, will@kernel.org Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: correct the effect of mitigations off on kpti Date: Fri, 24 Jun 2022 09:20:48 +0800 Message-Id: <1656033648-84181-1-git-send-email-liusong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Liu Song If KASLR is enabled, then kpti will be forced to be enabled even if mitigations off, so we need to adjust the description of this parameter. Signed-off-by: Liu Song --- Documentation/admin-guide/kernel-parameters.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentatio= n/admin-guide/kernel-parameters.txt index 8090130..5b9e7f3 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -3162,7 +3162,7 @@ improves system performance, but it may also expose users to several CPU vulnerabilities. Equivalent to: nopti [X86,PPC] - kpti=3D0 [ARM64] + if nokaslr then kpti=3D0 [ARM64] nospectre_v1 [X86,PPC] nobp=3D0 [S390] nospectre_v2 [X86,PPC,S390,ARM64] --=20 1.8.3.1