zephyr/subsys
Keith Packard 2d64237f44 cmake: Enable undefined behavior sanitizer on all targets
GCC and Clang support the undefined behavior sanitizer in any
configuration, the only restriction is that if you want to get nice
messages printed, then you need the ubsan library routines which are only
present for posix architecture or when using picolibc.

This patch adds three new compiler properties:

 * sanitizer_undefined. Enables the undefined behavior sanitizer.
 * sanitizer_undefined_library. Calls ubsan library routines on fault.
 * sanitizer_undefined_trap. Invokes __builtin_trap() on fault.

Overhead for using the trapping sanitizer is fairly low and should be
considered for use in CI once all of the undefined behavior faults in
Zephyr are fixed.

Signed-off-by: Keith Packard <keithp@keithp.com>
2025-05-02 01:16:18 +02:00
..
bindesc
bluetooth Bluetooth: CSIP: Remove bt_csip_set_member_get_sirk 2025-05-01 18:15:56 +02:00
canbus
console
dap dap: add DAP backend USB 2025-03-11 18:54:24 +01:00
debug cmake: Enable undefined behavior sanitizer on all targets 2025-05-02 01:16:18 +02:00
demand_paging
dfu
disk
dsp
emul
fb cfb: fix get_glyph_byte for vtiled displays 2025-04-18 12:36:16 +02:00
fs zms: add more robustiness in extreme cases 2025-04-16 20:36:49 +02:00
input
ipc ipc_service: ipc_icbmsg: Update backend API return values 2025-03-28 12:21:30 +01:00
jwt
llext llext: support ARC MPU 2025-05-01 18:16:30 +02:00
logging logging: backend/xtensa_sim: more generic enabling condition 2025-05-01 18:16:20 +02:00
lorawan lorawan: add link check support. 2025-04-17 17:23:12 +02:00
mem_mgmt
mgmt mcumgr: fs_mgmt: Add a hook on download/upload complete. 2025-04-24 16:53:35 +02:00
modbus
modem modem: cmux: Do not return error on low buffer space 2025-03-24 19:33:07 +01:00
net net: ip: resolve NET_IPV4_FRAGMENT build warning 2025-05-01 18:17:46 +02:00
pm pm: Cleanup PM stats 2025-04-30 18:44:32 +02:00
pmci pmci: mctp: Fix No SOURCES CMake warning 2025-04-23 17:55:19 +02:00
portability portability: cmsis: Avoid copying objects names into control block 2025-04-14 20:03:19 +02:00
profiling arch: Unify declaration of text region 2025-04-23 02:15:25 +02:00
random random: Correct Mutex define 2025-03-04 21:55:45 +01:00
retention
rtio rtio: Introduce OP_DELAY as a valid SQE operation 2025-04-30 09:48:16 +02:00
sd sd: correct mismatched comment for CONFIG_SDMMC_STACK 2025-03-31 21:59:40 +02:00
secure_storage secure_storage: its: store: settings: allow using custom setting names 2025-04-08 14:22:59 +02:00
sensing
settings settings: fix settings shell subcommand helper 2025-03-29 06:31:39 +01:00
shell shell: mqtt: use ring_buf_reset to flush rx_rb 2025-04-09 22:06:05 +02:00
sip_svc
stats
storage storage: flash_map: add flash_area_copy() 2025-04-14 16:07:35 +02:00
task_wdt task_wdt: Add suspend and resume API functions 2025-04-02 13:05:14 +02:00
testsuite ztest: Fix confusing SKIP log 2025-04-04 21:16:34 +02:00
timing
tracing kernel: kheap: decouple simple alloc from aligned_alloc 2025-04-01 22:13:04 +02:00
usb Bluetooth: Remove USB H4 mode support 2025-04-29 13:00:33 +02:00
zbus zbus: remove k_malloc dependency for ZBUS_RUNTIME_OBSERVERS 2025-04-14 20:03:09 +02:00
CMakeLists.txt pmci: Move MCTP into the PMCI subsys 2025-04-21 12:43:33 +02:00
Kconfig pmci: Move MCTP into the PMCI subsys 2025-04-21 12:43:33 +02:00