Received: by 10.223.148.5 with SMTP id 5csp6198323wrq; Wed, 17 Jan 2018 10:35:28 -0800 (PST) X-Google-Smtp-Source: ACJfBou73MVV7sGcTX7ZQHOKPnUxjueNRWSnOjpu0rFtRRFGP9LKUENn9xiD3OsWtkjGBjZy/ccu X-Received: by 10.98.3.1 with SMTP id 1mr38926474pfd.165.1516214128771; Wed, 17 Jan 2018 10:35:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516214128; cv=none; d=google.com; s=arc-20160816; b=IMyWAZMh51+1g84wOHR2I5V2VCBBKg5dncU1TZuPiry5E/usesXQVsHfUF/ps1v6Hz rU6U2zeFQLdxc+JmTOzwXpT5yxxTw1jjL+ip9//v7ZX4kZQzEMlKKBYvfHFgHQgkZ+Ti RXLAvZxU39WC2iGYx6AhtBGz+ll3WNAA4xpgSAjRlV/QrilEPxvOnGUmBo6FOy7kN+er Qyfy9e35W1hUXVEGh0KARJmSwPpNvquqkmLrCbIsKV+yVnadYUIqWPXojbgb/+NTiSFI ZZSLc+rjl5bomHvUnLs4/PX+yv79HszcnUWY/AnytVW88hIbtwW1E/LN1o/kynEmQOCS 4dbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:organization :from:cc:references:to:arc-authentication-results; bh=+lqzpiOuJszsXfD6OJpZ1MNUL/UlEku43Rf7IUM9Fss=; b=hP5qtMBsOeDb+cUKgp9KUNbGW6wcn7wS0h5oem/zI2KRrLWpIalM+Az8GvW4f+KY0r J4B0ST+Cx0+r2fpIbthQCVIfDNcjSwKAS8AsKnFH0KFGxat6frlgfqyg4raKwwefBhg4 YEMWW0RlnZOCxr1bDigs+KKafzO8AfnJRsXawYlT5aAQa0XaGDA0AXQVfzKsopjQOIeD h+6qsUYnyEvTDK7DYBZveca2K5UzcBzlX62UYio+Ij0h3857aCiMNaxARYsOqrl8cSWe tgT2n6C5k3sQ38VyfzHjOS4FsHrWwFPYTV+vu/vpILBlroFA2yQbp3HqjFso4yPT8AzA PzMw== 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 v17si4319794pge.254.2018.01.17.10.35.13; Wed, 17 Jan 2018 10:35:28 -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 S1753823AbeAQSes (ORCPT + 99 others); Wed, 17 Jan 2018 13:34:48 -0500 Received: from edison.jonmasters.org ([173.255.233.168]:40892 "EHLO edison.jonmasters.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752654AbeAQSer (ORCPT ); Wed, 17 Jan 2018 13:34:47 -0500 Received: from boston.jonmasters.org ([74.92.29.237] helo=washington.bos.jonmasters.org) by edison.jonmasters.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebsUd-0000B9-2c; Wed, 17 Jan 2018 18:31:23 +0000 To: Jayachandran C , Will Deacon , marc.zyngier@arm.com References: <20180108164651.GQ25869@arm.com> <1515502022-7376-1-git-send-email-jnair@caviumnetworks.com> <20180116234554.GA38392@jc-sabre> Cc: linux-arm-kernel@lists.infradead.org, lorenzo.pieralisi@arm.com, ard.biesheuvel@linaro.org, catalin.marinas@arm.com, linux-kernel@vger.kernel.org, labbott@redhat.com, christoffer.dall@linaro.org From: Jon Masters Organization: World Organi{s,z}ation Of Broken Dreams Message-ID: <4c91a5a3-be77-72d4-b8f7-2dcef7214b3a@jonmasters.org> Date: Wed, 17 Jan 2018 13:34:45 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <20180116234554.GA38392@jc-sabre> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 74.92.29.237 X-SA-Exim-Mail-From: jcm@jonmasters.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on edison.jonmasters.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.1 Subject: Re: [PATCH v2] arm64: Branch predictor hardening for Cavium ThunderX2 X-SA-Exim-Version: 4.2.1 (built Sun, 08 Nov 2009 07:31:22 +0000) X-SA-Exim-Scanned: Yes (on edison.jonmasters.org) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/16/2018 06:45 PM, Jayachandran C wrote: > On Tue, Jan 16, 2018 at 04:52:53PM -0500, Jon Masters wrote: >> On 01/09/2018 07:47 AM, Jayachandran C wrote: >> >>> Use PSCI based mitigation for speculative execution attacks targeting >>> the branch predictor. The approach is similar to the one used for >>> Cortex-A CPUs, but in case of ThunderX2 we add another SMC call to >>> test if the firmware supports the capability. >>> >>> If the secure firmware has been updated with the mitigation code to >>> invalidate the branch target buffer, we use the PSCI version call to >>> invoke it. >> >> What's the status of this patch currently? Previously you had suggested >> to hold while the SMC got standardized, but then you seemed happy with >> pulling in. What's the latest? > > My understanding is that the SMC standardization is being worked on > but will take more time, and the KPTI current patchset will go to > mainline before that. > > Given that, I would expect arm64 maintainers to pick up this patch for > ThunderX2, but I have not seen any comments so far. > > Will/Marc, please let me know if you are planning to pick this patch > into the KPTI tree. We've pulled in mitigations for QCOM Falkor into our internal development branch (for future releases, this isn't about existing stuff), but we can't pull in mitigations for other vendors until they're upstream, and this patch isn't in any tree we track yet. Therefore, I encourage all of the vendors to get this upstream. Until that's true, it will be difficult to continue to carry out of tree bits. Jon.