Skip to content

usercopy: Convert test_user_copy to KUnit test

Kees Cook linux-hardening linux-kselftest lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kunit: test: Add vm_mmap() allocation resource managerinclude/kunit/test.h lib/kunit/test.c+155 -14 replies
2/2usercopy: Convert test_user_copy to KUnit testMAINTAINERS lib/Kconfig.debug lib/Makefile +1 more+133 -1434 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchIvan OrlovDavid Gow
1/2R-b
2/2T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] usercopy: Convert test_user_copy to KUnit test

Hi,

This builds on the proposal[1] from Mark and lets me convert the existing usercopy selftest to KUnit. Besides adding this basic test to the KUnit collection, it also opens the door for execve testing (which depends on having a functional current->mm), and should provide the basic infrastructure for adding Mark's much more complete usercopy tests.

-Kees

[1] https://lore.kernel.org/lkml/[email protected]/

Kees Cook (2):
kunit: test: Add vm_mmap() allocation resource manager
usercopy: Convert test_user_copy to KUnit test

 MAINTAINERS                                |   1 +
 include/kunit/test.h                       |  17 ++
 lib/Kconfig.debug                          |  21 +-
 lib/Makefile                               |   2 +-
 lib/kunit/test.c                           | 139 +++++++++++-
 lib/{test_user_copy.c => usercopy_kunit.c} | 252 ++++++++++-----------
 6 files changed, 288 insertions(+), 144 deletions(-)
 rename lib/{test_user_copy.c => usercopy_kunit.c} (52%)
Signature · 1 line
2.34.1