Commit f25857d5 authored by Andrey Konovalov's avatar Andrey Konovalov
Browse files

kasan: kasan_non_canonical_hook only for software modes

This is a preparatory commit for the upcoming addition of a new hardware
tag-based (MTE-based) KASAN mode.

kasan_non_canonical_hook() is only applicable to KASAN modes that use
shadow memory, and won't be needed for hardware tag-based KASAN.

No functional changes for software modes.

Signed-off-by: default avatarAndrey Konovalov <>
Signed-off-by: Vincenzo Frascino's avatarVincenzo Frascino <>
Reviewed-by: default avatarMarco Elver <>
Change-Id: Icc9f5ef100a2e86f3a4214a0c3131a68266181b2
parent 0ede4557
......@@ -403,7 +403,8 @@ bool kasan_report(unsigned long addr, size_t size, bool is_write,
return ret;
#if (defined(CONFIG_KASAN_GENERIC) || defined(CONFIG_KASAN_SW_TAGS)) && \
* With CONFIG_KASAN_INLINE, accesses to bogus pointers (outside the high
* canonical half of the address space) cause out-of-bounds shadow memory reads
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment