Home
last modified time | relevance | path

Searched hist:"8577287 cde52c3ed6afab59d400478739e6a93b7" (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/kernel/
H A Dthread.c8577287cde52c3ed6afab59d400478739e6a93b7 Mon Apr 17 08:35:11 UTC 2023 Jerome Forissier <jerome.forissier@linaro.org> core: ftrace: mark thread_get_tsd() and thread_get_id() as __noprof

When CFG_FTRACE_SUPPORT=y CFG_SYSCALL_FTRACE=y, the following call stack
happens (QEMUv8):

_mcount()
ftrace_enter()
get_fbuf()
thread_get_tsd()
thread_get_id()

Therefore thread_get_tsd() and thread_get_id() must be tagged with
__noprof, otherwise a recursive call to _mcount() is triggered leading
to infinite recursion, stack overflow and a lockup of the TEE core.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>