-
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
HiKey: xtest 7505 and 7633 (GP) fail with RPMB #1332
Comments
jforissier
added a commit
to jforissier/optee_os
that referenced
this issue
Feb 2, 2017
According to the GP spec, TEE_ResetPersistentObjectEnumerator() "resets an object enumerator handle to its initial state after allocation". Therefore, syscall_storage_reset_enum() should set e->fops = NULL. This fixes a regression introduced when the FOP interface was reworked. I'm not simply reverting the return code from TEE_ERROR_GENERIC back to TEE_ERROR_ITEM_NOT_FOUND, because the new code makes sense and it is more sane to properly reset the state of the enumerator. Consequently, tee_svc_close_enum() is updated to accept e->fops == NULL which is valid when the enum has just been allocated or reset but not started. We should not return an error status in this case. Tested on HiKey using xtest with GP tests (all 3 filesystems: REE, SQL, RPMB). Fixes: b86c18e ("core: RPMB FS: prepare for new FOP interface") Fixes: OP-TEE#1332 Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
jforissier
added a commit
to jforissier/optee_os
that referenced
this issue
Feb 3, 2017
According to the GP spec, TEE_ResetPersistentObjectEnumerator() "resets an object enumerator handle to its initial state after allocation". Therefore, syscall_storage_reset_enum() should set e->fops = NULL. This fixes a regression introduced when the FOP interface was reworked. I'm not simply reverting the return code from TEE_ERROR_GENERIC back to TEE_ERROR_ITEM_NOT_FOUND, because the new code makes sense and it is more sane to properly reset the state of the enumerator. Consequently, tee_svc_close_enum() is updated to accept e->fops == NULL which is valid when the enum has just been allocated or reset but not started. We should not return an error status in this case. Tested on HiKey using xtest with GP tests (all 3 filesystems: REE, SQL, RPMB). Fixes: b86c18e ("core: RPMB FS: prepare for new FOP interface") Fixes: OP-TEE#1332 Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
takuya-sakata
pushed a commit
to renesas-rcar/optee_os
that referenced
this issue
Dec 22, 2017
According to the GP spec, TEE_ResetPersistentObjectEnumerator() "resets an object enumerator handle to its initial state after allocation". Therefore, syscall_storage_reset_enum() should set e->fops = NULL. This fixes a regression introduced when the FOP interface was reworked. I'm not simply reverting the return code from TEE_ERROR_GENERIC back to TEE_ERROR_ITEM_NOT_FOUND, because the new code makes sense and it is more sane to properly reset the state of the enumerator. Consequently, tee_svc_close_enum() is updated to accept e->fops == NULL which is valid when the enum has just been allocated or reset but not started. We should not return an error status in this case. Tested on HiKey using xtest with GP tests (all 3 filesystems: REE, SQL, RPMB). Fixes: b86c18e ("core: RPMB FS: prepare for new FOP interface") Fixes: OP-TEE/optee_os#1332 Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm running
xtest
with GP tests and with RPMB as the only file system for secure storage, i.e.,CFG_REE_FS=n CFG_SQL_FS=n CFG_RPMB_FS=y CFG_RPMB_WRITE_KEY=y
.Two GP tests fail:
All other tests cases are successful.
The text was updated successfully, but these errors were encountered: