-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Persistent objects : save informations after close #814
Comments
I've asked a colleague (Liang Guanchao) to look into this. |
I see the same problem as well (on HiKey) |
One thing I do notice if I supply the buffer pointer and size in TEE_CreatePersistentObject(...), the dataSize is correct. I'm guessing when you call TEE_WriteObjectData(...), the meta header is not updated properly with the size where as TEE_CreatePersistentObject(...) does |
I spent some time to debug this, and I'm pretty sure the root cause
Although we update structure o, it does not persist back into storage, only the head structure does. |
I do have a fix and would like to seek some advice before submitting a pull request.
On a second thought, the file header also contains other fields like objectUsage, which might change over time, maybe we need to take care of those as well? Thanks |
Please submit a pull request, it's easier to discuss the fix when seeing the actual code. |
Hi hoihochan, I have also write a fix for the issue. What I do is as below:
We may have a discussion here. |
Pull request is here: #912 |
Hi, I have review your pull request #912, it's much the same idea as mine. |
@GuanchaoLiang If you've reviewed the pull request and are satisfied with the changes, please add your review tag to the PR. Something like this: |
@vchong Thanks, I will double check the code, and then add my review tag. |
@hoihochan et al, seems like it's a bit more than a month ago since this Issue and #912 was updated. Is anyone actively working with this? |
Sorry. I just came back from a month long vacation. I will resume on it this week On Monday, August 22, 2016, Joakim Bech [email protected] wrote:
|
Great! I'm also just back after a month of vacation, so I've started to follow up a couple of things and that is why I asked :) |
@hoihochan any updates? @GuanchaoLiang anything on your side? |
Fixed in #1217, thanks for reporting the issue. I'm closing it now. |
Hi,
I just wanted to notice that dataSize and dataPosition informations are not restored when opening an object after closing it. I thought it has been fixed in this pull request but I still have the problem, maybe I'm missing something but I don't understand what it is, here is the code I use :
Code :
Output :
I'm using QEMU and optee_os master.
Thank you for your help.
The text was updated successfully, but these errors were encountered: