[PATCH v2 0/4] futex: Fixups for the testsuite and FUTEX_NUMA

From: Sebastian Andrzej Siewior
Date: Tue Jun 10 2025 - 06:44:31 EST


This is a collection of random fixes related to the recent private
futex/ NUMA addition:

- Some of the test fail on ARM due bad command line parsing.

- The MPOL test fails because the home node was never set.

- The syzbot used a negative NODE number which was not tested for.

v1…v2: https://lore.kernel.org/all/20250528085521.1938355-1-bigeasy@xxxxxxxxxxxxx/
- Extend 4/4 to also check for the immutable flag.

Peter Zijlstra (1):
futex: Handle invalid node numbers supplied by user

Sebastian Andrzej Siewior (3):
selftests/futex: getopt() requires int as return value.
selftests/futex: Set the home_node in futex_numa_mpol
futex: Verify under the lock if hash can be replaced

kernel/futex/core.c | 14 ++++++++++++--
.../selftests/futex/functional/futex_numa_mpol.c | 10 +++++++---
.../selftests/futex/functional/futex_priv_hash.c | 2 +-
3 files changed, 20 insertions(+), 6 deletions(-)

--
2.49.0