From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B46B381AF9 for ; Mon, 1 Jun 2026 06:51:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780296694; cv=none; b=qzOF8RvzJlTdjrtFBkZ2PPB7ZyH4l7eQY96EkJ2IRKWWGvpgLILxMnK3Qv+nrYZGo7PWwXadrG8OxmwvV60UPCgufE3gTbSLOARp/GjTXcAOXhOdJqS8L/qTkwf75nj4WWaBuiTw/NAhyDEy9KUSD4JoYjXBRjbxLzknwcYVmXg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780296694; c=relaxed/simple; bh=4Z68cWQbHaHjRl4qKx+/txXQQy0yeNNJZ1MWOyvxnkQ=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=rQQy+N5Suw4j5KxWWzQArxVBe8OxDxIFBtvouvvsJLeCW24uEwkk7cziHg63Bufm2IP+agoyHV8I3Jcz5hAgCuyfkjE/5oQBOgvbAmvvqktwnJ2L2MaXwOWVxlWsfUraUawwAxVSRHaD82UA1+ni2MkeKCZ0Oe42ADkvRfQ3ZW0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--wakel.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=GMq+/TZW; arc=none smtp.client-ip=209.85.210.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--wakel.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="GMq+/TZW" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-8423d4d7419so1774186b3a.1 for ; Sun, 31 May 2026 23:51:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1780296690; x=1780901490; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=s1Xgy9a7jLX+LAIw3k6OrwbQIuXbHLeFTJ1qxe52k9E=; b=GMq+/TZWdu4wQ//x/+EQS+5HzVEKgUCYmCL/yViTHJRTb910iR+LQH70IjjNV/p2kO PObuh5DYria14GvakuhigaaWS6G2XsvNYlfmsojOU3gAnwBrkxzhaaIbvmTOPoSG2TT1 PRogvjjBX1WSA9m7RwOEJQD29tt34dWQFP5gWdrk51F1YUbjyZWvGny2PHB+eNaMD/qd cizv43gBTtqlyM2KW0t8XqfycFXdXuEhRA80/lr4trFCVCUYHT1v/ARGlek2mKQ3iN5q oWles3EGNreskPPrXxYKkuexYsO9pLC2tAq8LMbQvsZnRCGsC4J46L5TQTBrMO/20qYI 0uxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780296690; x=1780901490; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=s1Xgy9a7jLX+LAIw3k6OrwbQIuXbHLeFTJ1qxe52k9E=; b=lf3k5t/LBuEZfhOjrZqYJT+aLpXxaiyYucPuR84KtHtCDxtCqA9+RCpydq+QrrVNLG 0qnJoOThizhsL/qC52pWd2Spu25myuNH9X286rqmI13sF8juSMJkMt9tMYg3NHBcomvM ukrlcDYd7p2hQO0n1VVeGokE7SAUydL24n3e9F537thJ/fyN53ZfWtcfgIZwrg5xq9QO aioYW+cH/Cz95QhbDvwpMfHcdlOnd3aPguv33qL5t1EVP1UbdgZ2OFpcc2mX5sO9mvEV Q4/HAeyJosrSguLvn1VsXeBndNJF6peEu3Poixbf3kYAEFOyk67xJUGzI/uHyHGA2qLh wPnQ== X-Forwarded-Encrypted: i=1; AFNElJ9IyN9ZG1yOwL+6pKl6M3vnPmT30t0EeLeBbiA7ZmE58x4J+iJUeGtNEiAaJ/vqwTbBjsILyPpATf6fpp4=@vger.kernel.org X-Gm-Message-State: AOJu0YxWQWEEgyhZuwgpHrdV5BDCne3hp5yTpHAf0WAbpTxO087CHwha cNi3BfBTskdKB1914HYSjBBVWTpGGRWURTRfRzoxKb9IkZ93VOss1t1zccg2DO6tiAkvJIZT+xQ TWQ== X-Received: from pfbfa35.prod.google.com ([2002:a05:6a00:2d23:b0:841:d0a9:768]) (user=wakel job=prod-delivery.src-stubby-dispatcher) by 2002:aa7:9a8c:0:b0:83d:b0a0:90e3 with SMTP id d2e1a72fcca58-84225478823mr8881643b3a.31.1780296689846; Sun, 31 May 2026 23:51:29 -0700 (PDT) Date: Mon, 1 Jun 2026 06:51:19 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.54.0.823.g6e5bcc1fc9-goog Message-ID: <20260601065126.3623867-1-wakel@google.com> Subject: [PATCH 0/7] selftests/futex: Migrate requeue, NUMA and robust list tests to harness From: Wake Liu To: Thomas Gleixner , Ingo Molnar , Shuah Khan , linux-kselftest@vger.kernel.org Cc: Peter Zijlstra , Darren Hart , Davidlohr Bueso , "=?UTF-8?q?Andr=C3=A9=20Almeida?=" , Carlos Llamas , linux-kernel@vger.kernel.org, wakel@google.com Content-Type: text/plain; charset="UTF-8" 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.23980-1-wakel@google.com/ - Series 2 v1 (wait, private_mapped, uninitialized_heap): Sent, discussion ongoing. Link: https://lore.kernel.org/linux-kselftest/20260525092002.3762888-1-wakel@google.com/ 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