All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kouichi Yasaki <yasaki.kouichi@jp.fujitsu.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH][VTPM] re-send:VTPM manager :Fix parameter check]
Date: Tue, 18 Sep 2007 09:03:36 +0900	[thread overview]
Message-ID: <46EF15D8.2010105@jp.fujitsu.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 729 bytes --]

Hi,

If vtpm_managed is started with the same vtpm instance, the following error occurs .
Attached is a patch that fixes the error.

++++++++++++
 Loading NVM.
         Sending LoadNVM command
 INFO[VTSP]: Unbinding 256 bytes of data.
 ERROR in VTSP_Unbind at vtsp.c:719 code: TPM_BAD_PARAMETER.
 ERROR in envelope_decrypt at securestorage.c:156 code:TPM_BAD_PARAMETER.
 ERROR[VTPM]: Failed to envelope decrypt data
 .ERROR in VTPM_Handle_Load_NVM at securestorage.c:284 code: TPM_BAD_PARAMETER.
 ERROR[VTPM]: Failed to load NVM
 .INFO[VTPM]: [VTPM Listener]: VTPM Listener waiting for messages.
         Reading LoadNVM header
++++++++++++

Signed-off-by: Kouichi YASAKI <yasaki.kouichi@jp.fujitsu.com>

Thanks
  Kouichi YASAKI

[-- Attachment #2: fix_vtpm_manager.patch --]
[-- Type: text/plain, Size: 596 bytes --]

diff -r 256160ff19b7 tools/vtpm_manager/tcs/tcs.c
--- a/tools/vtpm_manager/tcs/tcs.c	Thu Aug 16 13:27:59 2007 +0100
+++ b/tools/vtpm_manager/tcs/tcs.c	Thu Aug 23 16:48:49 2007 +0900
@@ -775,7 +777,7 @@ TPM_RESULT TCSP_UnBind(TCS_CONTEXT_HANDL
   TDDL_UINT32  OutLength = TCPA_MAX_BUFFER_LENGTH;
   
   // check input params
-  if (inData == NULL || privAuth == NULL || outDataSize == NULL || *outData == NULL)
+  if (inData == NULL || privAuth == NULL || outDataSize == NULL || outData == NULL)
     return TPM_BAD_PARAMETER;
   
   // Convert Byte Input parameter in the input byte stream InBuf

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

                 reply	other threads:[~2007-09-18  0:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46EF15D8.2010105@jp.fujitsu.com \
    --to=yasaki.kouichi@jp.fujitsu.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.