You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "michi-jung (via GitHub)" <gi...@apache.org> on 2023/05/25 08:22:10 UTC

[GitHub] [nuttx] michi-jung commented on issue #9371: Security fault in exception_common

michi-jung commented on issue #9371:
URL: https://github.com/apache/nuttx/issues/9371#issuecomment-1562488710

   What you are seeing in the LR is the EXC_RETURN value.  Both bits 0 (ES) and bit 6 (S) are set, which means you are trying to return from an exception in the Non-Secure world to the Secure world.  This is no allowed and causes the Security Fault.
   
   You have to set the CONFIG_ARCH_TRUSTZONE_NONSECURE option compile NuttX to be run in the Non-Secure world.  This will define the correct EXC_RETURN then in [exc_return.h](https://github.com/apache/nuttx/blob/efa2a9516311f249500b7065e58ee9f3cc1d74e2/arch/arm/src/armv8-m/exc_return.h#L93)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org