zephyr/kernel
Leandro Pereira 1ccd715577 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: Leandro Pereira <leandro.pereira@intel.com>
2018-04-03 12:32:56 -07:00
..
include kernel: Fix left shift into sign bit 2018-03-22 19:16:17 -04:00
posix kernel: POSIX: Compatibility layer for POSIX message queue APIs. 2018-04-03 15:30:44 -04:00
alert.c
atomic_c.c
CMakeLists.txt
compiler_stack_protect.c
device.c
errno.c
idle.c
init.c kernel: Cleanup, unify _add_thread_to_ready_q() and _ready_thread() 2018-03-18 16:58:12 -04:00
int_latency_bench.c
Kconfig kernel: POSIX: Compatibility layer for POSIX message queue APIs. 2018-04-03 15:30:44 -04:00
Kconfig.event_logger
Kconfig.power_mgmt
mailbox.c
mem_domain.c
mem_slab.c
mempool.c
msg_q.c kernel: msg_q: Add routine to fetch basic attrs from message queue. 2018-04-03 15:30:44 -04:00
mutex.c
pipes.c
poll.c kernel: Cleanup, unify _add_thread_to_ready_q() and _ready_thread() 2018-03-18 16:58:12 -04:00
queue.c kernel/queue: Clean up scheduler API usage 2018-03-18 16:58:12 -04:00
sched.c kernel/sched: Clean up docs for _pend_thread(), limit scope 2018-03-18 16:58:12 -04:00
sem.c
smp.c
stack.c
sys_clock.c
system_work_q.c
thread_abort.c
thread.c kernel: thread: Consider stack pointer fuzz underflow 2018-04-03 12:32:56 -07:00
timer.c
userspace_handler.c
userspace.c
version.c
work_q.c