On Mon, Jun 4, 2018 at 12:27 PM, Chintan Pandya <cpandya@xxxxxxxxxxxxxx> wrote: > > > On 5/25/2018 8:10 PM, Andrey Konovalov wrote: > ...<snip> > >> +ifdef CONFIG_KASAN_HW >> + >> +ifdef CONFIG_KASAN_INLINE >> + instrumentation_flags := -mllvm >> -hwasan-mapping-offset=$(KASAN_SHADOW_OFFSET) >> +else >> + instrumentation_flags := -mllvm -hwasan-instrument-with-calls=1 >> +endif >> +CFLAGS_KASAN := -fsanitize=kernel-hwaddress \ >> + -mllvm -hwasan-instrument-stack=0 \ >> + $(instrumentation_flags) >> + >> +ifeq ($(call cc-option, $(CFLAGS_KASAN_MINIMAL) -Werror),) > > > /s/CFLAGS_KASAN_MINIMAL/CFLAGS_KASAN ?? > Right, thanks! Will fix in v3.