3802460e3c
_arch_configure_dynamic_mpu_regions() may re-program the MPU Stack Guard, to guard the privilege stack for overflows, (if building with option CONFIG_MPU_STACK_GUARD). There is a risk of actually overflowing the stack while doing the re-programming. We minimize the risk by placing the re-programming function immediately after we have switched to the privileged stack so that the whole privilege stack area is available for this critical operation. Note that the risk for overflow is higher if using the normal thread stack, since we do not control how much stack is actually left, when user invokes _arm_userspace_enter(). Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no> |
||
---|---|---|
.. | ||
arc | ||
arm | ||
common | ||
nios2 | ||
posix | ||
riscv32 | ||
x86 | ||
x86_64 | ||
xtensa | ||
CMakeLists.txt | ||
Kconfig |