]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: Allow LTO to be selected with KASAN_HW_TAGS
authorSami Tolvanen <samitolvanen@google.com>
Mon, 8 Mar 2021 18:46:56 +0000 (10:46 -0800)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 11 Mar 2021 05:40:50 +0000 (14:40 +0900)
commit09f72336bf8cc1755661ee6100c794a4cffff329
tree736278ab31b187f28405558704c86f3c462c958e
parent17ecd948fb79a85a78065addbdc5a820d1b97b52
kbuild: Allow LTO to be selected with KASAN_HW_TAGS

While LTO with KASAN is normally not useful, hardware tag-based KASAN
can be used also in production kernels with ARM64_MTE. Therefore, allow
KASAN_HW_TAGS to be selected together with HAS_LTO_CLANG.

Reported-by: Alistair Delva <adelva@google.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
arch/Kconfig