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

xtest_tee_test_1014 fail (CFG_SECURE_DATA_PATH) #735

Closed
408419237 opened this issue Mar 7, 2024 · 6 comments
Closed

xtest_tee_test_1014 fail (CFG_SECURE_DATA_PATH) #735

408419237 opened this issue Mar 7, 2024 · 6 comments

Comments

@408419237
Copy link

Hi, excuse me.
I failed to run tee_xtest 1014.
I look at tee_register_buffer->TEEC_RegisterSharedMemoryFileDescriptor->ioctl(ctx->fd, TEE_IOC_SHM_REGISTER_FD, &data) but optee_linuxdriver does not have a TEE_IOC_SHM_REGISTER_FD definition.
I want to ask whether tee_xtest 1014 can be successfully executed?
Is the CFG_SECURE_DATA_PATH function supported?
thanks!

@408419237
Copy link
Author

Can you help me answer that? Thank you very much. @etienne-lms

@etienne-lms
Copy link
Contributor

Hi @408419237,
Could you tell us what do you refer to when mentioning optee_linuxdriver?
CFG_SECURE_DATA_PATH is supported in OP-TEE OS but the Linux optee driver does not especially since ION staging drive rhas been removed from the kernel source tree in v5.10. See linaro-swg/linux#91 and linaro-swg/linux#101.

@jenswi-linaro
Copy link
Contributor

optee_linuxdriver hasn't been used in a long time. It was deprecated in 2016 and replaced by the OP-TEE driver in the mainline kernel.

@408419237
Copy link
Author

408419237 commented Mar 19, 2024

Hi @408419237, Could you tell us what do you refer to when mentioning optee_linuxdriver? CFG_SECURE_DATA_PATH is supported in OP-TEE OS but the Linux optee driver does not especially since ION staging drive rhas been removed from the kernel source tree in v5.10. See linaro-swg/linux#91 and linaro-swg/linux#101.

Does that mean tee xtest 1014 is not supported yet?
I see TEE_IOC_SHM_REGISTER_FD in optee_client,But I didn't see it in the optee driver.only TEE_IOC_SHM_REGISTER.
thanks.

image
https://github.com/linaro-swg/linux/blob/optee/drivers/tee/tee_core.c

image
https://github.com/OP-TEE/optee_client/blob/master/libteec/src/tee_client_api.c

@408419237
Copy link
Author

optee_linuxdriver hasn't been used in a long time. It was deprecated in 2016 and replaced by the OP-TEE driver in the mainline kernel.

This version I'm looking at, I think it's new.Thanks.

image
https://github.com/linaro-swg/linux/blob/optee/drivers/tee/tee_core.c

@408419237
Copy link
Author

test ok closed.

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

3 participants