-
- Downloads
x86: fortify: kmsan: fix KMSAN fortify builds
Ensure that KMSAN builds replace memset/memcpy/memmove calls with the respective __msan_XXX functions, and that none of the macros are redefined twice. This should allow building kernel with both CONFIG_KMSAN and CONFIG_FORTIFY_SOURCE. Link: https://lkml.kernel.org/r/20221024212144.2852069-5-glider@google.com Link: https://github.com/google/kmsan/issues/89 Signed-off-by:Alexander Potapenko <glider@google.com> Reported-by:
Tamas K Lengyel <tamas.lengyel@zentific.com> Cc: Nathan Chancellor <nathan@kernel.org> Cc: Nick Desaulniers <ndesaulniers@google.com> Cc: Kees Cook <keescook@chromium.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org>
Showing
- arch/x86/include/asm/string_64.h 7 additions, 4 deletionsarch/x86/include/asm/string_64.h
- include/linux/fortify-string.h 15 additions, 2 deletionsinclude/linux/fortify-string.h
- include/linux/kmsan_string.h 21 additions, 0 deletionsinclude/linux/kmsan_string.h
- mm/kmsan/instrumentation.c 1 addition, 0 deletionsmm/kmsan/instrumentation.c
Loading
Please register or sign in to comment