Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752051AbeAPXqJ (ORCPT + 1 other); Tue, 16 Jan 2018 18:46:09 -0500 Received: from mail-sn1nam01on0073.outbound.protection.outlook.com ([104.47.32.73]:54656 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750830AbeAPXqH (ORCPT ); Tue, 16 Jan 2018 18:46:07 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jayachandran.Nair@cavium.com; Date: Tue, 16 Jan 2018 15:45:54 -0800 From: Jayachandran C To: Jon Masters , Will Deacon , marc.zyngier@arm.com 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 Subject: Re: [PATCH v2] arm64: Branch predictor hardening for Cavium ThunderX2 Message-ID: <20180116234554.GA38392@jc-sabre> References: <20180108164651.GQ25869@arm.com> <1515502022-7376-1-git-send-email-jnair@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: MWHPR19CA0003.namprd19.prod.outlook.com (10.173.246.141) To CO2PR0701MB1061.namprd07.prod.outlook.com (10.160.8.140) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9184d586-1fc6-4a65-7810-08d55d3b4e79 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534125)(4602075)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:CO2PR0701MB1061; X-Microsoft-Exchange-Diagnostics: 1;CO2PR0701MB1061;3:qnxKcdn2XnH39D0VoBD/XpDYsCDnLNjvLOe01KiXKsKnAq++ctase0a6J82ZVxmk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RZyubZ97c+ajA5g9xnKyTj5viQkzeLrIqWwWFXV3JOceAcfPsS5v0lfY/ULvN9T3TRXOLLuMiTC2SVI2i5oBK8NdXQIoclC5tF+KBVmUcwnA4FwuVnqNh2y3JSo5enF3uFmSNPIOCmzO1gvaBxQM9YV1ZkrTX6fmmJl/c9HxU5AVgIMjGkhyxIRvfE9qMx70Wf+dqHq8agqheaxYw0QRYMBf/R2Sfkb2Lx4qT9XjSQtkoznDt3/OrP8X2z2ApdL8izh+7nZF+ojug9lKBEqZjNFyNsyzXy2ClQbF6sIDdaIbfKWRZ5K885Ap/7PXushiyliGpye64MRgnssPOmYaKCTW6WhrjWmew3WisZmLDUZrzhtnS1iKdgblad8tASDDvGk/5hkiMgdsc=;4:hm6zbNmNeluEo7mmH+LA9DS/AYzWsnxI4s4pT85pPl2m1zRtdbUFHzGbTTgP1KoFDpSx2fihdesAvx8COoUKa1L21U6NlSe/lXP8dkqHnc6R+OV4bJ7MAR08/laTymJ7sfVfSbAuvEagkQedoknlJt6Oiw9nSmN7l4+VhC1KxY+Tm6L4G+1QLTiIEXHb8IerJTa6NOB5AEV2kycrKJRK+pXWelPvHDH/tmqkN5eSpw7wSgNdMvPOsunOv+3yLRhQjwqURIgFIw0YS1og45Be3A== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(3231023)(2400039)(944501161)(10201501046)(3002001)(6041268)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:CO2PR0701MB1061;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CO2PR0701MB1061; X-Forefront-PRVS: 0554B1F54F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(366004)(396003)(376002)(39860400002)(346002)(39380400002)(189003)(199004)(24454002)(26005)(33716001)(106356001)(5660300001)(50466002)(97736004)(229853002)(7416002)(55016002)(9686003)(7736002)(53936002)(33896004)(478600001)(33656002)(53546011)(386003)(76176011)(305945005)(72206003)(66066001)(68736007)(8676002)(58126008)(1076002)(6496006)(23726003)(47776003)(6246003)(52116002)(316002)(16586007)(83506002)(6666003)(6116002)(81156014)(110136005)(42882006)(105586002)(2950100002)(81166006)(25786009)(2906002)(8936002)(4326008)(3846002)(16526018)(18370500001)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR0701MB1061;H:jc-sabre;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR0701MB1061;23:iEUmfBCQupIKvocr9xw4SVMq41k/t4ENi6F8rrF?= =?us-ascii?Q?H96QvD45l5Ui1XwjR+F1OEXyrWNORxada2slIn6dHMNjSAR9Rp1u7FeUo0wL?= =?us-ascii?Q?JPtIMGXpzSZDFWV5Z68orCfpXXck6kaPNgfe71mU/3JLGplGypkZY2T+dVuc?= =?us-ascii?Q?0A1zzQI1XZ3Tak0brQlCAg0/ijYGWluwJou+m+kxM0JhZDIM8/MyhfrHrJDF?= =?us-ascii?Q?S6HiGa8oH7cvL4RjwWy2x0OJcjakBARUPCWNLpPdXKnCA9CAOPFgZEPeIF9X?= =?us-ascii?Q?DMrZGdcgDdtFj8gD4yb7OFEeulUwUUh4aCXRbRZhLNvA83KZZTgzT9wu79JC?= =?us-ascii?Q?H0JR3AgT6PdpDjKZ39m/ei5n6qL/+Q0VtrYLMCFTTmd6CynUtatjOj1bbMah?= =?us-ascii?Q?IcfmiGo4jkO8XkeyFNLZQeyJ2yvt+ObeOZbTINt+0Urgw6z2H4H7wm+UCtCC?= =?us-ascii?Q?I01q9/kKaVVzKDkDcCGtkzZUUF0IpqZOSztFCRCNj+kfeEJqJAN0nxZng1HE?= =?us-ascii?Q?EnFjw5sWeTmxlM/OrvdvDwUaI8c51nA6Dxeczw1G5w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7ETqrgHIdxvl+sCIRh7WHu0jPei2xKuHwfuU0Jbozhk+PSuxTZaJvls5bk+294uX0TNsqlpsags2bkoFpVmMoqx8SOOBPAqt60vfonN/Hl53dTM6iUbTN0BU/jW6UbDMAyXhey5Zo2waAomTG8mHBRmzEnykfN/jcw7FMvcZXHkBLOOtCO/6RsCdMYdXaOWss7YzFAK7DhtG+R7ZhRWWjcFOi9DFsI/9K3wMUytpFnNADl37x1sHsFnL6ONCLMjaAybxTAntqsDpTJ0=;5:tsEk5INnx5dkSSC+Gl1UJYwgZS8S+1V4iwCw20yvbaNDqoRCTSO00VO6pSL7voIbzUvL5G+cJsYURNTDL7pSt7XvdTwZ/1/jVGcJVVjTs4eacaOjwWfwZeiEEtsLEAIfo1OmFfh6khRK2B6YlhsWK31clVCGkZHA6cbiBK91xqk=;24:sFitddlc0nZCF6bAJZ9yAnuu6EdAZACWLjnwrhhrs0O/GykODwZ1J62IDLXnP5zevdz8MxbxpFRD1Foe1XhGbfjFYPEhh57/gXTKkSQcplw=;7:UnPjpCb0MMsuzggvpiwdkbUEcvvVx7RTYjHGHHb9CP+JVUUGDAR3Q/CSrqOd3NF5aw6yP0zKQmdg5MI/XNTrEvkxQyr/BKGqXQZSwCZHi0OWKRTcw5PHeJJiaSgcVodp+kpDci6/Ebq/n/F01rFaQVTYvbf2eZ7P5vY0YKghNrd633lncl2DkbJ9DHAGl95tKZ5Di1aRd7e9yeHZNlTLP4qWMgE+KFh00eEHpxDxKKHdBa4u2gFOQ8JyBY+ZLa4g SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2018 23:46:04.0392 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9184d586-1fc6-4a65-7810-08d55d3b4e79 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR0701MB1061 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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. Thanks, JC.