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 149E9C2BD09 for ; Thu, 27 Jun 2024 18:25:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7hDTfUQ1G14VsBH9d3zKVc5VdNoe7tMjpUEiNChMXsE=; b=3N0lhBB+WWLaMh9n/CUTz+BXcm SAV9xYz2i0bXQN0YxfJSHTbt0ubjltgKG3IhMf0lVuPgpvl0q5MHALbf7lm7Uce6yiTfWwPD/DBQc kYlA2gclEdRxrr2VoJenQpP8Vgt/NITtvMf+Aya0hkKM7LWOgbAUK6bR7IEvE6pKr67lgoNEtB/lL +Sa3kfYcdZQcNEsXU8Q/HPDOo/roMLwjXQTu2me/Nxeco1g4nv2LMJyutgy1OC9asMVnXS5XIdrAl l8nvkYeoHrcNzX+L+gNceQ+UMgSyR+byPaYlAueKD6gmQhNJtGT35iEYyur/YgHinju+ZOq/56qcg Tr30NL6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMtnv-0000000BNkD-0A1I; Thu, 27 Jun 2024 18:25:07 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMtnm-0000000BNiN-07yL for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2024 18:25:00 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 3A23161E6F; Thu, 27 Jun 2024 18:24:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3CB8C2BD10; Thu, 27 Jun 2024 18:24:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719512696; bh=5R8QUHPTPh+6nl0FJmR8JRADQI4yGvqwvjcoNLlc/mk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RLK0Q+aPUkj3ZuwcwerLJ/BAC2+t1vhJ/8vQ1xsoiK/T7LQmZXddkEG5b/1BvXIuP o2zkPG7ohdDzbO6jbDbdPL5r5zPJmG3QZeN18xqfklKjZc8Z878MD5sLRB9woj/HZk qycNVZ0i18W8V5r+pfArrfrF6hxC1rtoQmK8MBBtzWT2Vr+cTa1t7Xm/aZohif7l0j MQlWkWBylOW2NVdGblhkm/3kZGZf56td7/auTAeUtD5aR0fSH5G7vSYOA9f38BGIgp q+8NJexuT97cCVrvCZwxHcyq5CHpXa6lP+lI1QYECRq0IKGQOY0wljq3KUVlbxa4nx z79tRgwRhuVng== Date: Thu, 27 Jun 2024 11:24:56 -0700 From: Kees Cook To: Mark Brown Cc: Jinjie Ruan , catalin.marinas@arm.com, will@kernel.org, oleg@redhat.com, tglx@linutronix.de, peterz@infradead.org, luto@kernel.org, wad@chromium.org, rostedt@goodmis.org, arnd@arndb.de, ardb@kernel.org, mark.rutland@arm.com, rick.p.edgecombe@intel.com, leobras@redhat.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 3/3] arm64: entry: Convert to generic entry Message-ID: <202406271113.1B28E51@keescook> References: <20240627081209.3511918-1-ruanjinjie@huawei.com> <20240627081209.3511918-4-ruanjinjie@huawei.com> <202406270958.D73912B@keescook> <4030b9dd-0156-4fa6-9c1f-caa6a079b5e5@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4030b9dd-0156-4fa6-9c1f-caa6a079b5e5@sirena.org.uk> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240627_112458_141915_83F54608 X-CRM114-Status: GOOD ( 12.41 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jun 27, 2024 at 06:15:36PM +0100, Mark Brown wrote: > On Thu, Jun 27, 2024 at 10:01:11AM -0700, Kees Cook wrote: > > > I've really struggled to get MTE working with qemu, so likely real > > hardware would be needed for that... I'm hoping the ARM folks have > > access to something that would work well for this. :) > > What issues have you been running into? It was so slow to emulate that I couldn't finish booting. However, looking at my qemu scripts, it seems I may have solved this at some point. I remembered wrong! I can test MTE. :P This is what I'm using currently: -cpu max,pauth-impdef=on \ -machine virtualization=true \ -machine virt,gic-version=max,mte=on \ It seems PAC was the issue. Using "pauth-impdef=on" solved it. "The architected QARMA5 and QARMA3 algorithms have good cryptographic properties, but can be quite slow to emulate." https://qemu-project.gitlab.io/qemu/system/arm/cpu-features.html I will go test MTE with this series... -- Kees Cook