Re: [PATCH] kbuild: Allow LTO to be selected with KASAN_HW_TAGS

2021-03-09 Thread Masahiro Yamada
On Tue, Mar 9, 2021 at 6:39 AM Kees Cook wrote: > > On Mon, Mar 08, 2021 at 10:46:56AM -0800, Sami Tolvanen wrote: > > 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

Re: [PATCH] kbuild: Allow LTO to be selected with KASAN_HW_TAGS

2021-03-08 Thread Kees Cook
On Mon, Mar 08, 2021 at 10:46:56AM -0800, Sami Tolvanen wrote: > 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

[PATCH] kbuild: Allow LTO to be selected with KASAN_HW_TAGS

2021-03-08 Thread Sami Tolvanen
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 Signed-off-by: Sami Tolvanen --- arch/Kconfig | 2 +- 1 file