Commit cacd585c authored by Andrey Konovalov's avatar Andrey Konovalov Committed by Stephen Rothwell
Browse files

kasan: only build init.c for software modes

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, so only build init.c that
contains shadow initialization code for software modes.

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 <>
Reviewed-by: default avatarAlexander Potapenko <>
Tested-by: Vincenzo Frascino's avatarVincenzo Frascino <>
Cc: Andrey Ryabinin <>
Cc: Branislav Rankov <>
Cc: Catalin Marinas <>
Cc: Dmitry Vyukov <>
Cc: Evgenii Stepanov <>
Cc: Kevin Brodsky <>
Cc: Vasily Gorbik <>
Cc: Will Deacon <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarStephen Rothwell <>
parent 08dc7549
......@@ -29,6 +29,6 @@ CFLAGS_report.o := $(CC_FLAGS_KASAN_RUNTIME)
obj-$(CONFIG_KASAN) := common.o init.o report.o
obj-$(CONFIG_KASAN_GENERIC) += generic.o generic_report.o quarantine.o
obj-$(CONFIG_KASAN_SW_TAGS) += tags.o tags_report.o
obj-$(CONFIG_KASAN) := common.o report.o
obj-$(CONFIG_KASAN_GENERIC) += init.o generic.o generic_report.o quarantine.o
obj-$(CONFIG_KASAN_SW_TAGS) += init.o tags.o tags_report.o
// SPDX-License-Identifier: GPL-2.0
* This file contains some kasan initialization code.
* This file contains KASAN shadow initialization code.
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
* Author: Andrey Ryabinin <>
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