Message ID | CACRpkda3Pe9L14_iyKEfeCx1F3XJSLbz_OVHLxX0Lzy9Gt9t9Q@mail.gmail.com |
---|---|
State | New |
Headers | show |
On Tue, May 26, 2015 at 4:22 PM, Andrey Ryabinin <a.ryabinin@samsung.com> wrote: > On 05/26/2015 05:12 PM, Andrey Ryabinin wrote: >> On 05/26/2015 04:35 PM, Linus Walleij wrote: >>> I wonder were the problem lies, any hints where to start looking >>> to fix this? >>> >> >> I suspect that your compiler lack -fsantize=kernel-address support. >> It seems that GCC 4.9.2 doesn't supports -fsanitize=address/kernel-address on aarch64. >> > > In that case you should get something like this, during kernel build: > scripts/Makefile.kasan:17: Cannot use CONFIG_KASAN: -fsanitize=kernel-address is not supported by compiler Aha yep that's it when I look closer... I'm going back and rebuilding my compiler. May as well do a trunk 5.0 build and try to get KASAN_INLINE working while I'm at it. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
diff --git a/lib/Kconfig.kasan b/lib/Kconfig.kasan index 39f24d6721e5..b3353dbe5f58 100644 --- a/lib/Kconfig.kasan +++ b/lib/Kconfig.kasan @@ -45,7 +45,7 @@ endchoice config TEST_KASAN tristate "Module for testing kasan for bug detection" - depends on m && KASAN + depends on KASAN help This is a test module doing various nasty things like out of bounds accesses, use after free. It is useful for testing diff --git a/lib/test_kasan.c b/lib/test_kasan.c index 098c08eddfab..fb54486eacd6 100644 --- a/lib/test_kasan.c +++ b/lib/test_kasan.c @@ -273,5 +273,5 @@ static int __init kmalloc_tests_init(void) return -EAGAIN; } -module_init(kmalloc_tests_init); +late_initcall(kmalloc_tests_init); MODULE_LICENSE("GPL");