Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp972588ima; Wed, 6 Feb 2019 11:26:04 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ+WlY4UnT2cKLkOyYHfs4ZSY/HexYXWIQyGLCGdAJ8i/v6VPms4HbiLIrluhecy8y88UCt X-Received: by 2002:a17:902:b681:: with SMTP id c1mr104256pls.103.1549481164073; Wed, 06 Feb 2019 11:26:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549481164; cv=none; d=google.com; s=arc-20160816; b=YWTrRUuHsySzNTfN9i9kU0YPbG5SiuizRfNE6w1mJdHnBU9BhsBcSzlOjPVzChFBpd LNrh6BupAkzP0wvkUBFAqV1sXfcho44RF97oTGoipVWeKWUiR3k3IIAsMGwUENESwcxY /+TR6xyEbqOtwSR/dicvtAWzB3QKap8BFTH5bxQkGSgWNi/T2O1kLh+HD3yLKQxNF+ed p4kSGiO8CzjVX+RXybS3UvUGPEx70TLhrZIFhVv4kTJJv2eek0q3Slh+ZLpmDRulCY75 ijmNtBx0/enjyGOIPvFWnChEoWF+PEd8vnEcWxwnU2iVnoVKjEOpAGr8HQhfKuGII/pW bM9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=w9ViIO7W9ttp/q2JZsnCSrldPRG26IkMHdxv3ZQvjHU=; b=C82owDy+6WiDlqjM+kVRyo7wi/qoS+U7hndpVOdfL2D+4ofwwOgBkghYK0G5my/rCI 1r9VmkCNJOBRSbj9mu1EyW26BOLVjvNTGhW/vqVHhvyQKPiiDYSroAt1P9OUzQvIO7Ys zbQx8T04OJIwv2mD/Ch9FbFS7QX5rYYTEOsgz8WxPulyuGsuIPnInao3EvMFZaAc3QPB sw89vndGF9oTzSNl9AQS8MKMDCQ9guseIQmOJfHlNkYh1kF3RCOmpx93D106VPwuPw5M StTm5bxgzbfzxxG2LSR2zSlOx0onMNZPKQ5Uv5IRfe1PLLkyhVAr3qu9ytndvrsZlQ04 vAuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q24si6627352pgi.334.2019.02.06.11.25.48; Wed, 06 Feb 2019 11:26:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726969AbfBFTYZ (ORCPT + 99 others); Wed, 6 Feb 2019 14:24:25 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:57326 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726480AbfBFTYZ (ORCPT ); Wed, 6 Feb 2019 14:24:25 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3F8C680D; Wed, 6 Feb 2019 11:24:24 -0800 (PST) Received: from [192.168.100.241] (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 98CEB3F719; Wed, 6 Feb 2019 11:24:22 -0800 (PST) Subject: Re: [PATCH v4 01/12] Documentation: Document arm64 kpti control To: Andre Przywara Cc: linux-arm-kernel@lists.infradead.org, stefan.wahren@i2se.com, Jonathan Corbet , mlangsdo@redhat.com, linux-doc@vger.kernel.org, suzuki.poulose@arm.com, marc.zyngier@arm.com, catalin.marinas@arm.com, julien.thierry@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, steven.price@arm.com, ykaukab@suse.de, dave.martin@arm.com, shankerd@codeaurora.org References: <20190125180711.1970973-1-jeremy.linton@arm.com> <20190125180711.1970973-2-jeremy.linton@arm.com> <20190130180247.15ab0577@donnerap.cambridge.arm.com> From: Jeremy Linton Message-ID: <69fceac6-7e83-7b38-44fb-2c02245f51df@arm.com> Date: Wed, 6 Feb 2019 13:24:17 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20190130180247.15ab0577@donnerap.cambridge.arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I just realized I replied to this off-list. On 01/30/2019 12:02 PM, Andre Przywara wrote: > On Fri, 25 Jan 2019 12:07:00 -0600 > Jeremy Linton wrote: > > Hi, > >> For a while Arm64 has been capable of force enabling >> or disabling the kpti mitigations. Lets make sure the >> documentation reflects that. >> >> Signed-off-by: Jeremy Linton >> Cc: Jonathan Corbet >> Cc: linux-doc@vger.kernel.org >> --- >> Documentation/admin-guide/kernel-parameters.txt | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/Documentation/admin-guide/kernel-parameters.txt >> b/Documentation/admin-guide/kernel-parameters.txt index >> b799bcf67d7b..9475f02c79da 100644 --- >> a/Documentation/admin-guide/kernel-parameters.txt +++ >> b/Documentation/admin-guide/kernel-parameters.txt @@ -1982,6 +1982,12 >> @@ Built with CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=y, >> the default is off. >> >> + kpti= [ARM64] Control page table isolation of >> user >> + and kernel address spaces. >> + Default: enabled on cores which need >> mitigation. > > Would this be a good place to mention that we enable it when > CONFIG_RANDOMIZE_BASE is enabled and we have a valid kaslr_offset? I > found this somewhat surprising, also it's unrelated to the > vulnerability. Maybe, but I tend to think since this command line forces it on/off regardless of RANDOMIZE_BASE, that a better place to mention that RANDOMIZE_BASE forces kpti on is the Kconfig option. BTW: Thanks for reviewing this. > > Cheers, > Andre > >> + 0: force disabled >> + 1: force enabled >> + >> kvm.ignore_msrs=[KVM] Ignore guest accesses to unhandled >> MSRs. Default is 0 (don't ignore, but inject #GP) >> >