All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem with the kernels trusted module on "inactive" TPM
@ 2019-06-27 16:59 CrazyT
  2019-07-01 14:22   ` Roberto Sassu
  0 siblings, 1 reply; 9+ messages in thread
From: CrazyT @ 2019-06-27 16:59 UTC (permalink / raw)
  To: keyrings

Hi,


some people (including me) have problems with the "trusted" kernel module.
As a result to this also the ecryptfs-module won't load.
(https://bugs.archlinux.org/task/62678)
If you use an "inactive" TPM module, the "trusted" module won't load anymore.
The command modprobe just responds with "Bad address".
The strace-command shows that init_module fails with EFAULT.
I believe the reason for this is that the trusted-module handles
inactive modules the same as active modules.
This results in an error.

For example:
https://github.com/torvalds/linux/commit/0b6cf6b97b7ef1fa3c7fefab0cac897a1c4a3400#diff-c01228e6d386afb29df6aac17d9dd7abR1251

My guess is that init_digests(); returns EFAULT in that case.
The " if (!chip)" check above probably needs to check if the chip is "inactive".

"inactive" = still visible to the system, but not functional.
It seems to be the default bios-setting for TPM on thinkpad.
(btw.: i have no clue why anybody would need something like that)

Sadly i have no idea how you would check for an inactive chip,else i
would have send a patch instead.
But I hope the info i wrote is enough to get it fixed by somebody.


Greetings,

CrazyT

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-07-04 12:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-27 16:59 Problem with the kernels trusted module on "inactive" TPM CrazyT
2019-07-01 14:22 ` Roberto Sassu
2019-07-01 14:22   ` Roberto Sassu
2019-07-04 10:42   ` Jarkko Sakkinen
2019-07-04 10:42     ` Jarkko Sakkinen
2019-07-04 12:25     ` Roberto Sassu
2019-07-04 12:25       ` Roberto Sassu
2019-07-04 12:42       ` Mimi Zohar
2019-07-04 12:42         ` Mimi Zohar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.