You are not logged in.

#1 2023-07-10 14:03:43

Neferin
Member
Registered: 2023-07-10
Posts: 2

[SOLVED] Unable to use the tpm chip because every command gets stuck

Hi,
I am not completely sure if my question belongs here or in "System Administration", mainly because I have no clue what the actual problem is.
I'm currently trying to automatically decrypt my luks2 encrypted root partition during the boot process using the tpm2 chip of my new framework laptop. When trying to set this up with clevis, I used the command from the Wiki but after I entered the luks password it just got stuck and nothing happened (I think I let it run for ~20min). Afterwards I tried running the hello-world example

clevis encrypt tpm2 '{}' <<< 'hello, world'

but same problem there. I tried clearing the tpm chip in the bios but that did not help either.
I also looked into the system journal:

Jul 10 15:29:04 jframework kernel: task:tpm2_createprim state:D stack:0     pid:2746  ppid:2727   flags:0x00000002
Jul 10 15:29:04 jframework kernel:  tpm_common_poll+0x43/0x70
Jul 10 15:29:42 jframework dbus-daemon[797]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.106' (uid=0 pid=4159 comm="sudo clevis encrypt tpm2 {}")
Jul 10 15:31:07 jframework kernel:  tpm_try_get_ops+0x3f/0x90
Jul 10 15:31:07 jframework kernel:  tpm_find_get_ops+0x18/0x60
Jul 10 15:31:07 jframework kernel:  tpm_get_random+0x26/0x80
Jul 10 15:31:07 jframework kernel: INFO: task tpm2_createprim:2746 blocked for more than 491 seconds.
Jul 10 15:31:07 jframework kernel: task:tpm2_createprim state:D stack:0     pid:2746  ppid:2727   flags:0x00000006
Jul 10 15:31:07 jframework kernel:  tpm_common_poll+0x43/0x70
Jul 10 15:33:10 jframework kernel:  tpm_try_get_ops+0x3f/0x90
Jul 10 15:33:10 jframework kernel:  tpm_find_get_ops+0x18/0x60
Jul 10 15:33:10 jframework kernel:  tpm_get_random+0x26/0x80
Jul 10 15:35:49 jframework kernel: tpm tpm0: tpm_try_transmit: send(): error -62 

and the kernel message log:

Jul 10 15:33:10 jframework kernel: INFO: task hwrng:147 blocked for more than 491 seconds.
Jul 10 15:33:10 jframework kernel:       Tainted: G           OE      6.4.2-arch1-1 #1
Jul 10 15:33:10 jframework kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Jul 10 15:33:10 jframework kernel: task:hwrng           state:D stack:0     pid:147   ppid:2      flags:0x00004000
Jul 10 15:33:10 jframework kernel: Call Trace:
Jul 10 15:33:10 jframework kernel:  <TASK>
Jul 10 15:33:10 jframework kernel:  ? __pfx_hwrng_fillfn+0x10/0x10
Jul 10 15:33:10 jframework kernel:  __schedule+0x3e5/0x1410
Jul 10 15:33:10 jframework kernel:  ? psi_task_switch+0xd6/0x230
Jul 10 15:33:10 jframework kernel:  ? __pfx_hwrng_fillfn+0x10/0x10
Jul 10 15:33:10 jframework kernel:  schedule+0x5e/0xd0
Jul 10 15:33:10 jframework kernel:  schedule_preempt_disabled+0x15/0x30
Jul 10 15:33:10 jframework kernel:  __mutex_lock.constprop.0+0x39a/0x6a0
Jul 10 15:33:10 jframework kernel:  ? __pfx_hwrng_fillfn+0x10/0x10
Jul 10 15:33:10 jframework kernel:  tpm_try_get_ops+0x3f/0x90
Jul 10 15:33:10 jframework kernel:  tpm_find_get_ops+0x18/0x60
Jul 10 15:33:10 jframework kernel:  tpm_get_random+0x26/0x80
Jul 10 15:33:10 jframework kernel:  hwrng_fillfn+0xdf/0x1e0
Jul 10 15:33:10 jframework kernel:  kthread+0xe5/0x120
Jul 10 15:33:10 jframework kernel:  ? __pfx_kthread+0x10/0x10
Jul 10 15:33:10 jframework kernel:  ret_from_fork+0x29/0x50
Jul 10 15:33:10 jframework kernel:  </TASK>
Jul 10 15:33:10 jframework kernel: Future hung task reports are suppressed, see sysctl kernel.hung_task_warnings
Jul 10 15:34:07 jframework kernel: cros-ec-dev cros-ec-dev.1.auto: Some logs may have been dropped...
Jul 10 15:35:49 jframework kernel: tpm tpm0: tpm_try_transmit: send(): error -62 

But to be honest I don't really understand the error messages.
So my main question is: Do you have any idea what could be causing this? I wasn't able to find someone with a similar problem.

Last edited by Neferin (2023-07-10 15:17:18)

Offline

#2 2023-07-10 14:58:58

espritlibre
Member
Registered: 2022-12-15
Posts: 138

Re: [SOLVED] Unable to use the tpm chip because every command gets stuck

Offline

#3 2023-07-10 15:16:45

Neferin
Member
Registered: 2023-07-10
Posts: 2

Re: [SOLVED] Unable to use the tpm chip because every command gets stuck

Thank you and sorry for the duplicate, looks like I need to work on my searching skills...

Offline

Board footer

Powered by FluxBB