Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup loading/unloading of a TA #17

Merged
1 commit merged into from
Aug 18, 2014
Merged

Conversation

jenswi-linaro
Copy link
Contributor

  • A TA is only loaded via tee-supplicant, directly supplying a
    pointer to the TA binary is not supported any longer.
    This requires and update to the client lib to avoid leaking
    shared memory.
  • The shared memory used to load the TA is freed as soon as the
    TA have been loaded into secure memory
  • Divides tee_ta_init_session() into sevaral functions
  • Divides tee_ta_close_session() into two functions
  • Divides tee_ta_load() into several functions with one
    separate function for signature verification
  • Removes some unused code for kernel TAs
  • Removes the option to lock/unlock a TA is only used by kernel
    TAs which we don't support any longer.
  • Removes the static global tee_rs. Switch to use Thread Local
    Storage pointer provided by the thread handler.

@jenswi-linaro
Copy link
Contributor Author

I've updated with a "goto function_exit;" + comment.

Are all explanations OK?

@jenswi-linaro
Copy link
Contributor Author

Added TA_FLAG_USER_MODE to ta/arch/arm32/user_ta_header.c as agreed.

@pascal-brand38
Copy link
Contributor

+1
Please squash on top of master

* A TA is only loaded via tee-supplicant, directly supplying a
  pointer to the TA binary is not supported any longer.
  This requires and update to the client lib to avoid leaking
  shared memory.
* The shared memory used to load the TA is freed as soon as the
  TA have been loaded into secure memory
* Divides tee_ta_init_session() into sevaral functions
* Divides tee_ta_close_session() into two functions
* Divides tee_ta_load() into several functions with one
  separate function for signature verification
* Removes some unused code for kernel TAs
* Removes the option to lock/unlock a TA is only used by kernel
  TAs which we don't support any longer.
* Removes the static global tee_rs. Switch to use Thread Local
  Storage pointer provided by the thread handler.
* Adds TA_FLAG_USER_MODE by default to TA header since
  all TAs are user mode TAs now.
* Reformats user_ta_header.c to make checkpatch less unhappy with it.
@jenswi-linaro
Copy link
Contributor Author

Squashed and pushed

@ghost ghost merged commit 27cbcc5 into OP-TEE:master Aug 18, 2014
@jenswi-linaro jenswi-linaro deleted the cleanup_load_ta branch September 26, 2014 10:00
@hoihochan hoihochan mentioned this pull request Jul 5, 2016
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants