- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.1k
 
libutee: Fix the init_done status while closing session #7543
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
base: master
Are you sure you want to change the base?
Conversation
Mark init_done as false if uninit_instance is called. This is necessary to avoid running a TA uninitialized. Also, need to call __utee_gprof_fini() and __utee_call_elf_fini_fn() next time opening TA session. Signed-off-by: Pengguang Zhu <[email protected]>
| 
           Hi @zhupg, thanks for the patch.   | 
    
| 
           We have   | 
    
| 
           This should not be addressed in the TA. OP-TEE Core should prevent this from happening.  | 
    
| 
           @jforissier @jenswi-linaro thanks for your reply. It's better to fix it in OP-TEE core. 
 Do you have any suggestions or can you provide a patch? thanks.  | 
    
| 
           We'll need another state variable in  Later, when the session is closed and we know that the context should be kept, we can clear that variable and let  This is a rough sketch, but it should do the trick.  | 
    
| 
           This pull request has been marked as a stale pull request because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this pull request will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time.  | 
    
Mark init_done as false if uninit_instance is called. This is necessary to avoid running a TA uninitialized. Also, need to call __utee_gprof_fini() and __utee_call_elf_fini_fn() next time opening TA session.