zephyr/kernel
Flavio Ceolin 3e75c03cb2 security: Add default stack protection level
STACK_CANARIES was enabling canaries in all functions using the compiler
flag -fstack-protector-all. This became confuse with the addition of the
options STRONG and EXPLICIT.

This commit adds the missing option (default level) and disambiguous the
options mapping them close to the compiler flags.

Now we have the following options:

STACK_CANARIES            -> fstack-protector
STACK_CANARIES_STRONG     -> fstack-protector-strong
STACK_CANARIES_ALL        -> fstack-protector-all
STACK_CANARIES_EXPLICIT   -> fstack-protector-explicit

Note that from now on STACK_CANARIES_ALL is the symbol that adds canaries
for all functions.

Signed-off-by: Flavio Ceolin <flavio.ceolin@gmail.com>
2024-12-20 12:37:20 +01:00
..
include kernel: Decouple sleep from suspend 2024-12-18 18:17:03 +01:00
paging
atomic_c.c
banner.c
busy_wait.c
CMakeLists.txt security: Additional option for stack canaries 2024-12-20 12:37:20 +01:00
compiler_stack_protect.c security: Add default stack protection level 2024-12-20 12:37:20 +01: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 device: Optimize device_get_binding search efficiency 2024-11-27 08:18:30 +01:00
dynamic_disabled.c
dynamic.c kernel: dynamic: simplify dynamic stack allocation 2024-12-11 21:33:00 +01:00
errno.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
events.c
fatal.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
float.c
futex.c
idle.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
init_static.c
init.c security: Additional option for stack canaries 2024-12-20 12:37:20 +01:00
ipi.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
irq_offload.c
Kconfig security: Add default stack protection level 2024-12-20 12:37:20 +01: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 kernel: mmu: support for on-demand mappings 2024-08-26 17:25:41 -04:00
kheap.c
mailbox.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
main_weak.c
mem_domain.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
mem_slab.c kernel: Optimize k_mem_slab_free() 2024-12-14 01:03:28 +01:00
mempool.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
mmu.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
msg_q.c kernel: k_msgq_put should trigger reschedule 2024-12-14 01:04:43 +01:00
mutex.c arch: deprecate _current 2024-11-23 20:12:24 -05: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 arch: deprecate _current 2024-11-23 20:12:24 -05:00
poll.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
priority_queues.c
queue.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
sched.c kernel: Decouple sleep from suspend 2024-12-18 18:17:03 +01:00
sem.c kernel: Apply 'unlikely' attribute 2024-10-15 04:06:32 -04:00
smp.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
spinlock_validate.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
stack.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
system_work_q.c
thread_monitor.c style: kernel: comply with MISRA C:2012 Rule 15.6 2024-09-11 07:40:35 -04:00
thread.c kernel: Decouple sleep from suspend 2024-12-18 18:17:03 +01:00
timeout.c
timer.c
timeslicing.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
usage.c
userspace_handler.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
userspace.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
version.c
work.c tracing: kernel: Add support for stopping workqueues 2024-12-12 11:07:39 +01:00
xip.c security: Additional option for stack canaries 2024-12-20 12:37:20 +01:00