kasan: turn on -fsanitize-address-use-after-scope
[linux-2.6-microblaze.git] / scripts / Makefile.kasan
index 37323b0..9576775 100644 (file)
@@ -28,4 +28,6 @@ else
         CFLAGS_KASAN := $(CFLAGS_KASAN_MINIMAL)
     endif
 endif
+
+CFLAGS_KASAN += $(call cc-option, -fsanitize-address-use-after-scope)
 endif