Re: [PATCH 1/3] tpm: protect against locality counter underflow

2024-02-20 Thread ross . philipson
On 2/20/24 2:26 PM, Jarkko Sakkinen wrote: On Tue Feb 20, 2024 at 8:54 PM UTC, Lino Sanfilippo wrote: for (i = 0; i <= MAX_LOCALITY; i++) __tpm_tis_relinquish_locality(priv, i); I'm pretty unfamiliar with Intel TXT so asking a dummy question: if Intel TXT uses locality 2 I suppose we s

Re: [RFC PATCH 0/4] Alternative TPM patches for Trenchboot

2024-11-04 Thread ross . philipson
e needs to be patched in the series given that tpm_chip_set_locality() returns zero on success. It is not really my problem but I'm also wondering how the initialization order is managed. What if e.g. IMA happens to initialize before slmodule? Cc: Daniel P. Smith Cc: Ross Philipson Cc: Ard

Re: [RFC PATCH 0/4] Alternative TPM patches for Trenchboot

2024-11-04 Thread ross . philipson
e needs to be patched in the series given that tpm_chip_set_locality() returns zero on success. It is not really my problem but I'm also wondering how the initialization order is managed. What if e.g. IMA happens to initialize before slmodule? Cc: Daniel P. Smith Cc: Ross Philipson Cc: Ard

Re: [RFC PATCH 0/4] Alternative TPM patches for Trenchboot

2024-11-05 Thread ross . philipson
s to initialize before slmodule? Cc: Daniel P. Smith Cc: Ross Philipson Cc: Ard Biesheuvel Cc: Thomas Gleixner Daniel P. Smith (2): tpm, tpm_tis: Close all localities tpm, tpm_tis: Address positive localities in tpm_tis_request_locality() Ross Philipson (2): tpm, tpm_ti

[PATCH v13 16/19] tpm, tpm_tis: Allow locality to be set to a different value

2025-04-05 Thread Ross Philipson
DRTM needs to be able to set the locality used by kernel. Provide a one-shot function tpm_chip_set_locality() for the purpose. Signed-off-by: Ross Philipson Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c | 33 - drivers/char/tpm