zephyr/kernel
Duy Nguyen 8b0871c5e5 kernel: memslab: Prevent pointer underflow in free list init
The "p -= slab->info.block_size;" is causing the "p" pointer
to be underflow in RX architecture case, where the RAM address
start from 0x0, in some case p minus block size make it underflow
This change implementation uses an index-based reverse loop to
safely iterate over each block from last to first.

Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
2025-06-26 14:07:03 +02:00
..
include kernel: kswap: removes unused arch_swap function declaration 2025-06-18 17:48:03 -04:00
paging
atomic_c.c
banner.c
busy_wait.c
CMakeLists.txt
compiler_stack_protect.c
condvar.c
cpu_mask.c
device.c
dynamic_disabled.c
dynamic.c
errno.c
events.c
fatal.c
float.c
futex.c
idle.c
init.c
ipi.c
irq_offload.c
Kconfig
Kconfig.device
Kconfig.init
Kconfig.mem_domain
Kconfig.obj_core
Kconfig.smp
Kconfig.vm
kheap.c
mailbox.c
main_weak.c
mem_domain.c
mem_slab.c kernel: memslab: Prevent pointer underflow in free list init 2025-06-26 14:07:03 +02:00
mempool.c
mmu.c
msg_q.c
mutex.c
nothread.c
obj_core.c
pipe.c
pipes.c
poll.c
priority_queues.c
queue.c
sched.c
sem.c
smp.c
spinlock_validate.c
stack.c
system_work_q.c
thread_monitor.c
thread.c
timeout.c
timer.c
timeslicing.c
usage.c
userspace_handler.c
userspace.c
version.c
work.c
xip.c