diff options
author | Kees Cook <kees@kernel.org> | 2024-05-20 02:17:59 +0200 |
---|---|---|
committer | Kees Cook <kees@kernel.org> | 2024-06-19 22:13:55 +0200 |
commit | 60371f43e56bfad1f438621fae286e1de5bb6877 (patch) | |
tree | 32dea290ec0851b4a59732c449c5a685e59c1884 /fs/Kconfig.binfmt | |
parent | binfmt_elf: Honor PT_LOAD alignment for static PIE (diff) | |
download | linux-60371f43e56bfad1f438621fae286e1de5bb6877.tar.xz linux-60371f43e56bfad1f438621fae286e1de5bb6877.zip |
exec: Add KUnit test for bprm_stack_limits()
Since bprm_stack_limits() operates with very limited side-effects, add
it as the first exec.c KUnit test. Add to Kconfig and adjust MAINTAINERS
file to include it.
Tested on 64-bit UML:
$ tools/testing/kunit/kunit.py run exec
Link: https://lore.kernel.org/lkml/20240520021615.741800-1-keescook@chromium.org/
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'fs/Kconfig.binfmt')
-rw-r--r-- | fs/Kconfig.binfmt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/Kconfig.binfmt b/fs/Kconfig.binfmt index f5693164ca9a..bd2f530e5740 100644 --- a/fs/Kconfig.binfmt +++ b/fs/Kconfig.binfmt @@ -176,4 +176,12 @@ config COREDUMP certainly want to say Y here. Not necessary on systems that never need debugging or only ever run flawless code. +config EXEC_KUNIT_TEST + bool "Build execve tests" if !KUNIT_ALL_TESTS + depends on KUNIT=y + default KUNIT_ALL_TESTS + help + This builds the exec KUnit tests, which tests boundary conditions + of various aspects of the exec internals. + endmenu |