• jmlatten@linux.vnet.ibm.com's avatar
    tpm/ibmvtpm: Additional LE support for tpm_ibmvtpm_send · 230a7eea
    jmlatten@linux.vnet.ibm.com authored
    commit 62dfd912ab3b5405b6fe72d0135c37e9648071f1 upstream.
    
    Problem: When IMA and VTPM are both enabled in kernel config,
    kernel hangs during bootup on LE OS.
    
    Why?: IMA calls tpm_pcr_read() which results in tpm_ibmvtpm_send
    and tpm_ibmtpm_recv getting called. A trace showed that
    tpm_ibmtpm_recv was hanging.
    
    Resolution: tpm_ibmtpm_recv was hanging because tpm_ibmvtpm_send
    was sending CRQ message that probably did not make much sense
    to phype because of Endianness. The fix below sends correctly
    converted CRQ for LE. This was not caught before because it
    seems IMA is not enabled by default in kernel config and
    IMA exercises this particular code path in vtpm.
    
    Tested with IMA and VTPM enabled in kernel config and VTPM
    enabled on both a BE OS and a LE OS ppc64 lpar. This exercised
    CRQ and TPM command code paths in vtpm.
    Patch is against Peter's tpmdd tree on github which included
    Vicky's previous vtpm le patches.
    Signed-off-by: default avatarJoy Latten <jmlatten@linux.vnet.ibm.com>
    Reviewed-by: default avatarAshley Lai <ashley@ahsleylai.com>
    Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    230a7eea
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
tpm.c Loading commit data...
tpm.h Loading commit data...
tpm_acpi.c Loading commit data...
tpm_atmel.c Loading commit data...
tpm_atmel.h Loading commit data...
tpm_eventlog.c Loading commit data...
tpm_eventlog.h Loading commit data...
tpm_i2c_infineon.c Loading commit data...
tpm_i2c_stm_st33.c Loading commit data...
tpm_i2c_stm_st33.h Loading commit data...
tpm_ibmvtpm.c Loading commit data...
tpm_ibmvtpm.h Loading commit data...
tpm_infineon.c Loading commit data...
tpm_nsc.c Loading commit data...
tpm_of.c Loading commit data...
tpm_ppi.c Loading commit data...
tpm_tis.c Loading commit data...