mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
![Andrey Konovalov](/assets/img/avatar_default.png)
Move generic KASAN specific error reporting routines to generic_report.c without any functional changes, leaving common error reporting code in report.c to be later reused by tag-based KASAN. Link: http://lkml.kernel.org/r/ba48c32f8e5aefedee78998ccff0413bee9e0f5b.1544099024.git.andreyknvl@google.com Signed-off-by: Andrey Konovalov <andreyknvl@google.com> Reviewed-by: Andrey Ryabinin <aryabinin@virtuozzo.com> Reviewed-by: Dmitry Vyukov <dvyukov@google.com> Cc: Christoph Lameter <cl@linux.com> Cc: Mark Rutland <mark.rutland@arm.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>
18 lines
736 B
Makefile
18 lines
736 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
KASAN_SANITIZE := n
|
|
UBSAN_SANITIZE_common.o := n
|
|
UBSAN_SANITIZE_generic.o := n
|
|
UBSAN_SANITIZE_tags.o := n
|
|
KCOV_INSTRUMENT := n
|
|
|
|
CFLAGS_REMOVE_generic.o = -pg
|
|
# Function splitter causes unnecessary splits in __asan_load1/__asan_store1
|
|
# see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63533
|
|
|
|
CFLAGS_common.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
|
|
CFLAGS_generic.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
|
|
CFLAGS_tags.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
|
|
|
|
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
|