Re: [PATCH RFC v10 22/22] mm: Add basic tests for kpkeys_hardened_pgtables
From: Mark Brown
Date: Mon Nov 09 2026 - 14:28:51 EST
On Mon, Nov 09, 2026 at 03:58:47PM +0000, Kevin Brodsky wrote:
> ---
> mm/Makefile | 1 +
> mm/tests/kpkeys_hardened_pgtables_kunit.c | 200 ++++++++++++++++++++++++++++++
> security/Kconfig.hardening | 12 ++
> 3 files changed, 213 insertions(+)
> +config KPKEYS_HARDENED_PGTABLES_KUNIT_TEST
> + bool "KUnit tests for kpkeys_hardened_pgtables" if !KUNIT_ALL_TESTS
> + depends on KPKEYS_HARDENED_PGTABLES
> + depends on KUNIT=y
> + default KUNIT_ALL_TESTS
I'd also expect to see this added to one of the KUnit config fragments
somewhere so it gets run as standard, though that's a little awkward
given that KPKEYS_HARDENED_PGTABLES isn't universally available.
Attachment:
signature.asc
Description: PGP signature