On Sat, 05 Nov 2022 19:46:14 +0100 Marek Rusinowski
<[email protected]> wrote:
> Package: systemd
> Version: 252-2
> Severity: important
> X-Debbugs-Cc: [email protected]
> 
> Dear Maintainer,
> 
> In systemd 252 a new tool systemd-pcrphase got included that
> measures PCR values at different boot stages. When tpm2-abrmd is
> installed in the system, the sysinit stage of that tool
> systemd-pcrphase-sysinit.service will hang when initializing tpm2
> context on trying to connect via dbus to running tpm2-abrmd daemon
> because this daemon is not yet running in this point during the boot
> process. This blocks the whole boot sequence as timelimit on
> systemd-pcrphase-sysinit is infinite.
> 
> Resolution for me was to purge from the system tpm2-abrmd and
> libtss2-tcti-tabrmd0 packages so that the tpm2 initialization
> doesn't try to use this daemon but contacts tpm2 device using a
> different method.
> 
> I've confirmed and figured out above by using systemd debug shell
> and running `systemd-pcrphase sysinit` under gdb, the stacktrace
> looked like:
> #0 __GI__poll
> (...)
> #17 Tss2_Tcti_Tabrmd_Init
> (...)
> #24 Esys_Initialize (libtss2-esys)
> #25 tpm2_context_init (libsystemd-shared)
> 
> Thank you,
> Marek

I thought these days in-kernel resource management was preferred? Any
reason you were using abrmd?

-- 
Kind regards,
Luca Boccassi

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to