zephyr/arch/xtensa
Daniel Leung 5db5e8e109 xtensa: userspace: fix incorrectly passed syscall frame pointer
Calling z_mrsh_* functions require 7 arguments where the 7th is
the stack frame. Only the first 6 arguments are passed by
registers where the 7th must be done via stack. However, this
is not being done and an incorrect argument was being passed to
the z_mrsh_* functions as stack frame pointer. An obvious issue
would be dumping of stack during kernel oops, as incorrect data
was being printed or crashes due to inaccessible memory. So fix
it by properly populating the stack with correct stack frame
pointer as outgoing argument for the caller of z_mrsh_*
functions.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2024-03-19 22:17:34 -04:00
..
core xtensa: userspace: fix incorrectly passed syscall frame pointer 2024-03-19 22:17:34 -04:00
include arch: xtensa: add isync to interrupt vector 2024-03-15 21:45:57 -04:00
CMakeLists.txt xtensa: userspace: Warning about impl security 2023-11-21 15:49:48 +01:00
Kconfig xtensa: use CONFIG_PRIVILEGED_STACK_SIZE for stack size 2024-03-08 09:37:36 +01:00