Re: [RFC PATCH 7/7] tools: add skeleton code for userland testing of VMA logic

From: Kees Cook
Date: Thu Jun 27 2024 - 12:58:22 EST


On Thu, Jun 27, 2024 at 11:39:32AM +0100, Lorenzo Stoakes wrote:
> Establish a new userland VMA unit testing implementation under
> tools/testing which utilises existing logic providing maple tree support in
> userland utilising the now-shared code previously exclusive to radix tree
> testing.
>
> This provides fundamental VMA operations whose API is defined in mm/vma.h,
> while stubbing out superfluous functionality.
>
> This exists as a proof-of-concept, with the test implementation functional
> and sufficient to allow userland compilation of vma.c, but containing only
> cursory tests to demonstrate basic functionality.

Interesting! Why do you want to have this in userspace instead of just
wiring up what you have here to KUnit so testing can be performed by
existing CI systems that are running all the KUnit tests?

-Kees

--
Kees Cook