From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) (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 AC5BB19539F for ; Tue, 26 May 2026 01:06:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779757599; cv=none; b=cSfLFFcXTFKi7rG1lRkbfUm4wycc5qWwYaBhVw8i4F02FmTkbJPNY9NMdhYKiUnaB/Xm5s1+IjOt9ms4PhsKFj8pVLNNX00l5tehT1kYQ16JSAS8AU5lfUt44lWKUnihQR+TwQS//jMDvQ7Af9JINfcfjhPE23O6dpvNracWvZg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779757599; c=relaxed/simple; bh=+Q6AyHTbbA6BotFOIp7LMNACjp1Q4mc+fe3YNN9C0uo=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=JqpAN0XrexOFY275ngYfUlbWZVvOaIjSUHp/TwE6XE3X3wMJnVSQ6OHhuTN/F+blTXMN5I8zjbMq+vMu40GGljZOeK6e0zT+1ESWHxlm30ziE0XoiosW4CybBONRZHbO7S4bem9C0xNJSejb3xaI/N7PLxZFytmY7ct/VwbtywA= 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=RHKjtGZ+; arc=none smtp.client-ip=209.85.210.201 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="RHKjtGZ+" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-82fa366fb79so12459376b3a.2 for ; Mon, 25 May 2026 18:06:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1779757598; x=1780362398; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=w7AhxNHmZ8ZDq5n1GgqGfXcCH4faAsdGBWYiv9j8tsA=; b=RHKjtGZ+64zjlx+bPwEjn/O1i3BYMQLhBteDa93RDDOIGeC3rbYDVbFPZmPxuHi9Zv Zc9sXrJXLKaQ37TcdPHk/fsUk8QjDuzMWADWVyglgv/tSjZAMZ3+M9UHoLPe8bAxB4gl QKlU7DlasaYve/C2n+Aq463Wr6RkLK6ip/2J41BAdt0qXwXB6diH+vQWYlC2o+LmHuHo oeYlB6XQHlY4clpwjaeyrNmuVN/4Xjlxy46a913nbFbqcE/B2LFOxhUGQH+nMXN7IyDG AI9m4QfwlKwOZ8FLd1cMyadSvr5dcFdfy4ZLrogMvzc4EPbWawnmR7H8WdKa6Zn1kBIq Fe7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779757598; x=1780362398; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=w7AhxNHmZ8ZDq5n1GgqGfXcCH4faAsdGBWYiv9j8tsA=; b=ml9zSl6lIILHXCTD/PFplJoFsG/SWD9fgYD2kzc2KFswgsn68DVoGoiEti19qqdSXT +Fq52zc5bD8hPhSNZUXVWHdtUT+RIcso62LyddhF/UnRvgpk/BgYTVErBveptmS3jS9R n0HFSHvsXgFFUSiX48Mirrm0BLt4qYU2Zwehm+Xt9xcjWi1hTXzRDvQu2SgCc25QS6i5 kPT9tVRzvN1d0k89NyA6nz4MHA0KWGVe6WxR4d00/1S6iuTbFgKwGSXoRUo81UzoZHWj Ov4WiqQrToR/Xb7NsvcVRNNXzQLuOQ19JYjWagRPANmkja+db/30OtJBWdfiiNDDzJm7 we7w== X-Forwarded-Encrypted: i=1; AFNElJ/Y7nxOuCJ6K3JDUKy3MHHdqklW3SFQkugyD+UmVzL7wRsSzzwmCtbUfFlU/U5ZiCmJv2krv5GGiH3M/OQ=@vger.kernel.org X-Gm-Message-State: AOJu0YxrP0hUoXA8Y7UEBj1VZqsLHRlBAQshZOoajsm5LmexTYH6XmX4 UPbtePIQPMO63zvNI5uOJGg9fIw5FkD3Bn1/LEAHdjgRUDeShX0gbnk9AxQ3VZIVid14/NAOYiF Pww== X-Received: from pfbgh10.prod.google.com ([2002:a05:6a00:638a:b0:838:5125:b5e4]) (user=wakel job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:238b:b0:835:5aa3:2dab with SMTP id d2e1a72fcca58-8415f1236aemr16681764b3a.6.1779757597638; Mon, 25 May 2026 18:06:37 -0700 (PDT) Date: Tue, 26 May 2026 01:06:33 +0000 In-Reply-To: <20260525075748.3720995-1-wakel@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260525075748.3720995-1-wakel@google.com> X-Mailer: git-send-email 2.54.0.746.g67dd491aae-goog Message-ID: <20260526010635.23980-1-wakel@google.com> Subject: [PATCH v2 0/2] selftests/futex: Migrate functional tests to harness and fix validations 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" Content-Transfer-Encoding: quoted-printable This is v2 of the series to migrate futex functional tests to the harness. Changes in v2: - Move is_futex_waitv_supported() helper to a shared header (include/futex2= test.h) to avoid duplication, as suggested by Andr=C3=A9 Almeida. - Call is_futex_waitv_supported() check at the start of TEST(waitv) in futex_wait_timeout.c for consistency. Original description: This series refactors futex functional tests to use the kselftest_harness.h framework, fixing inconsistencies on older kernels where some syscalls are missing, and corrects the validation logic in waitv negative tests. Wake Liu (2): selftests/futex: Migrate functional tests to harness selftests/futex: Correct validation logic in waitv .../futex/functional/futex_wait_timeout.c | 104 ++++++-------- .../futex/functional/futex_wait_wouldblock.c | 33 ++--- .../selftests/futex/functional/futex_waitv.c | 135 ++++++++---------- .../selftests/futex/include/futex2test.h | 10 ++ 4 files changed, 132 insertions(+), 150 deletions(-) --=20 2.54.0.746.g67dd491aae-goog