[tpmdd-devel] TPM 2.0 device driver blocking open

2016-12-30 Thread Ken Goldman
It appears that an open() to the TPM doesn't block if another process has /dev/tpm0 open. It returns -1, an error. Questions: Is this expected behavior? Was this also true for 1.2? Is there any way to change it. I didn't set O_NOBLOCK. Is there perhaps an ioctl()? Is this something that

Re: [tpmdd-devel] [PATCH v2 2/2] tpm: enhance TPM 2.0 PCR extend to support multiple banks

2016-12-30 Thread kbuild test robot
Hi Nayna, [auto build test WARNING on next-20161224] [also build test WARNING on v4.10-rc1] [cannot apply to char-misc/char-misc-testing v4.9-rc8 v4.9-rc7 v4.9-rc6] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [tpmdd-devel] [PATCH v2 2/2] tpm: enhance TPM 2.0 PCR extend to support multiple banks

2016-12-30 Thread kbuild test robot
Hi Nayna, [auto build test ERROR on next-20161224] [also build test ERROR on v4.10-rc1] [cannot apply to char-misc/char-misc-testing v4.9-rc8 v4.9-rc7 v4.9-rc6] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[tpmdd-devel] [PATCH v2 1/2] tpm: implement TPM 2.0 capability to get active PCR banks

2016-12-30 Thread Nayna Jain
This patch implements the TPM 2.0 capability TPM_CAP_PCRS to retrieve the active PCR banks from the TPM. This is needed to enable extending all active banks as recommended by TPM 2.0 TCG Specification. Signed-off-by: Nayna Jain --- drivers/char/tpm/tpm.h | 5 +++

[tpmdd-devel] [PATCH v2 0/2] tpm: enhance TPM 2.0 extend function to support multiple PCR banks

2016-12-30 Thread Nayna Jain
IMA extends its hash measurements in the TPM PCRs, based on policy. The existing in-kernel TPM extend function extends only the SHA1 PCR bank. TPM 2.0 defines multiple PCR banks, to support different hash algorithms. The TCG TPM 2.0 Specification[1] recommends extending all active PCR banks to