Can't boot after installation with TPM backed FDE on xps9320

Bug #2107457 reported by Olivier Gayot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity (Ubuntu)
New
Undecided
Unassigned

Bug Description

I tried installing Ubuntu 25.04 desktop with TPM backed FDE on two different XPS 9320 units.

The installation seems to succeed.

However, on first boot, it is asking me for a recovery key.

Please enter the recovery key for volume ubuntu-data-a2b3ba2e-2555-4957-a47b-94804d4c119 for device /dev/disk/by-uuid/6bdc5a11-5d7d-4d64-89f-05d9464191e (press TAB for no echo)

Inputting the passphrase entered during the installation does not work

Tags: iso-testing
Revision history for this message
Olivier Gayot (ogayot) wrote :

Logs from first install

Revision history for this message
Olivier Gayot (ogayot) wrote :

Logs from second install

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/2107457

tags: added: iso-testing
Revision history for this message
Olivier Gayot (ogayot) wrote :

Same result if I skip the "passphrase" screen during the installation.

description: updated
Revision history for this message
Olivier Gayot (ogayot) wrote :

Same result when installing 24.10 - so not a regression in that sense.

Revision history for this message
Mate Kukri (mkukri) wrote :

Can you try booting the hard-disk via the same boot menu you booted the installer from?

Some devices unfortunately have issues where the boot UI is included in the measurements and if you autoboot the HDD without going through the menu it fails.

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Yes, if you could boot the ISO exactly how you booted it to create the install and then copy /sys/kernel/security/tpm0/binary_bios_measurements from the machine and either attach it to this bug or send it to me, then that would be great.

Revision history for this message
Olivier Gayot (ogayot) wrote :

Hello Mate, hello Chris,

I did another install and tried booting the target system from the exact same menu but it still asked me for the recovery key.

Quickly after powering on the laptop, I hit F12 - "One-Time Boot Settings" then select the USB media if I want to boot the installer - or select the NVMe drive if I want to boot the target system.

I will attach some screenshots, along with:

* the measurements file (collected when booting the installer for the first time)
* the measurements file (collected after failing to boot the target system - and booting the installer again)

Some details that I assume are not relevant:

* The ISO was dd-ed onto the USB drive (i.e., dd if=plucky-desktop-amd64.iso of=/dev/sda bs=1M conv=sync)
* The USB drive is connected to the laptop using a USB3 to USB-C adapter.

Revision history for this message
Olivier Gayot (ogayot) wrote :
Revision history for this message
Olivier Gayot (ogayot) wrote :
Revision history for this message
Olivier Gayot (ogayot) wrote :
Revision history for this message
Olivier Gayot (ogayot) wrote :
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Like Mate suggested, I suspect this is a case of there either being additional load events in PCR4 when running the initial install, resulting in an invalid PCR policy being created, or a case of us creating a valid PCR policy but there being additional load events in PCR4 when trying to boot the installed system. Unfortunately, the attached log doesn't show that. As this is a Dell and I have a spare XPS15 at home, I'll try some boots to see if I can recreate the issue. It would be nice for us to have a TCG log from a device that demonstrates the issue so that we know how to properly fix it.

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

I've just figured out what the issue is here - this device has a debugging endpoint built into the firmware which is indicated in PCR7

7 a62bd67b2cc295976651b354468c0047f8d1547d25056ded5952aaf5991762a3 EV_EFI_ACTION UEFI Debug Mode

This causes us to silently mis-predict the PCR7 value today. This will eventually be detected here and will prevent FDE from being enabled:

https://github.com/canonical/secboot/blob/2972449df0baab78eee8f5d99e01d479673651b0/efi/preinstall/check_host_security.go#L67

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.