[tpm2] Re: tpm2_flushcontext stuck
Roberts, William C <william.c.roberts at intel.com>
| Newsgroups | dev.linux.lists.tpm2 |
|---|---|
| Message-ID | <SN6PR11MB3437BA49ADAA8D5EF6AAC934B8789@SN6PR11MB3437.namprd11.prod.outlook.com> |
That's weird, could you strace it and see where it's hanging? What kernel version is that? I'm assuming your using the /dev/tpm0 or /dev/tpmrm0 device directly since I see the sudo. ________________________________ From: Han <keepsimple(a)gmail.com> Sent: Wednesday, December 15, 2021 5:56 PM To: tpm2(a)lists.01.org <tpm2(a)lists.01.org> Subject: [tpm2] tpm2_flushcontext stuck Hi, I'm using tpm2-tools 5.0 in Debian 11 Bullseye based Raspberry Pi OS. I'm trying to run tpm2_flushcontext but the command got stuck and it's not showing anything. Is the data in TPM corrupted? How can I check? $ sudo tpm2_flushcontext 0x80000000 < no output at all and stuck here > (note: the handle 0x80000000 was obtained from previous command output when I was running previous version tpm2-tools 3.1.3 on Debian 10 Buster based OS: $ sudo tpm2_createprimary -H o -g sha256 -G ecc -C context.out ObjectAttribute: 0x00030072 CreatePrimary Succeed ! Handle: 0x80000000)
attachment.htm
(text/html, 2.5 KB)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
That's weird, could you strace it and see where it's hanging?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
What kernel version is that? I'm assuming your using the /dev/tpm0 or /dev/tpmrm0 device directly since I see the sudo.</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Han <[email protected]><br>
<b>Sent:</b> Wednesday, December 15, 2021 5:56 PM<br>
<b>To:</b> [email protected] <[email protected]><br>
<b>Subject:</b> [tpm2] tpm2_flushcontext stuck</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>I'm using tpm2-tools 5.0 in Debian 11 Bullseye based Raspberry Pi OS. I'm trying to run tpm2_flushcontext but the command got stuck and it's not showing anything. Is the data in TPM corrupted? How can I check? </div>
<div><br>
</div>
<div>$ sudo tpm2_flushcontext 0x80000000<br>
</div>
<div>< no output at all and stuck here ></div>
<div><br>
</div>
<div>(note: the handle 0x80000000 was obtained from previous command output when I was running previous version tpm2-tools 3.1.3 on Debian 10 Buster based OS: </div>
<div><br>
</div>
<div>
<pre style="box-sizing:border-box; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:11.9px; margin-top:0px; margin-bottom:16px; padding:16px; overflow:auto; line-height:1.45; border-radius:6px; color:rgb(36,41,47)"><code style="box-sizing:border-box; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:11.9px; padding:0px; margin:0px; background:transparent; border-radius:6px; word-break:normal; border:0px; display:inline; overflow:visible; line-height:inherit">$ sudo tpm2_createprimary -H o -g sha256 -G ecc -C context.out
ObjectAttribute: 0x00030072
CreatePrimary Succeed ! Handle: 0x80000000) </code></pre>
</div>
</div>
</div>
</body>
</html>