Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1570148

Re: [tpmdd-devel] [PATCH v2 1/2] tpm2: add session handle context saving and restoring to the space code

From James Bottomley <James.Bottomley@HansenPartnership.com>
Newsgroups linux.kernel
Subject Re: [tpmdd-devel] [PATCH v2 1/2] tpm2: add session handle context saving and restoring to the space code
Date 2017-01-30 23:20 +0100
Message-ID <t5ssO-15O-17@gated-at.bofh.it> (permalink)
References <t4pdD-2Gf-9@gated-at.bofh.it> <t4pdD-2Gf-11@gated-at.bofh.it> <t55wd-3T3-11@gated-at.bofh.it> <t56iB-4q7-1@gated-at.bofh.it> <t5rZL-GM-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, 2017-01-30 at 23:45 +0200, Jarkko Sakkinen wrote:
> On Sun, Jan 29, 2017 at 02:36:58PM -0800, James Bottomley wrote:
[...]
> > > 2. Can it really return both TPM_RC_HANDLE and
> > > TPM_RC_REFERENCE_H0? 
> > 
> > Yes, it seems that a session that doesn't exist (because it's been
> > flushed) then it returns TPM_RC_REFERNCE_H0, but if the context has 
> > a sequence mismatch (because it's been flushed and reloaded) then 
> > we get TPM_RC_HANDLE.
> > 
> > James
> 
> If it is flushed, wouldn't you just get TPM_RC_REFERENCE_H0 when you 
> try to TPM2_ContextLoad? The "and reloaded" does not make sense to 
> me. Once a session is flushed it cannot be reloaded.
> 
> Maybe you meant to say "beause it's been saved and reloaded"? That 
> would make more sense and fits better what I see in the Commands 
> specification.

I mean if you load a prior context instead of the current one for an
existing handle, effectively a replay, you get TPM_RC_HANDLE.

James

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 1/2] tpm2: add session handle context saving and  restoring to the space code James Bottomley <James.Bottomley@HansenPartnership.com> - 2017-01-28 01:40 +0100
  Re: [tpmdd-devel] [PATCH v2 1/2] tpm2: add session handle context  saving and restoring to the space code Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2017-01-29 22:50 +0100
    Re: [tpmdd-devel] [PATCH v2 1/2] tpm2: add session handle context  saving and restoring to the space code James Bottomley <James.Bottomley@HansenPartnership.com> - 2017-01-29 23:40 +0100
      Re: [tpmdd-devel] [PATCH v2 1/2] tpm2: add session handle context  saving and restoring to the space code Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2017-01-30 22:50 +0100
        Re: [tpmdd-devel] [PATCH v2 1/2] tpm2: add session handle context  saving and restoring to the space code James Bottomley <James.Bottomley@HansenPartnership.com> - 2017-01-30 23:20 +0100
          Re: [tpmdd-devel] [PATCH v2 1/2] tpm2: add session handle context  saving and restoring to the space code Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2017-01-31 14:20 +0100
  Re: [PATCH v2 1/2] tpm2: add session handle context saving and  restoring to the space code Ken Goldman <kgoldman@us.ibm.com> - 2017-01-30 01:50 +0100
    Re: [tpmdd-devel] [PATCH v2 1/2] tpm2: add session handle context  saving and restoring to the space code James Bottomley <James.Bottomley@HansenPartnership.com> - 2017-01-30 02:00 +0100
    Re: [tpmdd-devel] [PATCH v2 1/2] tpm2: add session handle context  saving and restoring to the space code Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2017-01-30 22:50 +0100
  Re: [tpmdd-devel] [PATCH v2 1/2] tpm2: add session handle context  saving and restoring to the space code Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2017-01-31 17:30 +0100
  Re: [tpmdd-devel] [PATCH v2 1/2] tpm2: add session handle context  saving and restoring to the space code Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2017-01-31 17:30 +0100
    Re: [tpmdd-devel] [PATCH v2 1/2] tpm2: add session handle context  saving and restoring to the space code James Bottomley <James.Bottomley@HansenPartnership.com> - 2017-02-01 00:10 +0100

csiph-web