Re: [PATCH v4 5/6] binder: Convert binder_alloc selftests to KUnit

From: Kees Cook
Date: Thu Jul 17 2025 - 02:33:49 EST


On Wed, Jul 16, 2025 at 06:10:08PM -0700, Tiffany Yang wrote:
> Convert the existing binder_alloc_selftest tests into KUnit tests. These
> tests allocate and free an exhaustive combination of buffers with
> various sizes and alignments. This change allows them to be run without
> blocking or otherwise interfering with other processes in binder.
>
> This test is refactored into more meaningful cases in the subsequent
> patch.
>
> Acked-by: Carlos Llamas <cmllamas@xxxxxxxxxx>
> Signed-off-by: Tiffany Yang <ynaffit@xxxxxxxxxx>

Reviewed-by: Kees Cook <kees@xxxxxxxxxx>

--
Kees Cook