Skip to content

Conversation

@jforissier
Copy link
Contributor

According to the TEE Internal Core API specification v1.3.1 section 6.2.6, TEE_SetOperationKey() should panic if the flag TEE_HANDLE_FLAG_INITIALIZED is set on the operation. Add regression test 4018 to check that.

@jforissier
Copy link
Contributor Author

Depends on OP-TEE/optee_os#7656.

exp_ret_orig = TEEC_ORIGIN_TEE;
else
exp_ret_orig = TEEC_ORIGIN_TRUSTED_APP;
(void)ADBG_EXPECT_TEEC_ERROR_ORIGIN(c, exp_ret_orig, ret_orig);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please drop the (void) cast.

Copy link
Contributor

@jenswi-linaro jenswi-linaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acked-by: Jens Wiklander <jens.wiklander@linaro.org>

According to the TEE Internal Core API specification v1.3.1 section
6.2.6, TEE_SetOperationKey() should panic if the flag
TEE_HANDLE_FLAG_INITIALIZED is set on the operation. Add regression test
4018 to check that.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Free up some disk space in the GitHub Actions VM before building the
Docker image for the subsequent job. Do the same before loading the
image and running the tests. Fixes "no space left on device" errors.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
@jforissier
Copy link
Contributor Author

CI commit updated to also run the host cleanup script in the QEMUv8_checks job in addition to QEMUv8_checks_image_build. Both are subject to "no space left on device" errors. @jenswi-linaro I have kept your Acked-by.

@jforissier jforissier merged commit 5ecc5d8 into OP-TEE:master Dec 19, 2025
3 of 4 checks passed
@jforissier jforissier deleted the setkey-panic branch December 19, 2025 09:56
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

Successfully merging this pull request may close these issues.

2 participants