|
|
Log in / Subscribe / Register

selftests/futex: Migrate requeue, NUMA and robust list tests to harness

From:  Wake Liu <wakel-AT-google.com>
To:  Thomas Gleixner <tglx-AT-kernel.org>, Ingo Molnar <mingo-AT-redhat.com>, Shuah Khan <shuah-AT-kernel.org>, linux-kselftest-AT-vger.kernel.org
Subject:  [PATCH 0/7] selftests/futex: Migrate requeue, NUMA and robust list tests to harness
Date:  Mon, 01 Jun 2026 06:51:19 +0000
Message-ID:  <20260601065126.3623867-1-wakel@google.com>
Cc:  Peter Zijlstra <peterz-AT-infradead.org>, Darren Hart <dvhart-AT-infradead.org>, Davidlohr Bueso <dave-AT-stgolabs.net>, "AndrĂ© Almeida" <andrealmeid-AT-igalia.com>, Carlos Llamas <cmllamas-AT-google.com>, linux-kernel-AT-vger.kernel.org, wakel-AT-google.com
Archive-link:  Article

This series refactors the requeue, NUMA, and robust list futex functional
tests to exclusively use the kselftest_harness.h framework, completing
the remaining unsent functional test migrations in this directory.

This eliminates mixed usage of legacy ksft_* APIs and high-level harness
asserts, preventing crashes on older kernels, and ensures proper thread
joining.

For context, the previous wait-related migrations are in these states:
- Series 1 v2 (wait_timeout, wait_wouldblock, waitv): Sent, awaiting review.
  Link: https://lore.kernel.org/linux-kselftest/20260526010635.23...
- Series 2 v1 (wait, private_mapped, uninitialized_heap): Sent, discussion ongoing.
  Link: https://lore.kernel.org/linux-kselftest/20260525092002.37...

Descriptions of individual patches:
Patch 1-4: Migrate requeue, requeue_pi, mismatched_ops, and signal_restart tests.
Patch 5: Migrates futex_numa_mpol.
Patch 6: Migrates futex_priv_hash.
Patch 7: Migrates robust_list (and fixes an out-of-bounds waitpid bug).

Wake Liu (7):
  selftests/futex: Migrate futex_requeue to harness
  selftests/futex: Migrate futex_requeue_pi to harness
  selftests/futex: Migrate futex_requeue_pi_mismatched_ops to harness
  selftests/futex: Migrate futex_requeue_pi_signal_restart to harness
  selftests/futex: Migrate futex_numa_mpol to harness
  selftests/futex: Migrate futex_priv_hash to harness
  selftests/futex: Migrate robust_list to harness

 .../futex/functional/futex_numa_mpol.c        | 109 ++++++------
 .../futex/functional/futex_priv_hash.c        | 160 ++++++++---------
 .../futex/functional/futex_requeue.c          |  32 +++-
 .../futex/functional/futex_requeue_pi.c       | 130 +++++++-------
 .../futex_requeue_pi_mismatched_ops.c         |  39 ++--
 .../futex_requeue_pi_signal_restart.c         |  67 ++++---
 .../selftests/futex/functional/robust_list.c  | 166 +++++++++---------
 7 files changed, 354 insertions(+), 349 deletions(-)

-- 
2.54.0.823.g6e5bcc1fc9-goog




Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds