Received: by 10.223.185.116 with SMTP id b49csp3644446wrg; Tue, 6 Mar 2018 02:33:33 -0800 (PST) X-Google-Smtp-Source: AG47ELvyCkGrdVHx+UXSWzWdec/g4yUh2mCZoE0OTX79gNQSZ4PN3tKV+Ht8jMDZk1Vy9V9tPfDe X-Received: by 2002:a17:902:5716:: with SMTP id k22-v6mr16587112pli.229.1520332413247; Tue, 06 Mar 2018 02:33:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520332413; cv=none; d=google.com; s=arc-20160816; b=J7+lkn9AzUdbh9+eyhy2WPDxNe4TH212BkUbDWD6nOz5m1e2G76Q44GMxxfPZAWB4p Zy0POB88nSmvin+iFrRmKG9NQ6mB2SJ7n2ZwImzNpwKP+nA9qrk67kmrWrI6X88++S5U tUIqkKG9zEbqx5FLSinpvpGDKQPmSDctG+7B9ctR1RNoW8OH5rOSPxI/JApbHTCSfasm q41Qiq3yUmBhsK6U6okqEHS9vlmUb7vgOAmhF0/PthpWyH68ezNyiIOjABXkAFRhvnJO Ko7lrYnxevmEvFUWaetM4lATNiwqNjRQMJ79Ux6qzB2aRraar4LKH6/bcdTZ/zuLkHMo ZQmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date :arc-authentication-results; bh=z7fHvn4lmagwTMft0YNvRniSfmMpyozS86tICF0blo0=; b=OMB9QYpF8f7vz7qsB10tu8tXJ60bijm/xkctYE7AYvSNITb92/pGXWvzIWCIQMCEpb nVDwyB4iFWvfd4LW7irZNuyDUe2yFDqUaMX12o4uHRLkTIbCxekNrsnherEEn6gCs5SQ XLzJkjuJzEyJdaM2wlagrWdz91CCEWFleS7/JQVKuDTU5IJW2u4zkTPkguuGiOLj3jIf JzDiwOqjZyXwCPd+UMA1+xsO6BwnFb5FLwxp4ltMcXzYMPkB+RZ0HJ0kh4LAEEswNf2P l9Rd1vnZjjxnGUPfM1JVzIpowAzdt7IPEDM2VO5btjYpTxit4nRtlaMfPYk6EHZHOtVQ fh2w== 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 l73si11750024pfj.45.2018.03.06.02.33.19; Tue, 06 Mar 2018 02:33:33 -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 S1753361AbeCFKc0 (ORCPT + 99 others); Tue, 6 Mar 2018 05:32:26 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:36194 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750897AbeCFKcZ (ORCPT ); Tue, 6 Mar 2018 05:32: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 EB2C71529; Tue, 6 Mar 2018 02:32:24 -0800 (PST) Received: from big-swifty.misterjones.org (big-swifty.cambridge.arm.com [10.1.28.201]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EEC793F24A; Tue, 6 Mar 2018 02:32:18 -0800 (PST) Date: Tue, 06 Mar 2018 10:32:13 +0000 Message-ID: <861sgx5wb6.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Shanker Donthineni Cc: Will Deacon , linux-kernel , linux-arm-kernel , Catalin Marinas , kvmarm , Christoffer Dall , Vikram Sethi , Sean Campbell , Thomas Speier Subject: Re: [PATCH v2] arm64: KVM: Use SMCCC_ARCH_WORKAROUND_1 for Falkor BP hardening In-Reply-To: <1520269603-2900-1-git-send-email-shankerd@codeaurora.org> References: <1520269603-2900-1-git-send-email-shankerd@codeaurora.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 05 Mar 2018 17:06:43 +0000, Shanker Donthineni wrote: > > The function SMCCC_ARCH_WORKAROUND_1 was introduced as part of SMC > V1.1 Calling Convention to mitigate CVE-2017-5715. This patch uses > the standard call SMCCC_ARCH_WORKAROUND_1 for Falkor chips instead > of Silicon provider service ID 0xC2001700. > > Signed-off-by: Shanker Donthineni > --- > Chnages since v1: > - Trivial change in cpucaps.h (refresh after removing ARM64_HARDEN_BP_POST_GUEST_EXIT) > > arch/arm64/include/asm/cpucaps.h | 5 ++-- > arch/arm64/include/asm/kvm_asm.h | 2 -- > arch/arm64/kernel/bpi.S | 8 ------ > arch/arm64/kernel/cpu_errata.c | 55 ++++++++++++++-------------------------- > arch/arm64/kvm/hyp/entry.S | 12 --------- > arch/arm64/kvm/hyp/switch.c | 10 -------- > 6 files changed, 21 insertions(+), 71 deletions(-) Reviewed-by: Marc Zyngier Will/Catalin, if you want to take it via the arm64 tree, that's fine by me. Thanks, M. -- Jazz is not dead, it just smell funny.