[PATCH RFC v10 22/22] mm: Add basic tests for kpkeys_hardened_pgtables

Mark Brown broonie at kernel.org
Mon Nov 9 11:28:14 PST 2026


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20261109/4f74bb8f/attachment.sig>


More information about the linux-arm-kernel mailing list