Repository navigation
xtest: stats: handle an empty TA list - #861
Merged
Merged
Conversation
etienne-lms
reviewed
Nov 23, 2026
etienne-lms
left a comment
Contributor
There was a problem hiding this comment.
Reviewed-by: Etienne Carriere <etienne.carriere@st.com>
viiavi
force-pushed
the
fix/stats-empty-ta-list
branch
from
November 23, 2026 14:28
1fcc8e8 to
2657d38
Compare
Contributor
Author
|
Added the Reviewed-by tag to the commit. The code is unchanged and the patch is ready for merging. Thank you for the review. |
viiavi
force-pushed
the
fix/stats-empty-ta-list
branch
from
November 23, 2026 14:28
2657d38 to
d312ed5
Compare
Contributor
|
Please add your real name and a real email address https://optee.readthedocs.io/en/latest/general/contribute.html#developer-certificate-of-origin |
STATS_CMD_TA_STATS returns TEEC_ERROR_ITEM_NOT_FOUND when no user trusted applications are loaded. Handle this result by printing "No loaded TA found" and closing the session successfully instead of reporting a command failure. Signed-off-by: Vainavi Arun Kumar <vainaviarunkumar@gmail.com> Reviewed-by: Etienne Carriere <etienne.carriere@st.com>
viiavi
force-pushed
the
fix/stats-empty-ta-list
branch
from
November 26, 2026 14:12
d312ed5 to
f3c9843
Compare
Contributor
Author
|
Updated the commit author, committer, and Signed-off-by to my full name and real email address. The Reviewed-by tag is retained and the code is unchanged. Thank you for the guidance. |
Contributor
|
Merging when CI passes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When no user trusted applications are loaded,
STATS_CMD_TA_STATSreturnsTEEC_ERROR_ITEM_NOT_FOUND. Currently,xtest --stats --tatreats this as acommand failure and exits with status 1. Handle this result by printing
No loaded TA foundand closing the session successfully.The change is limited to four added lines in
host/xtest/stats.c.Validation on QEMU Armv8-A:
xtestexecutable:res 0xffff0008 err_orig 0x4, exit status 1.No loaded TA foundand exits with status 0.its UUID and statistics and exits with status 0.
xtestsuite passes: 1,546 test cases.checkpatch.pl: 0 errors, 0 warnings.The targeted checks and patched regression run used
RUST_ENABLE=n,CFG_TA_STATS=y,MEASURED_BOOT_FTPM=n, and an emptyCFG_IN_TREE_EARLY_TAS. The optional boot-loaded TAs were disabled to constructthe empty-list case. This does not claim coverage of Rust examples, hardware
platforms, or keyctl tests in this configuration. The additional QEMU test
harness was kept outside the repository; no new regression test is included
in this patch.