From: Kees Cook Date: Thu, 10 Feb 2022 00:32:24 +0000 (-0800) Subject: um: Enable FORTIFY_SOURCE X-Git-Tag: v6.1-rc5~349^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba38961a069b0d8d03b53218a6c29d737577d448;p=platform%2Fkernel%2Flinux-starfive.git um: Enable FORTIFY_SOURCE Enable FORTIFY_SOURCE so running Kunit tests can test fortified functions. Signed-off-by: Kees Cook Tested-by: David Gow Link: https://lore.kernel.org/r/20220210003224.773957-1-keescook@chromium.org --- diff --git a/arch/um/Kconfig b/arch/um/Kconfig index 78de31a..ad4ff3b 100644 --- a/arch/um/Kconfig +++ b/arch/um/Kconfig @@ -6,6 +6,7 @@ config UML bool default y select ARCH_EPHEMERAL_INODES + select ARCH_HAS_FORTIFY_SOURCE select ARCH_HAS_GCOV_PROFILE_ALL select ARCH_HAS_KCOV select ARCH_HAS_STRNCPY_FROM_USER diff --git a/arch/um/os-Linux/user_syms.c b/arch/um/os-Linux/user_syms.c index cb667c9..fd575ec 100644 --- a/arch/um/os-Linux/user_syms.c +++ b/arch/um/os-Linux/user_syms.c @@ -1,4 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 +#define __NO_FORTIFY #include #include