Files
linux/drivers/char
Denis Aleksandrov a29ad21b98 tpm: Prevent local DOS via tpm/tpm0/ppi/*operations
Reads on tpm/tpm0/ppi/*operations can become very long on
misconfigured systems. Reading the TPM is a blocking operation,
thus a user could effectively trigger a DOS.

Resolve this by caching the results and avoiding the blocking
operations after the first read.

[ jarkko: fixed atomic sleep:
  sed -i 's/spin_/mutex_/g' drivers/char/tpm/tpm_ppi.c
  sed -i 's/DEFINE_SPINLOCK/DEFINE_MUTEX/g' drivers/char/tpm/tpm_ppi.c ]

Signed-off-by: Denis Aleksandrov <[email protected]>
Reported-by: Jan Stancek <[email protected]>
Closes: https://lore.kernel.org/linux-integrity/[email protected]/T/#u
Suggested-by: Jarkko Sakkinen <[email protected]>
Reviewed-by: Paul Menzel <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
2025-10-10 08:21:45 +03:00
..
2025-09-16 10:15:54 -05:00
2024-07-03 16:44:22 +02:00
2024-09-27 08:18:43 -07:00
…