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

Lance Yang
2025-09-18T01:42:16Z

On 2025/9/18 06:30, Andrew Morton wrote:
> 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?

Yes. Thanks for providing the Fixes: tag!