Comments (13)
Julian,
Good catch--yes, we missed those. Not sure when I’ll get to this. If you want, take a try at it yourself.
Will Arthur
Intel Corporation
Server Security Firmware
803-216-2101
From: juliantrzeciak [mailto:[email protected]]
Sent: Wednesday, September 23, 2015 8:44 AM
To: 01org/TPM2.0-TSS [email protected]
Subject: [TPM2.0-TSS] Tss2_Sys_Initialize: missing some RC values implementation. (#46)
Current implementation of Tss2_Sys_Initialize() in https://github.com/01org/TPM2.0-TSS/blob/master/sysapi/sysapi/ContextManagement.c
according to:
http://www.trustedcomputinggroup.org/files/static_page_files/28CE28FA-1A4B-B294-D0A965038809FE9B/TSS%20system%20API%2001.pdf
TSS System Level API and TPM Command
Transmission Interface Specification
Family "2.0"
Level 00, Revision 01.00
26 January 2015
page 32
misses following RC values:
TSS2_SYS_RC_INSUFFICIENT_CONTEXT: if for any reason there’s not enough memory.
TSS2_SYS_RC_BAD_VALUE: if any parameter has a bad value.
TSS2_SYS_RC_BAD_REFERENCE: if any of sysContext is a NULL pointer.
TSS2_SYS_RC_BAD_TCTI_STRUCTURE: if the implementation checks the TCTI function pointers and
any of the essential ones (transmit and receive) are set to NULL.
Any TPM or TCTI errors that could result from GetCapability calls that are made to get TPM version info.
TSS2_SYS_RC_INCOMPATIBLE_TCTI: unknown or unusable TCTI version.
Any plans in this subject?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/46.
from tpm2-tss.
Will,
I'll take a try.
There may be another candidates, ex: Tss2_Sys_GetCpBuffer misses some trivial null pointer checks.
Do you prefer to have separate issue per function?
from tpm2-tss.
Whatever is easiest for you.
Will Arthur
Intel Corporation
Server Security Firmware
803-216-2101
From: juliantrzeciak [mailto:[email protected]]
Sent: Thursday, September 24, 2015 7:23 AM
To: 01org/TPM2.0-TSS [email protected]
Cc: Arthur, Will C [email protected]
Subject: Re: [TPM2.0-TSS] Tss2_Sys_Initialize: missing some RC values implementation. (#46)
Will,
I'll take a try.
There may be another candidates, ex: Tss2_Sys_GetCpBuffer misses some trivial null pointer checks.
Do you prefer to have separate issue per function?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/46#issuecomment-142901264.
from tpm2-tss.
log4fix: another candidate: Tss2_Sys_GetRpBuffer misses some trivial null pointer checks.
from tpm2-tss.
Julian,
Did you ever do anything on this? If not, I'll take it.
Will
from tpm2-tss.
Will,
Please take it.
Thanks,
Julian
2015-11-02 23:22 GMT+01:00 wcarthur1 [email protected]:
Julian,
Did you ever do anything on this? If not, I'll take it.
Will
—
Reply to this email directly or view it on GitHub
#46 (comment).
from tpm2-tss.
Julian,
I fixed the issues and added tests for the various cases. Can you review my pull request?
Will
from tpm2-tss.
Julian,
I goofed--my changes got merged into the main trunk as part of another change. Please review the changes in commit c7c4a12.
Will
from tpm2-tss.
done.
thanks
from tpm2-tss.
So, can I close this issue?
from tpm2-tss.
yes
2015-11-03 19:26 GMT+01:00 wcarthur1 [email protected]:
So, can I close this issue?
—
Reply to this email directly or view it on GitHub
#46 (comment).
from tpm2-tss.
Will,
Spec for Tss2_Sys_Initialize allows null pointer for tcti and abi, with further info what if.
Sorry for pointing it late.
Regards,
j
from tpm2-tss.
Julian,
That’s been fixed in a more recent version of the spec.
Will Arthur
Intel Corporation
Server Security Firmware
803-216-2101
From: juliantrzeciak [mailto:[email protected]]
Sent: Friday, November 20, 2015 9:13 AM
To: 01org/TPM2.0-TSS [email protected]
Cc: Arthur, Will C [email protected]
Subject: Re: [TPM2.0-TSS] Tss2_Sys_Initialize: missing some RC values implementation. (#46)
Will,
Spec for Tss2_Sys_Initialize allows null pointer for tcti and abi, with further info what if.
Sorry for pointing it late.
Regards,
j
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/46#issuecomment-158411990.
from tpm2-tss.
Related Issues (20)
- Help with build error HOT 2
- New release? HOT 1
- FAPI doesn't flush sessions on error HOT 1
- tests fail on 32-bit with _FILE_BITS=64
- How to build tss2-fapi HOT 3
- GitHub actions on ubuntu:latest get stuck in a AddressSanitizer:DEADLYSIGNAL loop
- Use of TPM2_HR_PERSISTENT triggers undefined behaviour HOT 2
- Tss2_Sys_NV_ReadPublic returns 0x98b "The handle is not correct for the use" HOT 6
- Cannot run tpm2_createprimary HOT 1
- Create Primary fails with Authorization is Unknown when provisioning the Feature API HOT 9
- Error 2446 HOT 2
- Get rid of SHA1 in tests HOT 2
- Create a tcti-transcript module HOT 2
- Fix callocs
- Tss2_PolicyGetDescription() does not null-terminate
- Fapi_Provision Unsupported URL scheme HOT 3
- Received TPM Error
- >=4.1.0 Cannot load device TCTI when compiled with clang HOT 27
- How can I use Esys_import to import a symmetric key? HOT 4
- Memory leak in error path of Esys_Initialize HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tpm2-tss.