WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH][VTPM] re-send:VTPM manager :Fix parameter check]

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH][VTPM] re-send:VTPM manager :Fix parameter check]
From: Kouichi Yasaki <yasaki.kouichi@xxxxxxxxxxxxxx>
Date: Tue, 18 Sep 2007 09:03:36 +0900
Delivery-date: Mon, 17 Sep 2007 17:05:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)
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@xxxxxxxxxxxxxx>

Thanks
  Kouichi YASAKI
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH][VTPM] re-send:VTPM manager :Fix parameter check], Kouichi Yasaki <=