Home
last modified time | relevance | path

Searched hist:"58472 f5cd4f6ff02488c8da3cdbf719e9dd21e48" (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/char/tpm/
H A Dtpm-interface.cdiff 58472f5cd4f6ff02488c8da3cdbf719e9dd21e48 Thu Nov 10 22:42:07 CST 2016 Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> tpm: validate TPM 2.0 commands

Check for every TPM 2.0 command that the command code is supported and
the command buffer has at least the length that can contain the header
and the handle area.

For ContextSave and FlushContext we mark the body to be part of the
handle area. This gives validation for these commands at zero
cost, including the body of the command.

The more important reason for this is that we can virtualize these
commands in the same way as you would virtualize the handle area of a
command.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Reviewed-by: James Bottomley <James.Bottomley@HansenPartnership.com>
H A Dtpm2-cmd.cdiff 58472f5cd4f6ff02488c8da3cdbf719e9dd21e48 Thu Nov 10 22:42:07 CST 2016 Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> tpm: validate TPM 2.0 commands

Check for every TPM 2.0 command that the command code is supported and
the command buffer has at least the length that can contain the header
and the handle area.

For ContextSave and FlushContext we mark the body to be part of the
handle area. This gives validation for these commands at zero
cost, including the body of the command.

The more important reason for this is that we can virtualize these
commands in the same way as you would virtualize the handle area of a
command.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Reviewed-by: James Bottomley <James.Bottomley@HansenPartnership.com>
H A Dtpm.hdiff 58472f5cd4f6ff02488c8da3cdbf719e9dd21e48 Thu Nov 10 22:42:07 CST 2016 Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> tpm: validate TPM 2.0 commands

Check for every TPM 2.0 command that the command code is supported and
the command buffer has at least the length that can contain the header
and the handle area.

For ContextSave and FlushContext we mark the body to be part of the
handle area. This gives validation for these commands at zero
cost, including the body of the command.

The more important reason for this is that we can virtualize these
commands in the same way as you would virtualize the handle area of a
command.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Reviewed-by: James Bottomley <James.Bottomley@HansenPartnership.com>