Skip to content

exec: Add KUnit test for bprm_stack_limits()

Kees Cook linux-fsdevel linux-hardening linux-mm lkml oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2exec: Add KUnit test for bprm_stack_limits()MAINTAINERS fs/Kconfig.binfmt fs/exec.c +1 more+136 -03 replies
2/2exec: Avoid pathological argc, envc, and bprm->p valuesfs/exec.c fs/exec_test.c+35 -24 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] exec: Add KUnit test for bprm_stack_limits()

Hi,

This adds a first KUnit test to the core exec code. With the ability to manipulate userspace memory from KUnit coming[1], I wanted to at least get the KUnit framework in place in exec.c. Most of the coming tests will likely be to binfmt_elf.c, but still, this serves as a reasonable first step.

-Kees

[1] https://lore.kernel.org/linux-hardening/[email protected]/

Kees Cook (2):
exec: Add KUnit test for bprm_stack_limits()
exec: Avoid pathological argc, envc, and bprm->p values

 MAINTAINERS       |   2 +
 fs/Kconfig.binfmt |   8 +++
 fs/exec.c         |  24 +++++++-
 fs/exec_test.c    | 137 ++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 170 insertions(+), 1 deletion(-)
 create mode 100644 fs/exec_test.c
Signature · 1 line
2.34.1