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=-8.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 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 25348CA9EA0 for ; Fri, 25 Oct 2019 10:02:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 03F7420663 for ; Fri, 25 Oct 2019 10:02:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502230AbfJYKCh (ORCPT ); Fri, 25 Oct 2019 06:02:37 -0400 Received: from foss.arm.com ([217.140.110.172]:38184 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404388AbfJYKCh (ORCPT ); Fri, 25 Oct 2019 06:02:37 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EF82128; Fri, 25 Oct 2019 03:02:36 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CD6EB3F6C4; Fri, 25 Oct 2019 03:02:34 -0700 (PDT) Date: Fri, 25 Oct 2019 11:02:32 +0100 From: Mark Rutland To: samitolvanen@google.com Cc: Will Deacon , Catalin Marinas , Steven Rostedt , Masami Hiramatsu , Ard Biesheuvel , Dave Martin , Kees Cook , Laura Abbott , Nick Desaulniers , Jann Horn , Miguel Ojeda , Masahiro Yamada , clang-built-linux@googlegroups.com, kernel-hardening@lists.openwall.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 04/17] arm64: kernel: avoid x18 as an arbitrary temp register Message-ID: <20191025100232.GC40270@lakrids.cambridge.arm.com> References: <20191018161033.261971-1-samitolvanen@google.com> <20191024225132.13410-1-samitolvanen@google.com> <20191024225132.13410-5-samitolvanen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191024225132.13410-5-samitolvanen@google.com> User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Minor nit, but could we make the title a bit more specific (and more uniform across the series)? e.g. arm64: kvm: avoid x18 in __cpu_soft_restart That makes things a bit nicer when trawling through git logs as the scope of the patch is clearer. On Thu, Oct 24, 2019 at 03:51:19PM -0700, samitolvanen@google.com wrote: > From: Ard Biesheuvel > > The code in __cpu_soft_restart() uses x18 as an arbitrary temp register, > which will shortly be disallowed. So use x8 instead. > > Link: https://patchwork.kernel.org/patch/9836877/ > Signed-off-by: Ard Biesheuvel > Signed-off-by: Sami Tolvanen Either way: Reviewed-by: Mark Rutland > --- > arch/arm64/kernel/cpu-reset.S | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/kernel/cpu-reset.S b/arch/arm64/kernel/cpu-reset.S > index 6ea337d464c4..32c7bf858dd9 100644 > --- a/arch/arm64/kernel/cpu-reset.S > +++ b/arch/arm64/kernel/cpu-reset.S > @@ -42,11 +42,11 @@ ENTRY(__cpu_soft_restart) > mov x0, #HVC_SOFT_RESTART > hvc #0 // no return > > -1: mov x18, x1 // entry > +1: mov x8, x1 // entry > mov x0, x2 // arg0 > mov x1, x3 // arg1 > mov x2, x4 // arg2 > - br x18 > + br x8 > ENDPROC(__cpu_soft_restart) > > .popsection > -- > 2.24.0.rc0.303.g954a862665-goog > 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=-8.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 0B9D8CA9EA0 for ; Fri, 25 Oct 2019 10:02:59 +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 CF42220663 for ; Fri, 25 Oct 2019 10:02:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="U0G/ljqh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CF42220663 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com 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:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oZ6oyCrOvBryc2wlw6j3txdWyLMJ1fIf1g3Bkjv8q08=; b=U0G/ljqhTa1Mkl VnriGKFitSYJFR5Uyne8TOp4qCwHtgFzOW471slpjsqk6q8snsX4vXP0V1LZLWVDRJ5p1AOltOZxq nXG3QwVWnDnUXRNnmSgRNElq/dRslBIo7gBAaJT2L4kiS1iiQ03AWgnZQoYCs6ifqhXNM1umo2+CC LxeJQ5twOlXtMwY37CKFyCXEy3v/aIpn2Ct/i9WtfkAHyPI5Qvk4tp+VTKSIMQp/gdiUtwXyZfnC8 p/thDxm514CTIJemxobH1IWIPprk/dSBUYSZIK/gngdyBiZOhJ+i1JVtcq1UR2cBrtablNbw7znU/ TtroBQQpQzn5+yh6M75A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNwQn-0008SZ-Tr; Fri, 25 Oct 2019 10:02:53 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNwQZ-0008F9-02 for linux-arm-kernel@lists.infradead.org; Fri, 25 Oct 2019 10:02:40 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EF82128; Fri, 25 Oct 2019 03:02:36 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CD6EB3F6C4; Fri, 25 Oct 2019 03:02:34 -0700 (PDT) Date: Fri, 25 Oct 2019 11:02:32 +0100 From: Mark Rutland To: samitolvanen@google.com Subject: Re: [PATCH v2 04/17] arm64: kernel: avoid x18 as an arbitrary temp register Message-ID: <20191025100232.GC40270@lakrids.cambridge.arm.com> References: <20191018161033.261971-1-samitolvanen@google.com> <20191024225132.13410-1-samitolvanen@google.com> <20191024225132.13410-5-samitolvanen@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191024225132.13410-5-samitolvanen@google.com> User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191025_030239_083784_08002810 X-CRM114-Status: GOOD ( 15.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kees Cook , Ard Biesheuvel , Masahiro Yamada , Catalin Marinas , Jann Horn , Nick Desaulniers , linux-kernel@vger.kernel.org, Steven Rostedt , Miguel Ojeda , Masami Hiramatsu , clang-built-linux@googlegroups.com, kernel-hardening@lists.openwall.com, Laura Abbott , Will Deacon , Dave Martin , linux-arm-kernel@lists.infradead.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 Minor nit, but could we make the title a bit more specific (and more uniform across the series)? e.g. arm64: kvm: avoid x18 in __cpu_soft_restart That makes things a bit nicer when trawling through git logs as the scope of the patch is clearer. On Thu, Oct 24, 2019 at 03:51:19PM -0700, samitolvanen@google.com wrote: > From: Ard Biesheuvel > > The code in __cpu_soft_restart() uses x18 as an arbitrary temp register, > which will shortly be disallowed. So use x8 instead. > > Link: https://patchwork.kernel.org/patch/9836877/ > Signed-off-by: Ard Biesheuvel > Signed-off-by: Sami Tolvanen Either way: Reviewed-by: Mark Rutland > --- > arch/arm64/kernel/cpu-reset.S | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/kernel/cpu-reset.S b/arch/arm64/kernel/cpu-reset.S > index 6ea337d464c4..32c7bf858dd9 100644 > --- a/arch/arm64/kernel/cpu-reset.S > +++ b/arch/arm64/kernel/cpu-reset.S > @@ -42,11 +42,11 @@ ENTRY(__cpu_soft_restart) > mov x0, #HVC_SOFT_RESTART > hvc #0 // no return > > -1: mov x18, x1 // entry > +1: mov x8, x1 // entry > mov x0, x2 // arg0 > mov x1, x3 // arg1 > mov x2, x4 // arg2 > - br x18 > + br x8 > ENDPROC(__cpu_soft_restart) > > .popsection > -- > 2.24.0.rc0.303.g954a862665-goog > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel