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=-10.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,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 D1A27C07E94 for ; Fri, 4 Jun 2021 11:19:37 +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 99B8A61369 for ; Fri, 4 Jun 2021 11:19:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 99B8A61369 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+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.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc: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=hn0XO8kcD/4F3J2xmM6JNaCosVziVI0sxFHdgcP7D+g=; b=N3ThH2U2CkevNj y4ey9qEaJKKCKoM32uNchC6aR9ihGclD5rhW6hzpBFKUYI3WcmzjFh5uHvoeF4w3i11ehMAIAyI+K dTtMeiJxiCZStqRpJ9ZkXYtlySdAzK5ND0EGvJFiBH7j20l//mUsZDP5YZmPk9PSGhn/KjupQtzdd dvA6bof1YoqhkZSNL2+ok6T/gUgtCkAlLtSwd/0pknNKk/I11nI7HBsit3mAXjaMqK8TfFhGuPF/e YHK7DXG3S+G3DhJRhOD3aseCDtfdET7bxbC5m7SJ0in7nNxvm2igviY7q5E97bN8FYDNysQXl11cU PeDV33ULTD1UM0BwXnPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lp7nj-00DDIw-Lj; Fri, 04 Jun 2021 11:15:44 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lp7ck-00D8Ws-Fw for linux-arm-kernel@lists.infradead.org; Fri, 04 Jun 2021 11:04:27 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 24A4660FF2; Fri, 4 Jun 2021 11:04:21 +0000 (UTC) Date: Fri, 4 Jun 2021 12:04:18 +0100 From: Catalin Marinas To: Daniel Kiss Cc: will@kernel.org, Ard.Biesheuvel@arm.com, linux-arm-kernel@lists.infradead.org, pcc@google.com Subject: Re: [PATCH v5 2/2] arm64: Conditionally configure PTR_AUTH key of the kernel. Message-ID: <20210604110417.GC31173@arm.com> References: <20210604100437.1658599-1-daniel.kiss@arm.com> <20210604100437.1658599-3-daniel.kiss@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210604100437.1658599-3-daniel.kiss@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210604_040422_607167_57BEA48C X-CRM114-Status: UNSURE ( 9.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jun 04, 2021 at 12:04:37PM +0200, Daniel Kiss wrote: > If the kernel is not compiled with CONFIG_ARM64_PTR_AUTH_KERNEL=y, > then no PACI/AUTI instructions are expected while the kernel is running > so the kernel's key will not be used. Write of a system regiters s/regiters/registers/ > is expensive therefore avoid it not required. s/it/if/ > Signed-off-by: Daniel Kiss Reviewed-by: Catalin Marinas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel