]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftest/futex: Reintroduce "Memory out of range" numa_mpol's subtest
authorAndré Almeida <andrealmeid@igalia.com>
Mon, 15 Sep 2025 21:26:29 +0000 (23:26 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 17 Sep 2025 17:48:44 +0000 (19:48 +0200)
commit2951dddef0a87c20e83c77070bd5077290d9121f
treeea660b35da398f4cd7f0ec8576beec12de626806
parentc1c863457780adfb2e29fa9a85897179ad3903e6
selftest/futex: Reintroduce "Memory out of range" numa_mpol's subtest

Commit d8e2f919997 ("selftests/futex: Fix some futex_numa_mpol
subtests") removed the "Memory out of range" subtest due to it being
dependent on the memory layout of the test process having an invalid
memory address just after the `*futex_ptr` allocated memory.

Reintroduce this test and make it deterministic, by allocation two
memory pages and marking the second one with PROT_NONE.

Signed-off-by: André Almeida <andrealmeid@igalia.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Waiman Long <longman@redhat.com>
tools/testing/selftests/futex/functional/futex_numa_mpol.c