From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 851C2C282CE for ; Fri, 12 Apr 2019 23:35:10 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 38B2A20869 for ; Fri, 12 Apr 2019 23:35:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="NUiSqO/z"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="ofWNWZl0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 38B2A20869 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Tza/VMvnqp3a4kO5RzELcIp8fxhr6e80tlowdrIjbyA=; b=NUiSqO/zcDvgaU gO6G8mqJPZQSqQHn8jDF9izLOjH88o1BrmdVSqjom4FFCGHhgGAkxSIph4w2Pyhs8Z/vhWk3zfxNq 9I+QJBB7JAVR9zLtQJEEtdyjNj+7re+LQae04HgBFCFWyxPoEBP0tutd6Oe0g2eJuxnPwDKcyWvTl pmxUZDQeYN8OBsqrMUpiw3N6TurrC4pxfaTI80DOgqbIPy1QR5/ZA/dbv5W49t0XjVsd1Xqwa5M9B cBqaYMYck2xmOHLE/fql/Gn5/obS0glWmpmEj6UcSIVUIPLVqeR8hBRAIsE9ghZt5XWGg+YBPSsP2 et9SKPdkWU41W4dnoV0w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hF5hI-0002ch-OX; Fri, 12 Apr 2019 23:35:04 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hF5hG-0002J7-GL for linux-arm-kernel@bombadil.infradead.org; Fri, 12 Apr 2019 23:35:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9Ie8IMlCBHl6YexMqcUcjA+Mwa9TNteGTWTgFNyIq+I=; b=ofWNWZl0k3jkrT/YYMFQ2M9jb2 dTjq3V2vnbaMt/GbrB8qzg+wF4/hNEwgYL1ilMX4XlsiZumZZHJleTZwy2yPCWDEu93T7oJ8jGg8h ENafQM+LniuMmjYyLcsXYxUZwBA2PU55tb/PpI/+9wQ5jU3QxEaM0UgxY/agdsDMmoAm1rwUkCKPD tIoX+cem/Ihd3q+yx76ENW928PkLPE5Gt5Ok4Ezt/YM5CUBvhyLVDcyHfWd/9vvDfekiQqlKbBUqp PeaE9izRcnis5XBp2G+iliMQEbIJr5y/9Vm0x0jijsW16m+11uglbS6mt7uRcJJDhjrAY387ePg2K 4g8H/AYQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=dragon.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hF5h6-0004XY-Vk; Fri, 12 Apr 2019 23:34:53 +0000 Subject: Re: [PATCH v2 5/5] arm64/speculation: Support 'mitigations=' cmdline option To: Josh Poimboeuf , linux-kernel@vger.kernel.org References: <24039e1370ed57e8075730c0b88c505afd9e0ab7.1555085500.git.jpoimboe@redhat.com> From: Randy Dunlap Message-ID: <25174c3c-0e39-0562-7d02-bb7d51cd2b43@infradead.org> Date: Fri, 12 Apr 2019 16:34:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <24039e1370ed57e8075730c0b88c505afd9e0ab7.1555085500.git.jpoimboe@redhat.com> Content-Language: en-US X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Zijlstra , Benjamin Herrenschmidt , Heiko Carstens , Paul Mackerras , "H . Peter Anvin" , Ingo Molnar , Andrea Arcangeli , linux-s390@vger.kernel.org, Michael Ellerman , x86@kernel.org, Will Deacon , Steven Price , Linus Torvalds , Catalin Marinas , Waiman Long , linux-arch@vger.kernel.org, Jon Masters , Jiri Kosina , Borislav Petkov , Andy Lutomirski , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Phil Auld , Greg Kroah-Hartman , Tyler Hicks , Martin Schwidefsky , linuxppc-dev@lists.ozlabs.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 4/12/19 1:39 PM, Josh Poimboeuf wrote: > Configure arm64 runtime CPU speculation bug mitigations in accordance > with the 'mitigations=' cmdline option. This affects Meltdown, Spectre > v2, and Speculative Store Bypass. > > The default behavior is unchanged. > > Signed-off-by: Josh Poimboeuf > --- > NOTE: This is based on top of Jeremy Linton's patches: > https://lkml.kernel.org/r/20190410231237.52506-1-jeremy.linton@arm.com > > Documentation/admin-guide/kernel-parameters.txt | 8 +++++--- > arch/arm64/kernel/cpu_errata.c | 6 +++++- > arch/arm64/kernel/cpufeature.c | 8 +++++++- > 3 files changed, 17 insertions(+), 5 deletions(-) > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > index e84a01d90e92..79bfc755defe 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -2545,8 +2545,8 @@ > http://repo.or.cz/w/linux-2.6/mini2440.git > > mitigations= > - [X86,PPC,S390] Control optional mitigations for CPU > - vulnerabilities. This is a set of curated, > + [X86,PPC,S390,ARM64] Control optional mitigations for > + CPU vulnerabilities. This is a set of curated, > arch-independent options, each of which is an > aggregation of existing arch-specific options. > > @@ -2555,11 +2555,13 @@ > improves system performance, but it may also > expose users to several CPU vulnerabilities. > Equivalent to: nopti [X86,PPC] > + kpti=0 [ARM64] > nospectre_v1 [PPC] > nobp=0 [S390] > - nospectre_v2 [X86,PPC,S390] > + nospectre_v2 [X86,PPC,S390,ARM64] > spectre_v2_user=off [X86] > spec_store_bypass_disable=off [X86,PPC] > + ssbd=force-off [ARM64] > l1tf=off [X86] > > auto (default) Hi, Do we need to add "ARM64" to Documentation/admin-guide/kernel-parameters.rst? -- ~Randy _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel