Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp1068070ima; Wed, 6 Feb 2019 13:09:46 -0800 (PST) X-Google-Smtp-Source: AHgI3IYR58LffhaEdBOR0OclMke3agYVDOulmxZPdufMrcOlhURpkB8w29chRtLYcXLyBC5WN5w6 X-Received: by 2002:a62:2b8b:: with SMTP id r133mr12488089pfr.246.1549487386628; Wed, 06 Feb 2019 13:09:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549487386; cv=none; d=google.com; s=arc-20160816; b=paNLjQ6FWhPmFS2LMnJL+vtWzOh2H/DZzUddrACR+bDJ8FDgqz3d2Y1+rpk5ANroQT 9WKWxg463+QU8esheqs0CUEb8DRrkQ7s7LsGulV+C9NOUg/Y+tZZ5L3Sragjh/JwHJ2Z jETCMsMbu22O1axIgjvK0AhThYmDAPhjaFLlgv2ixy1+4pkZUlZjPlUREcJZijbgqTr9 afT1fYvQiJsDnEzwKZZGVme4jEJfPcvQBS3dtB6e6BH9+dZxS2T6Isj0QvIdk0rrmGF7 r7QmgE64rCB638hGQqnmkNcV2aOAJGWI/oN3gWLN5NuNO21yIytqYF9YV/MfTglnO9bY MwhQ== 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:organization:from:references:cc:to:subject; bh=PlxSfZQykdPncNgvjSJK6ayzUQT+AcOwmNCkZJXSZQo=; b=GkEX80T/LMXnm8zTEadgtR8N6zTUSZmrxvsFWvQ9zC0Xb3Q1PbKJa99PVpKcJY4Zii RuvkI05xyjKkTfnjOH9Ng4quE5Tbf30ziafqq6sWMI5Hg7RqA6h7H3ZEYKxk30J9xmob nVzd/NC2wSvYWeoBoNUUbQHVn/8B/k503FnH2xFdsC6fcL25gF1nAIZLvaRvFGMfZDOi pGsg/EoqZ660AiNeDKpjwac6UHZfBmzdwT1eKie6/w4vo9XSORpueCY6vmCRIsx4DVQ4 4kO3oXYRxw15TZXPvJ7oSLbBBYR4JPVVpA6sGJ/GY8lWYAHdVZXlkE2aT8CqzcEOJXiO aXzg== 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 z16si1948131pgu.407.2019.02.06.13.09.30; Wed, 06 Feb 2019 13:09:46 -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 S1726960AbfBFVIW (ORCPT + 99 others); Wed, 6 Feb 2019 16:08:22 -0500 Received: from foss.arm.com ([217.140.101.70]:58202 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726596AbfBFVIV (ORCPT ); Wed, 6 Feb 2019 16:08:21 -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 36D9AEBD; Wed, 6 Feb 2019 13:08:21 -0800 (PST) Received: from [192.168.3.111] (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 83F213F675; Wed, 6 Feb 2019 13:08:18 -0800 (PST) Subject: Re: [PATCH v4 01/12] Documentation: Document arm64 kpti control To: Jeremy Linton 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> <69fceac6-7e83-7b38-44fb-2c02245f51df@arm.com> From: =?UTF-8?Q?Andr=c3=a9_Przywara?= Organization: ARM Ltd. Message-ID: <7bf0faad-1064-69cb-32fe-1782e6c742d2@arm.com> Date: Wed, 6 Feb 2019 21:06:30 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <69fceac6-7e83-7b38-44fb-2c02245f51df@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/02/2019 19:24, Jeremy Linton wrote: > 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. True, kpti= takes precedence, in both ways. Disregard my comment then, this is indeed not the right place to mention RANDOMIZE_BASE. Cheers, Andre. > > 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) >>>   >> >