lkdtm/fortify: Consolidate FORTIFY_SOURCE tests
authorKees Cook <keescook@chromium.org>
Wed, 18 Aug 2021 17:48:53 +0000 (10:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Aug 2021 20:28:51 +0000 (22:28 +0200)
commitfe8e353bfda6d6c8cefd0a933640025ad3d302e5
treef7c30c32cc481c7892b536fea4005ee5d53b04a5
parentc75be56e35b2eef824a2ac8d90a98f9e65b28efa
lkdtm/fortify: Consolidate FORTIFY_SOURCE tests

The FORTIFY_SOURCE tests were split between bugs.c and fortify.c. Move
tests into fortify.c, standardize their naming, add CONFIG hints, and
add them to the lkdtm selftests.

Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210818174855.2307828-3-keescook@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/lkdtm/bugs.c
drivers/misc/lkdtm/core.c
drivers/misc/lkdtm/fortify.c
drivers/misc/lkdtm/lkdtm.h
tools/testing/selftests/lkdtm/tests.txt