[tpm2] How to remove contexts using tpm2-tools v3.1.3?

Han <keepsimple at gmail.com>
Newsgroups dev.linux.lists.tpm2
Message-ID <CAEjGaqcA-FmN2NGNkBqzuV_nRvqYBZ+JqQgxv8e8rWZ5X9=sQA@mail.gmail.com>
Hi,

I'm new to tpm2-tools and am using tpm2-tools version 3.1.3 on Raspberry Pi
CM4. It turns out it doesn't have tpm2_flushcontext which was added in
v4.0. Is there any other tools in tpm2-tools 3.1.3 that can remove
contexts? My goal is to free up some memory in TPM as it returned the
following error:

$ tpm2_rc_decode 0x902
error layer
  hex: 0x0
  identifier: TSS2_TPM_RC_LAYER
  description: Error produced by the TPM
format 0 warning code
  hex: 0x02
  name: TPM2_RC_OBJECT_MEMORY
  description: out of memory for object contexts

--

Thanks

Han
attachment.htm (text/html, 3.5 KB)
<div dir="ltr">Hi,<div><br></div><div><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(35,38,41)">I&#39;m new to tpm2-tools and am using tpm2-tools version 3.1.3 on Raspberry Pi CM4. It turns out it doesn&#39;t have</span><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(35,38,41)"> </span><span style="font-family:inherit;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(35,38,41);white-space:pre-wrap;font-size:13px">tpm2_flushcontext </span><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(35,38,41)">which was added in v4.0. </span><span style="font-family:inherit;font-size:15px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;color:rgb(35,38,41)">Is there any other tools in tpm2-tools 3.1.3 that can remove contexts? My goal is to free up some memory in TPM as it returned the following error:</span></div><div class="gmail-postcell gmail-post-layout--right" style="margin:0px;padding:0px 16px 0px 0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:-apple-system,&quot;system-ui&quot;,&quot;Segoe UI&quot;,&quot;Liberation Sans&quot;,sans-serif;font-size:13px;vertical-align:top;box-sizing:inherit;width:auto;min-width:0px;color:rgb(35,38,41)"><div class="gmail-s-prose gmail-js-post-body" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;width:659px"><pre style="margin-top:0px;margin-bottom:0px;padding:12px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:1.30769;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:5px"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;background-color:transparent;white-space:inherit;border-radius:0px">$ tpm2_rc_decode 0x902
error layer
  hex: 0x0
  identifier: TSS2_TPM_RC_LAYER
  description: Error produced by the TPM
format 0 warning code
  hex: 0x02
  name: TPM2_RC_OBJECT_MEMORY
  description: out of memory for object contexts</code></pre><pre style="margin-top:0px;margin-bottom:0px;padding:12px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:1.30769;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:5px">--</pre><pre style="margin-top:0px;margin-bottom:0px;padding:12px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:1.30769;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:5px">Thanks</pre><pre style="margin-top:0px;margin-bottom:0px;padding:12px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:1.30769;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:5px">Han</pre></div></div></div>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.