Conor Lennon
2014-02-12 10:25:41 UTC
Hi,
I have installed trousers-0.3.11.2
When I run tpm-luks-init I get an "Insufficient TPM resources" from
tpm_nvdefine, so I enabled debug in trousers.
I now see the following output from tpm_nvdefine:
LOG_DEBUG TSPI tsp_tcsi_param.c:102 Got no value inside environment var
TSS_TCSD_HOSTNAME.
LOG_DEBUG TSPI tsp_tcsi_param.c:158 Hostname localhost will be used
LOG_DEBUG TSPI obj_context.c:50 Hostname to be used by the context is
localhost.
LOG_DEBUG TSPI obj_context.c:202 context->machineName: localhost.
LOG_DEBUG TSPI rpc/tcstp/rpc.c:480 Retrieving address information from
host: localhost
LOG_WARNING TSPI rpc/tcstp/rpc.c:490 WARNING: Got a list of valid IPs
LOG_DEBUG TSPI rpc/tcstp/rpc_context.c:44 RPC_OpenContext_TP: Received TCS
Context: 0xa0938800
LOG_DEBUG TSPI rpc/tcstp/rpc_caps_tpm.c:40 RPC_GetTPMCapability_TP: TCS
Context: 0xa0938800
LOG_DEBUG TSPI rpc/tcstp/rpc_auth.c:70 RPC_OSAP_TP: TCS Context: 0xa0938800
LOG_DEBUG TSPI rpc/tcstp/rpc_nv.c:39 RPC_NV_DefineOrReleaseSpace_TP: TCS
Context: 0xa0938800
LOG_DEBUG TSPI rpc/tcstp/rpc_nv.c:69 RPC_NV_DefineOrReleaseSpace_TP:
result=21
Tspi_NV_DefineSpace failed: 0x00000015 - layer=tpm, code=0015 (21),
Insufficient TPM resources
LOG_DEBUG TSPI rpc/tcstp/rpc_context.c:60 RPC_CloseContext_TP: TCS
Context: 0xa0938800
LOG_RETERR TSPI tspi_context.c:113: 0x126
I've made the following changes to tcs_utils.c
replaced
LogData("UnloadBlob_Tag:", (temp));
with
LogDebug("UnloadBlob_Tag: %d", (temp));
replaced
LogData("UnloadBlob_Header, size:", *size);
with
LogDebug("UnloadBlob_Header, size: %d", *size);
replaced
LogData("UnloadBlob_Header, returnCode:",
Decode_UINT32(&blob[6]));
with
LogDebug("UnloadBlob_Header, returnCode: %d",
Decode_UINT32(&blob[6]));
I see the following output from tcsd
TCSD svrside.c:539 accepted socket 6
TCSD svrside.c:514 Waiting for connections
TCSD tcsd_threads.c:232 total_recv_size 28, buf_size 1024, recd_so_far 28
TCSD tcsd_threads.c:284 Rx'd packet
TCSD TCS rpc/tcstp/rpc.c:581 Dispatching ordinal 1 (OpenContext)
TCSD TCS rpc/tcstp/rpc_context.c:37 tcs_wrap_OpenContext: thread
-1208972400
TCSD TCS rpc/tcstp/rpc_context.c:53 New context is 0xa093d601
TCSD tcsd_threads.c:313 Sending 0x26 bytes back
TCSD tcsd_threads.c:232 total_recv_size 44, buf_size 1024, recd_so_far 28
TCSD tcsd_threads.c:277 recv_chunk_size 16 recd_so_far 28
TCSD tcsd_threads.c:284 Rx'd packet
TCSD TCS rpc/tcstp/rpc.c:581 Dispatching ordinal 46 (GetCapability)
TCSD TCS rpc/tcstp/rpc_caps_tpm.c:47 tcs_wrap_GetCapability: thread
-1208972400d context a093d601
TCSD TCS tcsi_caps_tpm.c:43 Entering Get Cap
To TPM: 00 C1 00 00 00 12 00 00 00 65 00 00 00 0D 00 00
To TPM: 00 00
TCSD TDDL tddl.c:171 Calling write to driver
I have installed trousers-0.3.11.2
When I run tpm-luks-init I get an "Insufficient TPM resources" from
tpm_nvdefine, so I enabled debug in trousers.
I now see the following output from tpm_nvdefine:
LOG_DEBUG TSPI tsp_tcsi_param.c:102 Got no value inside environment var
TSS_TCSD_HOSTNAME.
LOG_DEBUG TSPI tsp_tcsi_param.c:158 Hostname localhost will be used
LOG_DEBUG TSPI obj_context.c:50 Hostname to be used by the context is
localhost.
LOG_DEBUG TSPI obj_context.c:202 context->machineName: localhost.
LOG_DEBUG TSPI rpc/tcstp/rpc.c:480 Retrieving address information from
host: localhost
LOG_WARNING TSPI rpc/tcstp/rpc.c:490 WARNING: Got a list of valid IPs
LOG_DEBUG TSPI rpc/tcstp/rpc_context.c:44 RPC_OpenContext_TP: Received TCS
Context: 0xa0938800
LOG_DEBUG TSPI rpc/tcstp/rpc_caps_tpm.c:40 RPC_GetTPMCapability_TP: TCS
Context: 0xa0938800
LOG_DEBUG TSPI rpc/tcstp/rpc_auth.c:70 RPC_OSAP_TP: TCS Context: 0xa0938800
LOG_DEBUG TSPI rpc/tcstp/rpc_nv.c:39 RPC_NV_DefineOrReleaseSpace_TP: TCS
Context: 0xa0938800
LOG_DEBUG TSPI rpc/tcstp/rpc_nv.c:69 RPC_NV_DefineOrReleaseSpace_TP:
result=21
Tspi_NV_DefineSpace failed: 0x00000015 - layer=tpm, code=0015 (21),
Insufficient TPM resources
LOG_DEBUG TSPI rpc/tcstp/rpc_context.c:60 RPC_CloseContext_TP: TCS
Context: 0xa0938800
LOG_RETERR TSPI tspi_context.c:113: 0x126
I've made the following changes to tcs_utils.c
replaced
LogData("UnloadBlob_Tag:", (temp));
with
LogDebug("UnloadBlob_Tag: %d", (temp));
replaced
LogData("UnloadBlob_Header, size:", *size);
with
LogDebug("UnloadBlob_Header, size: %d", *size);
replaced
LogData("UnloadBlob_Header, returnCode:",
Decode_UINT32(&blob[6]));
with
LogDebug("UnloadBlob_Header, returnCode: %d",
Decode_UINT32(&blob[6]));
I see the following output from tcsd
TCSD svrside.c:539 accepted socket 6
TCSD svrside.c:514 Waiting for connections
TCSD tcsd_threads.c:232 total_recv_size 28, buf_size 1024, recd_so_far 28
TCSD tcsd_threads.c:284 Rx'd packet
TCSD TCS rpc/tcstp/rpc.c:581 Dispatching ordinal 1 (OpenContext)
TCSD TCS rpc/tcstp/rpc_context.c:37 tcs_wrap_OpenContext: thread
-1208972400
TCSD TCS rpc/tcstp/rpc_context.c:53 New context is 0xa093d601
TCSD tcsd_threads.c:313 Sending 0x26 bytes back
TCSD tcsd_threads.c:232 total_recv_size 44, buf_size 1024, recd_so_far 28
TCSD tcsd_threads.c:277 recv_chunk_size 16 recd_so_far 28
TCSD tcsd_threads.c:284 Rx'd packet
TCSD TCS rpc/tcstp/rpc.c:581 Dispatching ordinal 46 (GetCapability)
TCSD TCS rpc/tcstp/rpc_caps_tpm.c:47 tcs_wrap_GetCapability: thread
-1208972400d context a093d601
TCSD TCS tcsi_caps_tpm.c:43 Entering Get Cap
To TPM: 00 C1 00 00 00 12 00 00 00 65 00 00 00 0D 00 00
To TPM: 00 00
TCSD TDDL tddl.c:171 Calling write to driver