Re: [PATCH v2 1/3] selftests/mm: add memory failure anonymous page test

From: David Hildenbrand (Red Hat)

Date: Wed Jan 21 2026 - 07:36:28 EST


On 1/21/26 12:17, Mark Brown wrote:
On Wed, Jan 21, 2026 at 10:05:07AM +0800, Miaohe Lin wrote:
On 2026/1/21 1:46, Mark Brown wrote:

You should also add HWPOISION_INJECT and likely also MEMORY_FAILURE
(which it depends on) to the config fragment in

tools/testing/selftests/mm/config

Currently if HWPOISION_INJECT or MEMORY_FAILURE isn't enabled, the test
will be skipped.

Yes, it handles them being missing correctly - it's just about letting
people know what they need to enable so the tests get run.

Right, we should handle it to avoid misleading test failures until test environments (like 0day) adapted config changes.

--
Cheers

David