Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp522884pxb; Wed, 24 Feb 2021 08:10:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfx6lXFySenYJ0CjVzMiqI5/EI19x+cAaGnqm6TdPwJrKxv01RT3NNhCnjhZxN4Yd8/8L3 X-Received: by 2002:a17:906:c401:: with SMTP id u1mr496627ejz.200.1614183031524; Wed, 24 Feb 2021 08:10:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614183031; cv=none; d=google.com; s=arc-20160816; b=Qdg30PBm9859N4mQDaaisPGjLHiR3htq3aHBppuldtsaJj1f0zX13VKXuj9MNfqXCV FhYmdCdZO6eiwMO95Rvm/+cpa1d9TIDLXrwRncXHZuvf12mbZj+n8TWEYxOmzg4iTGfX AssArveAfsgkUonNI3Z7xYwLahctt1Hh1THc5+wEbsRvreWhvCQsNv3ErZwYdpQLmtwm HGQU+/aTTjuhTjNRz5iDCSHaPubUmzjWQvDcLMGewbNrW7WXdx8uym4Y4n01vJ3Z+YGS Nf0e8mTxVziLJrsSf5THSwuvORE3WHQkKn58PkfNMTrGBTFCPBYqPrnN479d9y3i1JH3 djmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject :references:cc:to:from; bh=NccTuUg+fhUR9UI1TTVq0BgsE/lQ5xuEkjcxV6Ya4Z0=; b=R9UOaIXN6oVNIWlLM2k6+plmZ21YSWitbTPlMO1fxuKOrPEZOWwekbikg3+eJ2RCD8 5v5wTjiXKaK6EXeOxSHwN7uiL9bUEgm8vTchX1Tp9aH/Q9Qa1ejNh7Ay8RmncRoSKa8P NH9Wrm/zXx3Pg73TUKY5mLoLss/eH2pI5ODVM7o6Wy50iRHcCdqfysDSTgiwjqvneGGx /gAz2GKqxSReunc5kyHNhMYX9bvBP4vjhccNAIsyh0x8YdQ+dVEmeGqsw1OQLJsrw97E Kqve7A3MbHKzL/u16u8O5i2xnD6RERzj6dqes/iUSg4KZ9WTBq4FPunw880shwdcJxJ2 AB/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a26si1422743edx.311.2021.02.24.08.10.04; Wed, 24 Feb 2021 08:10:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234340AbhBXQHw (ORCPT + 99 others); Wed, 24 Feb 2021 11:07:52 -0500 Received: from marcansoft.com ([212.63.210.85]:58396 "EHLO mail.marcansoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235182AbhBXP42 (ORCPT ); Wed, 24 Feb 2021 10:56:28 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id 8DD9442463; Wed, 24 Feb 2021 15:55:06 +0000 (UTC) From: Hector Martin To: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, Marc Zyngier , Rob Herring , Arnd Bergmann , Olof Johansson , Krzysztof Kozlowski , Mark Kettenis , Tony Lindgren , Mohamed Mediouni , Stan Skowronek , Alexander Graf , Will Deacon , Linus Walleij , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210215121713.57687-1-marcan@marcan.st> <20210218143644.GC89209@C02TD0UTHF1T.local> Subject: Re: [PATCH v2 00/25] Apple M1 SoC platform bring-up Message-ID: <7d878de7-cfe8-ed32-ff7c-d1c3e61aa54f@marcan.st> Date: Thu, 25 Feb 2021 00:55:04 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: es-ES Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/02/2021 00.20, Hector Martin wrote: > I haven't tested things at EL0 yet, but it looks like the stateful > instructions known to be usable in EL0 (AMX) already default to trap on > this platform, so we should be safe there. Everything else looks like it > probably either shouldn't work in EL0 (I sure hope the address > translation one doesn't...) or is probably stateless. I'll dig deeper > and test EL0 in the future, but so far things look OK (for some > questionable values of OK :) ). Follow-up: I have EL0 testing scaffolding now, and I found some more mutable state (an IMP-DEF, pre-standard version of FEAT_AFP, using a separate status register for the bits), but thankfully it traps at EL0 by default. And then I found some other mutable IMP-DEF state that does not trap at EL0. And which is a 0-day CVE in macOS, because it doesn't save/restore/clear it either, nor does it trap there. E-mailing security@apple.com... -- Hector Martin (marcan@marcan.st) Public Key: https://mrcn.st/pub