mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
KASAN: prohibit KASAN+STRUCTLEAK combination
Currently STRUCTLEAK inserts initialization out of live scope of variables from KASAN point of view. This leads to KASAN false positive reports. Prohibit this combination for now. Link: http://lkml.kernel.org/r/20180419172451.104700-1-dvyukov@google.com Signed-off-by: Dmitry Vyukov <dvyukov@google.com> Acked-by: Kees Cook <keescook@chromium.org> Cc: Fengguang Wu <fengguang.wu@intel.com> Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> Cc: Andrey Ryabinin <aryabinin@virtuozzo.com> Cc: Dennis Zhou <dennisszhou@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
1d1c8e5f0d
commit
c9cf87ea6a
1 changed files with 4 additions and 0 deletions
|
@ -464,6 +464,10 @@ config GCC_PLUGIN_LATENT_ENTROPY
|
||||||
config GCC_PLUGIN_STRUCTLEAK
|
config GCC_PLUGIN_STRUCTLEAK
|
||||||
bool "Force initialization of variables containing userspace addresses"
|
bool "Force initialization of variables containing userspace addresses"
|
||||||
depends on GCC_PLUGINS
|
depends on GCC_PLUGINS
|
||||||
|
# Currently STRUCTLEAK inserts initialization out of live scope of
|
||||||
|
# variables from KASAN point of view. This leads to KASAN false
|
||||||
|
# positive reports. Prohibit this combination for now.
|
||||||
|
depends on !KASAN_EXTRA
|
||||||
help
|
help
|
||||||
This plugin zero-initializes any structures containing a
|
This plugin zero-initializes any structures containing a
|
||||||
__user attribute. This can prevent some classes of information
|
__user attribute. This can prevent some classes of information
|
||||||
|
|
Loading…
Reference in a new issue