Skip to content
Commit 1ccd7155 authored by Leandro Pereira's avatar Leandro Pereira Committed by Andrew Boie
Browse files

kernel: thread: Consider stack pointer fuzz underflow



When randomizing the stack pointer on thread creation
(CONFIG_STACK_POINTER_RANDOM), the fuzz amount might exceed the stack
size, causing an underflow.

Ensure that this will never underflow by only adjusting the stack size
if there's enough space.

Signed-off-by: default avatarLeandro Pereira <leandro.pereira@intel.com>
parent 2486d5a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment