Commit 55bf4d8
committed
fuzz: Enable stack sentinel for fuzz builds
Enable Zephyr stack sentinel checks for the native libFuzzer build.
This complements the heap hardening option by catching Zephyr thread
stack overflows closer to the corrupting input.
CONFIG_STACK_SENTINEL: stores a magic value at the lowest addresses of
each thread stack and checks it on context switch, interrupt return,
k_yield(), and thread exit. When the sentinel is corrupted the system
traps immediately, giving the fuzzer a clear crash signal instead of
allowing silent corruption that manifests later in an unrelated path.
This is particularly useful in UBSan-only fuzz runs where ASan stack
redzones are not available.
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>1 parent be2618f commit 55bf4d8
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments