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

Andrew Morton
2025-09-17T22:30:48Z

On Wed, 17 Sep 2025 21:31:37 +0800 Lance Yang <lance.yang@linux.dev> 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?