| #
b8a0c52c |
| 08-Jan-2026 |
Aleksandr Iashchenko <aleksandr.iashchenko@linutronix.de> |
libutils: asan: skip global unpoison for bget-backed globals
Track ASan user-region type at map time and mark bget pool backing ranges as ASAN_REG_MEM_POOL.
Global registration currently unpoisons
libutils: asan: skip global unpoison for bget-backed globals
Track ASan user-region type at map time and mark bget pool backing ranges as ASAN_REG_MEM_POOL.
Global registration currently unpoisons globals via asan_tag_access(). For globals used as bget pool backing storage, this overwrites the initial pool shadow state (ASAN_HEAP_RED_ZONE, heap-free) and breaks expected allocator poisoning semantics.
Skip global unpoison for globals that contain a memory-pool backing range, while keeping normal redzone handling for those globals. Update ASan mapping call sites to pass region type (STACK, ELF, MEM_POOL, NO_TYPE).
Signed-off-by: Aleksandr Iashchenko <aleksandr.iashchenko@linutronix.de> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| #
4cafd8a3 |
| 19-Dec-2025 |
Aleksandr Iashchenko <aleksandr.iashchenko@linutronix.de> |
asan: add ldelf support and user shadow mapping infrastructure
This commit enables ASan support in ldelf and introduces infrastructure for mapping ASan shadow regions in user space. With these chang
asan: add ldelf support and user shadow mapping infrastructure
This commit enables ASan support in ldelf and introduces infrastructure for mapping ASan shadow regions in user space. With these changes, ASan built with CFG_CORE_SANITIZE_KADDRESS is no longer limited to the core and can also operate in ldelf.
Signed-off-by: Aleksandr Iashchenko <aleksandr.iashchenko@linutronix.de> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|