Closed jforissier closed 8 years ago
@jforissier Could you check the status of this issue with the new driver?
@pascal-brand-st still OK with new driver: https://github.com/linaro-swg/linux/tree/optee_v9
Will not fix as https://github.com/OP-TEE/optee_linuxdriver is deprecated. The generic driver is now used (cf. https://github.com/OP-TEE/optee_os/blob/master/CHANGELOG.md#op-tee---version-200)
In the code I am working on, data are sent in a loop to tee-supplicant. Two buffers are allocated using
thread_optee_rpc_alloc_payload()
(one for the request, one for the response) [here]. Thenthread_rpc_cmd()
is called several times [here], and finally the buffers are freed bythread_optee_rpc_free_payload()
[here].This code causes a kernel crash as
thread_rpc_cmd()
is called for the second time.There is no crash if the allocation and deallocation are moved inside the loop (see this commit). Test environment: HiKey, project hikey_optee branch rpmbdev.
Please also note that the bug is not reproducible with the "generic driver".