Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd-tpm2-setup-early fails with TPM error #32898

Open
DaanDeMeyer opened this issue May 17, 2024 · 0 comments
Open

systemd-tpm2-setup-early fails with TPM error #32898

DaanDeMeyer opened this issue May 17, 2024 · 0 comments
Labels
bug 🐛 Programming errors, that need preferential fixing tpm2

Comments

@DaanDeMeyer
Copy link
Contributor

systemd version the issue has been seen with

255

Used distribution

No response

Linux kernel version used

No response

CPU architectures issue was seen on

x86_64

Component

No response

Expected behaviour you didn't see

The service succeeds

Unexpected behaviour you saw

The service fails

Steps to reproduce the problem

No response

Additional program output to the terminal or log subsystem illustrating the issue

May 17 06:58:29 systemd-tpm2-setup[2199551]: Loaded 'libtss2-esys.so.0' via dlopen()
May 17 06:58:29 systemd-tpm2-setup[2199551]: Loaded 'libtss2-rc.so.0' via dlopen()
May 17 06:58:29 systemd-tpm2-setup[2199551]: Loaded 'libtss2-mu.so.0' via dlopen()
May 17 06:58:29 systemd-tpm2-setup[2199551]: SRK public key file '/run/systemd/tpm2-srk-public-key.pem' does not exist.
May 17 06:58:29 systemd-tpm2-setup[2199551]: Using TPM2 TCTI driver 'device' with device '/dev/tpmrm0'.
May 17 06:58:29 systemd-tpm2-setup[2199551]: Loaded 'libtss2-tcti-device.so.0' via dlopen()
May 17 06:58:29 systemd-tpm2-setup[2199551]: Loaded TCTI module 'tcti-device' (TCTI module for communication with Linux kernel interface.) [Version 2]
May 17 06:58:29 systemd-tpm2-setup[2199551]: TPM successfully started up.
May 17 06:58:29 systemd-tpm2-setup[2199551]: Getting TPM2 capability 0x0000 property 0x0001 count 127.
May 17 06:58:29 systemd-tpm2-setup[2199551]: Getting TPM2 capability 0x0002 property 0x011f count 256.
May 17 06:58:29 systemd-tpm2-setup[2199551]: Getting TPM2 capability 0x0008 property 0x0000 count 508.
May 17 06:58:29 systemd-tpm2-setup[2199551]: Getting TPM2 capability 0x0005 property 0x0000 count 1.
May 17 06:58:29 systemd-tpm2-setup[2199551]: Getting TPM2 capability 0x0001 property 0x81000001 count 1.
May 17 06:58:29 systemd-tpm2-setup[2199551]: TPM handle 0x81000001 not populated.
May 17 06:58:29 systemd-tpm2-setup[2199551]: Creating primary key on TPM.
May 17 06:58:29 systemd-tpm2-setup[2199551]: WARNING:esys:src/tss2-esys/api/Esys_CreatePrimary.c:400:Esys_CreatePrimary_Finish() Received TPM Error
May 17 06:58:29 systemd-tpm2-setup[2199551]: ERROR:esys:src/tss2-esys/api/Esys_CreatePrimary.c:135:Esys_CreatePrimary() Esys Finish ErrorCode (0x000009a2)
May 17 06:58:29 systemd-tpm2-setup[2199551]: Failed to generate primary key in TPM: tpm:session(1):authorization failure without DA implications
May 17 06:58:29 systemd-tpm2-setup[2199551]: Failed to get or create SRK: State not recoverable
May 17 06:58:29 systemd[1]: systemd-tpm2-setup-early.service: Main process exited, code=exited, status=1/FAILURE
May 17 06:58:29 systemd[1]: systemd-tpm2-setup-early.service: Failed with result 'exit-code'.
May 17 06:58:29 systemd[1]: Failed to start systemd-tpm2-setup-early.service - TPM2 SRK Setup (Early).
@DaanDeMeyer DaanDeMeyer added the bug 🐛 Programming errors, that need preferential fixing label May 17, 2024
@yuwata yuwata added the tpm2 label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Programming errors, that need preferential fixing tpm2
Development

No branches or pull requests

2 participants