All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about the TPM driver
@ 2018-09-13 13:14 Martin Galvan
  2018-09-13 14:22 ` James Bottomley
  2018-09-16 19:16 ` Jarkko Sakkinen
  0 siblings, 2 replies; 12+ messages in thread
From: Martin Galvan @ 2018-09-13 13:14 UTC (permalink / raw)
  To: linux-integrity, jarkko.sakkinen

Hi all,

I noticed that, after a command is done, the TPM driver only allows
for a single read operation (for a limited time). If I wanted to e.g.
check a command's response code before attempting to read the rest of
the response, my next read would fail. Same happens if I take too long
to read a command's results.

I can understand the timeout, but I'm curious about this single-read
policy, especially since some commands such as GetCapability don't
guarantee how much data will actually be returned. Does anyone know
why it was implemented this way?

Thanks

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-10-11 22:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-13 13:14 Question about the TPM driver Martin Galvan
2018-09-13 14:22 ` James Bottomley
2018-09-13 14:31   ` Martin Galvan
2018-09-13 15:11     ` Javier Martinez Canillas
2018-09-13 15:21       ` Tadeusz Struk
2018-09-13 15:26         ` Martin Galvan
2018-10-11 15:17   ` Ken Goldman
2018-09-16 19:16 ` Jarkko Sakkinen
2018-09-17 13:32   ` Martin Galvan
2018-09-17 14:45     ` James Bottomley
2018-09-17 21:23       ` Jarkko Sakkinen
2018-09-17 21:20     ` Jarkko Sakkinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.