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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 366BEC433EF for ; Mon, 31 Jan 2022 17:46:30 +0000 (UTC) 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:Date: Message-ID:References:Cc:To:From:Subject:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=G3VH7r3Pgu/aFvwfnOmyv8mTrdTFdN45eHCo5cVTn1U=; b=zJRFMfXK1McwY/mKnanHswoRNU lqfvczmerPYCdgVHyMfrperDfITrphMqBntzeiVUmdrutB10BdedufOfVKT8wlq8Ee0wFHQ1qOpQY 9xXU46eBm70o6uoeog9N0189C0I/bbfqyKw96eYQ+4f8ylNaD1tcirNe9UYgOQa4V9J8au24GbXB5 Wc7njlJNu8mPW9DUd2GshFzpxEFAODaRXZ/GHWtFt+ppETGf40UL8TfmAqcLqcw/5/JNARq1dWe5G mZbjCQGqzW4gLxR/G2YQm/ZF5Oq0Whvi6Es6FBvRyz0S5zCYrXpOckNiNHg/E59Y/6OFyiWLdDdzC U7/+Qhsg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nEajW-00ACsw-1O; Mon, 31 Jan 2022 17:44:54 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nEadV-00AAzH-2X for linux-arm-kernel@lists.infradead.org; Mon, 31 Jan 2022 17:38:42 +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 39270ED1; Mon, 31 Jan 2022 09:38:40 -0800 (PST) Received: from [10.57.13.88] (unknown [10.57.13.88]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6C5083F73B; Mon, 31 Jan 2022 09:38:39 -0800 (PST) Subject: Re: [PATCH v2 0/4] arm64: Support of PAuth QARMA3 architected algorithm From: Vladimir Murzin To: linux-arm-kernel@lists.infradead.org Cc: maz@kernel.org, catalin.marinas@arm.com, mark.rutland@arm.com, will@kernel.org References: <20220131170654.62381-1-vladimir.murzin@arm.com> Message-ID: <89e723c6-95e9-0b21-18d8-66eed904647d@arm.com> Date: Mon, 31 Jan 2022 17:38:58 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20220131170654.62381-1-vladimir.murzin@arm.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220131_093841_227729_48B849CF X-CRM114-Status: GOOD ( 13.38 ) 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 1/31/22 5:06 PM, Vladimir Murzin wrote: > QARMA3 is relaxed version of the QARMA5 algorithm which expected to > reduce the latency of calculation while still delivering a suitable > level of security. > > Feature advertised via a new ID fields in ID_AA64ISAR2_EL1 [1], so we > need to teach the kernel to identify this. > > [1] https://developer.arm.com/documentation/ddi0601/2021-12/AArch64-Registers/ID-AA64ISAR2-EL1--AArch64-Instruction-Set-Attribute-Register-2?lang=en > > > Changelog: > > v1 -> v2 > - Removed unintended whitespace change in sysreg.h > - FTR_ALIAS_OPTION_LEN now accounts null terminator > - Extract only APA3 bits from ID_AA64ISAR2_APA3_SHIFT (in ^^^^^^^^^^^^^^^^^^^^^^^ should be read as ID_AA64ISAR2 > contrast to id_aa64isar1_el1 where both APA and API bits > are extracted) in asm_pointer_auth.h > > Thanks! > > Vladimir Murzin (4): > arm64: cpufeature: Account min_field_value when cheking secondaries > for PAuth > arm64: cpufeature: Warn if mutually exclusive PAuth algorithms > detected > arm64: cpufeature: Mark existing PAuth architected algorithm as QARMA5 > arm64: Add support of PAuth QARMA3 architected algorithm > > arch/arm64/include/asm/asm_pointer_auth.h | 3 ++ > arch/arm64/include/asm/cpufeature.h | 1 + > arch/arm64/include/asm/kvm_hyp.h | 1 + > arch/arm64/include/asm/sysreg.h | 12 +++++ > arch/arm64/kernel/cpufeature.c | 63 ++++++++++++++++++++++---- > arch/arm64/kernel/idreg-override.c | 16 ++++++- > arch/arm64/kvm/arm.c | 1 + > arch/arm64/kvm/hyp/include/nvhe/fixed_config.h | 5 ++ > arch/arm64/kvm/hyp/nvhe/sys_regs.c | 14 ++++++ > arch/arm64/kvm/sys_regs.c | 5 ++ > arch/arm64/tools/cpucaps | 6 ++- > 11 files changed, 114 insertions(+), 13 deletions(-) > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel