On Tue, Dec 4, 2018 at 11:24 PM Max Filippov <jcmvbkbc@xxxxxxxxx> wrote: > > Hello, > > On Tue, Nov 27, 2018 at 9:00 AM Andrey Konovalov <andreyknvl@xxxxxxxxxx> wrote: > > > > This commit splits the current CONFIG_KASAN config option into two: > > 1. CONFIG_KASAN_GENERIC, that enables the generic KASAN mode (the one > > that exists now); > > 2. CONFIG_KASAN_SW_TAGS, that enables the software tag-based KASAN mode. > > [...] > > > --- a/lib/Kconfig.kasan > > +++ b/lib/Kconfig.kasan > > @@ -1,35 +1,95 @@ > > +# This config refers to the generic KASAN mode. > > config HAVE_ARCH_KASAN > > bool > > > > +config HAVE_ARCH_KASAN_SW_TAGS > > + bool > > + > > +config CC_HAS_KASAN_GENERIC > > + def_bool $(cc-option, -fsanitize=kernel-address) > > + > > +config CC_HAS_KASAN_SW_TAGS > > + def_bool $(cc-option, -fsanitize=kernel-hwaddress) > > + > > if HAVE_ARCH_KASAN > > > > config KASAN > > - bool "KASan: runtime memory debugger" > > + bool "KASAN: runtime memory debugger" > > + help > > + Enables KASAN (KernelAddressSANitizer) - runtime memory debugger, > > + designed to find out-of-bounds accesses and use-after-free bugs. > > + See Documentation/dev-tools/kasan.rst for details. > > Perhaps KASAN should depend on > CC_HAS_KASAN_GENERIC || CC_HAS_KASAN_SW_TAGS, > otherwise make all*config may enable KASAN > for a compiler that does not have any -fsanitize=kernel-*address > support, resulting in build failures like this: > http://kisskb.ellerman.id.au/kisskb/buildresult/13606170/log/ Will fix in v13, thanks! > > -- > Thanks. > -- Max > > -- > You received this message because you are subscribed to the Google Groups "kasan-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an email to kasan-dev+unsubscribe@xxxxxxxxxxxxxxxx. > To post to this group, send email to kasan-dev@xxxxxxxxxxxxxxxx. > To view this discussion on the web visit https://groups.google.com/d/msgid/kasan-dev/CAMo8BfK5aEGae--xvboLxMXTe1orA7kmLR_uFNCqC6M-a%3DOm5Q%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout.