Commit 5ec09c6
fuzz: enable sys_heap ASan poisoning and per-sanitizer hardening split
With CONFIG_SYS_HEAP_SANITIZER_ASAN enabled, freed and unallocated
sys_heap regions are explicitly marked unaddressable via ASan's manual
poisoning API. This gives ASan use-after-free and heap-buffer-overflow
detection on all SOF dynamic memory (not just libc allocations that
ASan tracks natively).
Since poisoning supersedes the full-heap walk for corruption detection
under ASan, downgrade the board-level default from EXTREME to FULL.
Canaries (FULL) remain valuable: they catch overflows into the adjacent
live chunk's trailer, a case that poisoning alone does not cover.
For UBSan builds, which have no heap awareness at all, keep EXTREME in
the sanitizer overlay so the full-walk remains the only proactive
corruption detector.
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>1 parent 2010ab0 commit 5ec09c6
3 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
0 commit comments