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

Is reboot required to update a TA in Linux filesystem on OP-TEE? #7098

Open
ancientmodern opened this issue Oct 30, 2024 · 1 comment
Open

Comments

@ancientmodern
Copy link

ancientmodern commented Oct 30, 2024

Hi all,

We are working on OP-TEE on our Jetson Orin to enhance security in our autonomous driving systems. However, the OP-TEE bundled with our Jetson Orin source package is slightly old (v.3.19.0), e.g. the bundled pkcs11 TA does not support hidden EC points, so I needed to patch this commit, which has resolved the issue.

Now, we're preparing to deploy this updated TA across our fleet. However, the behavior I observed when an updated TA takes effect seems a bit unexpected:

  1. If the system is initially booted with the original (or modified version, whatever) pkcs11 TA, it continues to use this version even if I replace or remove it from /lib/optee_armtz.
  2. If the system is booted without any pkcs11 TA, the pkcs11 client understandably fails to work. Once I copy a pkcs11 TA to /lib/optee_armtz, it starts functioning immediately. From that point on, even if I replace or remove the TA, the system continues to use the first one loaded.
  3. In practice, it seems that to update an already loaded TA, a full system reboot is required.

Could anyone explain the underlying mechanisms behind this behavior? I’d like to find the best practice for updating an existing pkcs11 TA in OP-TEE.

Thank you in advance :)

@ivila
Copy link

ivila commented Oct 31, 2024

You may check the TA_FLAGS in user_ta_header_defines.h of pkcs11 ta
It defines single instance(only one will be loaded), multiple session(can handle multiple session), keep alive(once loaded, keep in memory until TEE restart)
And for reference: Global Platform Properties

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

No branches or pull requests

2 participants