linux/mm/kasan
Andrey Konovalov bb359dbcb7 kasan: split out shadow.c from common.c
This is a preparatory commit for the upcoming addition of a new hardware
tag-based (MTE-based) KASAN mode.

The new mode won't be using shadow memory.  Move all shadow-related code
to shadow.c, which is only enabled for software KASAN modes that use
shadow memory.

No functional changes for software modes.

Link: https://lkml.kernel.org/r/17d95cfa7d5cf9c4fcd9bf415f2a8dea911668df.1606161801.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reviewed-by: Marco Elver <elver@google.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
Tested-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Branislav Rankov <Branislav.Rankov@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Evgenii Stepanov <eugenis@google.com>
Cc: Kevin Brodsky <kevin.brodsky@arm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-12-22 12:55:06 -08:00
..
common.c kasan: split out shadow.c from common.c 2020-12-22 12:55:06 -08:00
generic_report.c kasan: rename KASAN_SHADOW_* to KASAN_GRANULE_* 2020-12-22 12:55:06 -08:00
generic.c kasan: rename KASAN_SHADOW_* to KASAN_GRANULE_* 2020-12-22 12:55:06 -08:00
init.c kasan: only build init.c for software modes 2020-12-22 12:55:06 -08:00
kasan.h kasan: rename KASAN_SHADOW_* to KASAN_GRANULE_* 2020-12-22 12:55:06 -08:00
Makefile kasan: split out shadow.c from common.c 2020-12-22 12:55:06 -08:00
quarantine.c kasan: drop unnecessary GPL text from comment headers 2020-12-22 12:55:06 -08:00
report.c kasan: rename KASAN_SHADOW_* to KASAN_GRANULE_* 2020-12-22 12:55:06 -08:00
shadow.c kasan: split out shadow.c from common.c 2020-12-22 12:55:06 -08:00
tags_report.c kasan: rename KASAN_SHADOW_* to KASAN_GRANULE_* 2020-12-22 12:55:06 -08:00
tags.c kasan: rename (un)poison_shadow to (un)poison_range 2020-12-22 12:55:06 -08:00