zephyr/kernel
Corey Wharton 76bceb9ed2 kernel: mem_slab: always validate memory address on free
Allowing an invalid address to be "freed" when asserts are disabled
is dangerous and can lead to a very hard class of bugs (and potential
security issues) to troubleshoot. This change always validates the
address before adding it to the free list and calls k_panic() if
asserts are not enabled.

Signed-off-by: Corey Wharton <xodus7@cwharton.com>
2024-11-16 15:54:56 -05:00
..
include kernel: Move run queue initialization 2024-11-16 15:20:15 -05:00
paging
CMakeLists.txt
Kconfig Revert "kernel: banner: Expose tainted builds" 2024-10-29 14:17:21 -05:00
Kconfig.device
Kconfig.init init: support per-core init hook 2024-11-16 14:04:25 -05:00
Kconfig.mem_domain
Kconfig.obj_core
Kconfig.smp kernel: remove `CONFIG_MP_NUM_CPUS` 2024-09-19 18:28:37 +01:00
Kconfig.vm
atomic_c.c
banner.c
busy_wait.c
compiler_stack_protect.c arch: kernel: lib: toolchain: Standardize TLS keyword 2024-09-23 10:01:48 +02:00
condvar.c kernel: Apply 'unlikely' attribute 2024-10-15 04:06:32 -04:00
cpu_mask.c kernel: Simplify k_thread_cpu_pin() 2024-09-20 09:02:38 +02:00
device.c
dynamic.c
dynamic_disabled.c
errno.c arch: kernel: lib: toolchain: Standardize TLS keyword 2024-09-23 10:01:48 +02:00
events.c
fatal.c
float.c
futex.c
idle.c
init.c zephyr: bulk update to DT_NODE_HAS_STATUS_OKAY 2024-10-03 17:06:52 +01:00
init_static.c
ipi.c
irq_offload.c
kheap.c
mailbox.c
main_weak.c
mem_domain.c
mem_slab.c kernel: mem_slab: always validate memory address on free 2024-11-16 15:54:56 -05:00
mempool.c
mmu.c
msg_q.c kernel: Apply 'unlikely' attribute 2024-10-15 04:06:32 -04:00
mutex.c kernel: Apply 'unlikely' attribute 2024-10-15 04:06:32 -04:00
nothread.c kernel: fix k_sleep in no multi-threading mode 2024-11-16 14:07:41 -05:00
obj_core.c
pipes.c
poll.c
priority_queues.c
queue.c kernel: Apply 'unlikely' attribute 2024-10-15 04:06:32 -04:00
sched.c kernel: Move run queue initialization 2024-11-16 15:20:15 -05:00
sem.c kernel: Apply 'unlikely' attribute 2024-10-15 04:06:32 -04:00
smp.c
spinlock_validate.c
stack.c kernel: Apply 'unlikely' attribute 2024-10-15 04:06:32 -04:00
system_work_q.c
thread.c style: kernel: remove unnecessary `return` statements 2024-09-20 11:06:55 +02:00
thread_monitor.c
timeout.c
timer.c
timeslicing.c
usage.c
userspace.c sys: util: use BITS_PER_BYTE macro instead of the magic number 8 2024-11-16 15:22:35 -05:00
userspace_handler.c
version.c
work.c
xip.c arch: common: fix copy for ramfunc region during XIP init 2024-11-06 10:19:08 -08:00