[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0e232a30-9b47-2315-86ea-4f6eeb7829a8@apertussolutions.com>
Date: Mon, 15 May 2023 21:23:32 -0400
From: "Daniel P. Smith" <dpsmith@...rtussolutions.com>
To: Ross Philipson <ross.philipson@...cle.com>,
Matthew Garrett <mjg59@...f.ucam.org>
Cc: linux-kernel@...r.kernel.org, x86@...nel.org,
linux-integrity@...r.kernel.org, linux-doc@...r.kernel.org,
linux-crypto@...r.kernel.org, iommu@...ts.linux-foundation.org,
kexec@...ts.infradead.org, linux-efi@...r.kernel.org,
tglx@...utronix.de, mingo@...hat.com, bp@...en8.de, hpa@...or.com,
ardb@...nel.org, James.Bottomley@...senpartnership.com,
luto@...capital.net, nivedita@...m.mit.edu,
kanth.ghatraju@...cle.com, trenchboot-devel@...glegroups.com
Subject: Re: [PATCH v6 11/14] reboot: Secure Launch SEXIT support on reboot
paths
On 5/15/23 14:16, Ross Philipson wrote:
> On 5/12/23 07:40, Matthew Garrett wrote:
>> On Thu, May 04, 2023 at 02:50:20PM +0000, Ross Philipson wrote:
>>> If the MLE kernel is being powered off, rebooted or halted,
>>> then SEXIT must be called. Note that the SEXIT GETSEC leaf
>>> can only be called after a machine_shutdown() has been done on
>>> these paths. The machine_shutdown() is not called on a few paths
>>> like when poweroff action does not have a poweroff callback (into
>>> ACPI code) or when an emergency reset is done. In these cases,
>>> just the TXT registers are finalized but SEXIT is skipped.
>>
>> What are the consequences of SEXIT not being called, and why is it ok to
>> skip it in these circumstances?
>
> Well the system is resetting so there are no real consequences. The
> problem on those two paths is that the APs have not been halted with a
> machine_shutdown() and that is a precondition to issuing GETSEC[SEXIT].
> Only the BSP should be active and SEXIT must be done on it.
To expand on this just a bit further. On all paths we were able to
identify, the SECRETS bit is cleared, memconfig is unlocked, and the
private registers are all closed. This makes the system as safe as
possible to go through a power event and be able to come back up on the
other side. The clean way is to always go through an SEXIT before a
power event, but as Ross highlighted this can only be done after the APs
have been halted.
v/r,
dps
Powered by blists - more mailing lists