You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have OP-TEE and the fTPM TA set up on our development board. The fTPM works as long as there is no persistent storage present in the REE filesystem, so either if
only RPMB_EMU is used without REE FS or
the tee directory is deleted
The first time the fTPM is started it will create storage objects:
tpm2-tools work as expected.
If the system is rebooted or reset from this state, the fTPM will reliably panic when trying to open the persistent storage objects:
D/TA: TA_CreateEntryPoint:151 Entry Point
D/TA: _plat__NVEnable:381 _plat__NVEnable()
D/TA: _plat__NvInitFromStorage:132 _plat__NvInitFromStorage()
I/TA: Read fTPM storage object, i: 0x0, s: 0x200, id: 0x54504d00, h:0x98ba0
I/TA: Read fTPM storage object, i: 0x0, s: 0x200, id: 0x54504d01, h:0x0
D/TA: _plat__NvInitFromStorage:172 Failed to open fTPM storage object
E/TC:? 0
E/TC:? 0 TA panicked with code 0xffff0007
E/LD: Status of TA bc50d971-d4c9-42c4-82cb-343fb7f37896
E/LD: arch: aarch64
E/LD: region 0: va 0x40005000 pa 0x9ea01000 size 0x002000 flags rw-s (ldelf)
E/LD: region 1: va 0x40007000 pa 0x9ea03000 size 0x009000 flags r-xs (ldelf)
E/LD: region 2: va 0x40010000 pa 0x9ea0c000 size 0x001000 flags rw-s (ldelf)
E/LD: region 3: va 0x40011000 pa 0x9ea0d000 size 0x004000 flags rw-s (ldelf)
E/LD: region 4: va 0x40015000 pa 0x9ea11000 size 0x001000 flags r--s
E/LD: region 5: va 0x40016000 pa 0x9eb2c000 size 0x011000 flags rw-s (stack)
E/LD: region 6: va 0x40077000 pa 0x00001000 size 0x07b000 flags r-xs [0]
E/LD: region 7: va 0x400f2000 pa 0x0007c000 size 0x09f000 flags rw-s [0]
E/LD: [0] bc50d971-d4c9-42c4-82cb-343fb7f37896 @ 0x40077000
E/LD: Call stack:
E/LD: 0x400c8b24
E/LD: 0x4007a620
E/LD: 0x400c8984
E/TC:? 0 ldelf_dump_ftrace:336 ldelf stack is inaccessible!
E/TC:? 0 tee_ta_open_session:743 Failed. Return error 0xffff3024
The OP-TEE storage tests pass and example applications also work as expected.
We are using the latest version (e9fc7b8).
Any help is greatly appreciated.
The text was updated successfully, but these errors were encountered:
The OP-TEE code in this repo will be removed soon #108 . So it's probably better to not expect any changes here.
Having said that, I worked with an fTPM persistent storage several months ago. I observed a similar issue (don't remember exactly). If it is the same error, you can fix it with executing chown tee:tee /data/tee/* in Linux before loading the fTPM. At least, it worked for me then.
In my case tee-supplicant is running as root, and the files in the tee data directory are all owned by root (R/W for user only).
It's a yocto based system. The main problem is that I can see it loading the first two objects, and it only fails on the third.
We have OP-TEE and the fTPM TA set up on our development board. The fTPM works as long as there is no persistent storage present in the REE filesystem, so either if
tee
directory is deletedThe first time the fTPM is started it will create storage objects:
tpm2-tools work as expected.
If the system is rebooted or reset from this state, the fTPM will reliably panic when trying to open the persistent storage objects:
The OP-TEE storage tests pass and example applications also work as expected.
We are using the latest version (e9fc7b8).
Any help is greatly appreciated.
The text was updated successfully, but these errors were encountered: