Skip to content

Commit

Permalink
core: user_ta.c: promote panic message on abort from DMSG to EMSG_RAW
Browse files Browse the repository at this point in the history
When an abort condition happens in a TA (data abort, undefined
instruction abort, etc.):
- A register dump is printed by the TEE core,
- Then the memory mappings and the call stack is displayed by ldelf,
- Finally the panic code is printed by the TEE core.

All the messages use the ERROR severity except the last one which is
DEBUG. Therefore, switch from DMSG() to EMSG_RAW() for consistency with
the register dump code.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
  • Loading branch information
jforissier committed Aug 30, 2023
1 parent 83d0ede commit 72c431d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/kernel/user_ta.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ static TEE_Result user_ta_enter(struct ts_session *session,

if (utc->ta_ctx.panicked) {
abort_print_current_ts();
DMSG("tee_user_ta_enter: TA panicked with code 0x%x",
utc->ta_ctx.panic_code);
EMSG_RAW("TA panicked with code 0x%x", utc->ta_ctx.panic_code);
res = TEE_ERROR_TARGET_DEAD;
} else {
/*
Expand Down

0 comments on commit 72c431d

Please sign in to comment.