-
Notifications
You must be signed in to change notification settings - Fork 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
QEMUv8/Xen: several GP tests fail on memref parameter check #4897
Comments
It may be worth checking if the OP-TEE mediator in Xen is handling |
Yes, that is indeed the problem. Support was introduced by commit d4fb5f166c2b ("optee: enable OPTEE_SMC_SEC_CAP_MEMREF_NULL capability") which is in the master branch bur not in release 4.14.1. So I am closing this issue. |
Adds Xen upstream patch "optee: enable OPTEE_SMC_SEC_CAP_MEMREF_NULL capability" in order to avoid failures in the GlobalPlatform test suite [2]: optee/build $ export GP_PACKAGE=~/work/TEE_Initial_Configuration-Test_Suite_v2_0_0_2-2017_06_09.7z optee/build $ make -j10 XEN_BOOT=y run ... $ xtest gp_ ... gp_10081 FAILED first error at gp_10000.c:1653 gp_10082 FAILED first error at gp_10000.c:1673 gp_10083 FAILED first error at gp_10000.c:1693 gp_10155 FAILED first error at gp_10000.c:3346 gp_10156 FAILED first error at gp_10000.c:3366 gp_10157 FAILED first error at gp_10000.c:3386 gp_10229 FAILED first error at gp_10000.c:5039 gp_10230 FAILED first error at gp_10000.c:5059 gp_10231 FAILED first error at gp_10000.c:5079 gp_10303 FAILED first error at gp_10000.c:6732 gp_10304 FAILED first error at gp_10000.c:6752 gp_10305 FAILED first error at gp_10000.c:6772 gp_10632 FAILED first error at gp_10000.c:15608 gp_10633 FAILED first error at gp_10000.c:15629 gp_10634 FAILED first error at gp_10000.c:15650 gp_10706 FAILED first error at gp_10000.c:17375 gp_10707 FAILED first error at gp_10000.c:17396 gp_10708 FAILED first error at gp_10000.c:17417 gp_10780 FAILED first error at gp_10000.c:19142 gp_10781 FAILED first error at gp_10000.c:19163 gp_10782 FAILED first error at gp_10000.c:19184 gp_10854 FAILED first error at gp_10000.c:20909 gp_10855 FAILED first error at gp_10000.c:20930 gp_10856 FAILED first error at gp_10000.c:20951 For each failed test there is a TA log: E/TA: checkUpdateParameterMemref:195 Received buffer is not NULL but expected to be NULL. Link: [1] https://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=d4fb5f166c2b Link: [2] OP-TEE/optee_os#4897 Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Adds Xen upstream patch "optee: enable OPTEE_SMC_SEC_CAP_MEMREF_NULL capability" ([1] present in Xen 4.16.0) in order to avoid failures in the GlobalPlatform test suite [2]: optee/build $ export GP_PACKAGE=~/work/TEE_Initial_Configuration-Test_Suite_v2_0_0_2-2017_06_09.7z optee/build $ make -j10 XEN_BOOT=y run ... $ xtest gp_ ... gp_10081 FAILED first error at gp_10000.c:1653 gp_10082 FAILED first error at gp_10000.c:1673 gp_10083 FAILED first error at gp_10000.c:1693 gp_10155 FAILED first error at gp_10000.c:3346 gp_10156 FAILED first error at gp_10000.c:3366 gp_10157 FAILED first error at gp_10000.c:3386 gp_10229 FAILED first error at gp_10000.c:5039 gp_10230 FAILED first error at gp_10000.c:5059 gp_10231 FAILED first error at gp_10000.c:5079 gp_10303 FAILED first error at gp_10000.c:6732 gp_10304 FAILED first error at gp_10000.c:6752 gp_10305 FAILED first error at gp_10000.c:6772 gp_10632 FAILED first error at gp_10000.c:15608 gp_10633 FAILED first error at gp_10000.c:15629 gp_10634 FAILED first error at gp_10000.c:15650 gp_10706 FAILED first error at gp_10000.c:17375 gp_10707 FAILED first error at gp_10000.c:17396 gp_10708 FAILED first error at gp_10000.c:17417 gp_10780 FAILED first error at gp_10000.c:19142 gp_10781 FAILED first error at gp_10000.c:19163 gp_10782 FAILED first error at gp_10000.c:19184 gp_10854 FAILED first error at gp_10000.c:20909 gp_10855 FAILED first error at gp_10000.c:20930 gp_10856 FAILED first error at gp_10000.c:20951 For each failed test there is a TA log: E/TA: checkUpdateParameterMemref:195 Received buffer is not NULL but expected to be NULL. Link: [1] https://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=d4fb5f166c2b Link: [2] OP-TEE/optee_os#4897 Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Adds Xen upstream patch "optee: enable OPTEE_SMC_SEC_CAP_MEMREF_NULL capability" ([1] present in Xen 4.16.0) in order to avoid failures in the GlobalPlatform test suite [2]: optee/build $ export GP_PACKAGE=~/work/TEE_Initial_Configuration-Test_Suite_v2_0_0_2-2017_06_09.7z optee/build $ make -j10 XEN_BOOT=y run ... $ xtest gp_ ... gp_10081 FAILED first error at gp_10000.c:1653 gp_10082 FAILED first error at gp_10000.c:1673 gp_10083 FAILED first error at gp_10000.c:1693 gp_10155 FAILED first error at gp_10000.c:3346 gp_10156 FAILED first error at gp_10000.c:3366 gp_10157 FAILED first error at gp_10000.c:3386 gp_10229 FAILED first error at gp_10000.c:5039 gp_10230 FAILED first error at gp_10000.c:5059 gp_10231 FAILED first error at gp_10000.c:5079 gp_10303 FAILED first error at gp_10000.c:6732 gp_10304 FAILED first error at gp_10000.c:6752 gp_10305 FAILED first error at gp_10000.c:6772 gp_10632 FAILED first error at gp_10000.c:15608 gp_10633 FAILED first error at gp_10000.c:15629 gp_10634 FAILED first error at gp_10000.c:15650 gp_10706 FAILED first error at gp_10000.c:17375 gp_10707 FAILED first error at gp_10000.c:17396 gp_10708 FAILED first error at gp_10000.c:17417 gp_10780 FAILED first error at gp_10000.c:19142 gp_10781 FAILED first error at gp_10000.c:19163 gp_10782 FAILED first error at gp_10000.c:19184 gp_10854 FAILED first error at gp_10000.c:20909 gp_10855 FAILED first error at gp_10000.c:20930 gp_10856 FAILED first error at gp_10000.c:20951 For each failed test there is a TA log: E/TA: checkUpdateParameterMemref:195 Received buffer is not NULL but expected to be NULL. Link: [1] https://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=d4fb5f166c2b Link: [2] OP-TEE/optee_os#4897 Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Several test from the GP test suite are failing on QEMUv8 with Xen (Dom0):
For each failed test there is a TA log:
...so it looks like all failures have the same root cause.
Version information:
The text was updated successfully, but these errors were encountered: