Re: FW: [RFC PATCH] tpm: don't return -EINVAL if TPM command validation fails

Jason Gunthorpe
2017-12-08T20:20:49Z

On Fri, Dec 08, 2017 at 03:16:53PM -0500, Ken Goldman wrote:

> First, to handle the error, the user space TSS would have to know that the
> RM is mapping what would normally (with the simulator or /dev/tpm0) be the
> usual TPM response packet. This mapping isn't documented anywhere.

There are lots of failure cases that have nothing to do with the TPM,
and I really don't want to see complex code mapping traditional POSIX
errors into TPM packets in the kernel.

If you need that, do it in userspace??

Jason