]> Git Repo - linux.git/commit
kasan: turn on -fsanitize-address-use-after-scope
authorAndrey Ryabinin <[email protected]>
Tue, 13 Dec 2016 00:44:59 +0000 (16:44 -0800)
committerLinus Torvalds <[email protected]>
Tue, 13 Dec 2016 02:55:09 +0000 (18:55 -0800)
commitc5caf21ab0cf884ef15b25af234f620e4a233139
tree005cc4e5e5756bc6002c4fa7a5b51338c1415dd8
parent64abdcb24351a27bed6e2b6a3c27348fe532c73f
kasan: turn on -fsanitize-address-use-after-scope

In the upcoming gcc7 release, the -fsanitize=kernel-address option at
first implied new -fsanitize-address-use-after-scope option.  This would
cause link errors on older kernels because they don't have two new
functions required for use-after-scope support.  Therefore, gcc7 changed
default to -fno-sanitize-address-use-after-scope.

Now the kernel has everything required for that feature since commit
828347f8f9a5 ("kasan: support use-after-scope detection").  So, to make it
work, we just have to enable use-after-scope in CFLAGS.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Andrey Ryabinin <[email protected]>
Acked-by: Dmitry Vyukov <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Andrey Konovalov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/Makefile.kasan
This page took 0.0543 seconds and 4 git commands to generate.