Skip to content

Commit

Permalink
kasan: Fix required compiler version
Browse files Browse the repository at this point in the history
The first working GCC version to satisfy
CC_HAS_WORKING_NOSANITIZE_ADDRESS is GCC 8.3.0.

Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89124
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200623112448.GA208112@elver.google.com
  • Loading branch information
melver authored and Peter Zijlstra committed Jun 25, 2020
1 parent 33aea07 commit acf7b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Kconfig.kasan
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ config CC_HAS_KASAN_SW_TAGS
def_bool $(cc-option, -fsanitize=kernel-hwaddress)

config CC_HAS_WORKING_NOSANITIZE_ADDRESS
def_bool !CC_IS_GCC || GCC_VERSION >= 80000
def_bool !CC_IS_GCC || GCC_VERSION >= 80300

config KASAN
bool "KASAN: runtime memory debugger"
Expand Down

0 comments on commit acf7b0b

Please sign in to comment.