Re: [PATCH v3 1/1] selftests/mm: skip soft-dirty tests when CONFIG_MEM_SOFT_DIRTY is disabled

From: Andrew Morton
Date: Wed Sep 17 2025 - 18:31:03 EST


On Wed, 17 Sep 2025 21:31:37 +0800 Lance Yang <lance.yang@xxxxxxxxx> wrote:

> The madv_populate and soft-dirty kselftests currently fail on systems where
> CONFIG_MEM_SOFT_DIRTY is disabled.
>
> Introduce a new helper softdirty_supported() into vm_util.c/h to ensure
> tests are properly skipped when the feature is not enabled.

It's pretty sad for us to ship kernels which have known selftest flaws
like this.

would

Fixes: 9f3265db6ae8 ("selftests: vm: add test for Soft-Dirty PTE bit")

be appropriate?