From patchwork Wed Apr 9 22:13:39 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 879474 Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) (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 DC3E219004A for ; Wed, 9 Apr 2025 22:13:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744236825; cv=none; b=PTbWnjbLW4K5SQQBrpTPgFAJITH28RkQbGhsLZFWG+rQjDfeYKdOCJEbg5YlHeG9seCjLEODA2Hk5YnzPFfMeQiK63fyIcJnWq+X+gkQ03c8oT5xlDVQzMBAlwz6+2nLRxTK1yp+h/Pj6F0UEP2W5nZYPfFqFYVF2YGamIUSJ6o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744236825; c=relaxed/simple; bh=xpzRcp4Ka1Tyt+GacK8iEdisWsXft9gHQ0UJH/Jbems=; h=Content-Type:Message-ID:Date:MIME-Version:To:Cc:From:Subject; b=sL8w1j1Qw+2c6nu0jG59V+D76Y1TLqJlZMGfbkZfrTYDujBeMwUl9oKKSCCN02omdxQ4UGI3Je0MDD9mkmxVGrszLcfMfgWamIh/EEhipqorUB6dgTY9Nzy55FPJ1lTTzHMqR0QmuecA9yuTZ8/6nPSHNV7/xWiRR3yspKX8E2M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WegrPDXk; arc=none smtp.client-ip=209.85.166.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="WegrPDXk" Received: by mail-io1-f44.google.com with SMTP id ca18e2360f4ac-86135aeca58so7547139f.0 for ; Wed, 09 Apr 2025 15:13:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1744236821; x=1744841621; darn=vger.kernel.org; h=subject:from:cc:to:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=sOZyIYNshi/uC4rKrNhaWGHmAAtbzVOCXThHt3xXgGA=; b=WegrPDXkuctiQR+gbbfpKu2VHihB9jBokCMm1FLKvXZwosCQYrWgd1VJqa+iCO4SGG nIo38WTUNFHFehE8pRm7H0ZFXcpXWZmpjIPkh2jKOHFGyu/R8pG1s2SjCizaxXfkuVfZ bslqcjZdTXU7HFsBLsoK0fXDDwHwCY/vIx0tA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744236821; x=1744841621; h=subject:from:cc:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sOZyIYNshi/uC4rKrNhaWGHmAAtbzVOCXThHt3xXgGA=; b=o+FZFRGyuXNouRGPBZDJ+VwvzF4Uhhn6L65Chs5puqPt3H7imySGq8zSOtfxEVm6Ue /LSASdB5AdOn11Kv025jhF7lYssQpu+T8nesagonLCbFy5MziRY/KMeRqkUieaLik3+2 ZIOxsz982miQer79IPgwGoegjxVE5Y/c9C3TR/KRPX8U8m9/o8JnGveXPt3sfl4ezgrq sUqi6xqjrHYEjGtwofRq/Ul7+8f9n+egP1+Vssg92r9sHpuyOd32FpdEHb9JHgQPi8YI kazUAIytPxcBiw56ppoFGw/Lzz+xxMZal3dT6jI0cJNjzC24dWS2H3y7AcfhPxHcVgfY UTdw== X-Forwarded-Encrypted: i=1; AJvYcCU4goCeyxKHWik1mOvTXCt29Mejco1g3rEFF8/krv85AuKZp5XqjvVRQa4tt7BRu1Oxbxx8ylpJbnfgp+ay73w=@vger.kernel.org X-Gm-Message-State: AOJu0Ywe9pztPc0BazVb0t3Me03OKUmpDWKaSLbwVYxAwEu6R4UZ57DV 2qSAaS55GCsHy4Fr5e2/TP+a4OuQNItB3H10rIlUltao5KiChE2IOkRoQ9eEtwYpf8RZSWiyHVK / X-Gm-Gg: ASbGncuQBAKQ/RtYZINmvzEBmhWZLOqb8yh42m/USjybHIIpJBAGMaKHM3rZIM1DIQy ST434JwgY+Lxs83hj/F4SJe+VhynKufF4XuffBb4IXdAxAf5bGZOih7GRgpBwKmxPLw1l/TeD0U VnXUaKXKyIUs2SH9cL5yVtM3K51/Fkcg2utM1ohihiHDaIew1A/5UJ6fLHj+LRgK0txbjeJ/zu1 VyMebYJSdDVdFG7BAGx4TdEctEF0kl9WdClxJFNU8FOIsnwlPz7bxTC7L+/DGHmTUX7EJO+TzdB 7v0Eb/RZVt8Mkrlmy2kdY/NtBX7VpQz1ux8ipkd3DDIluOOTLsDsuACCbde/jA== X-Google-Smtp-Source: AGHT+IEcFbkLjNVeVV2IRBR2ch4Mk83Cf5DzulAWeocqV95gWGdGEQbBdBT5rhoA3QaCfCGk89IjeQ== X-Received: by 2002:a05:6602:474a:b0:861:6f2a:ae64 with SMTP id ca18e2360f4ac-86170565aaemr3792839f.0.1744236820746; Wed, 09 Apr 2025 15:13:40 -0700 (PDT) Received: from [192.168.1.14] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-86165426285sm37114939f.12.2025.04.09.15.13.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Apr 2025 15:13:40 -0700 (PDT) Message-ID: Date: Wed, 9 Apr 2025 16:13:39 -0600 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Linus Torvalds Cc: Shuah Khan , shuah , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org From: Shuah Khan Subject: [GIT PULL] Kselftest fixes update for Linux 6.15-rc2 Hi Linus, Please pull the following kselftest fixes update for Linux 6.15-rc2 Fixes tpm2, futex, and mincore tests. Creates a dedicated .gitignore for tpm2 Details: selftests: tpm2: test_smoke: use POSIX-conformant expression operator selftests/futex: futex_waitv wouldblock test should fail selftests: tpm2: create a dedicated .gitignore selftests/mincore: Allow read-ahead pages to reach the end of the file diff is attached. thanks, -- Shuah ---------------------------------------------------------------- The following changes since commit 0af2f6be1b4281385b618cb86ad946eded089ac8: Linux 6.15-rc1 (2025-04-06 13:11:33 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux_kselftest-fixes-6.15-rc2 for you to fetch changes up to 197c1eaa7ba633a482ed7588eea6fd4aa57e08d4: selftests/mincore: Allow read-ahead pages to reach the end of the file (2025-04-08 17:08:50 -0600) ---------------------------------------------------------------- linux_kselftest-fixes-6.15-rc2 Fixes tpm2, futex, and mincore tests. Creates a dedicated .gitignore for tpm2 Details: selftests: tpm2: test_smoke: use POSIX-conformant expression operator selftests/futex: futex_waitv wouldblock test should fail selftests: tpm2: create a dedicated .gitignore selftests/mincore: Allow read-ahead pages to reach the end of the file ---------------------------------------------------------------- Ahmed Salem (1): selftests: tpm2: test_smoke: use POSIX-conformant expression operator Edward Liaw (1): selftests/futex: futex_waitv wouldblock test should fail Khaled Elnaggar (1): selftests: tpm2: create a dedicated .gitignore Qiuxu Zhuo (1): selftests/mincore: Allow read-ahead pages to reach the end of the file tools/testing/selftests/.gitignore | 1 - tools/testing/selftests/futex/functional/futex_wait_wouldblock.c | 2 +- tools/testing/selftests/mincore/mincore_selftest.c | 3 --- tools/testing/selftests/tpm2/.gitignore | 3 +++ tools/testing/selftests/tpm2/test_smoke.sh | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 tools/testing/selftests/tpm2/.gitignore ---------------------------------------------------------------- diff --git a/tools/testing/selftests/.gitignore b/tools/testing/selftests/.gitignore index cb24124ac5b9..674aaa02e396 100644 --- a/tools/testing/selftests/.gitignore +++ b/tools/testing/selftests/.gitignore @@ -4,7 +4,6 @@ gpiogpio-hammer gpioinclude/ gpiolsgpio kselftest_install/ -tpm2/SpaceTest.log # Python bytecode and cache __pycache__/ diff --git a/tools/testing/selftests/futex/functional/futex_wait_wouldblock.c b/tools/testing/selftests/futex/functional/futex_wait_wouldblock.c index 7d7a6a06cdb7..2d8230da9064 100644 --- a/tools/testing/selftests/futex/functional/futex_wait_wouldblock.c +++ b/tools/testing/selftests/futex/functional/futex_wait_wouldblock.c @@ -98,7 +98,7 @@ int main(int argc, char *argv[]) info("Calling futex_waitv on f1: %u @ %p with val=%u\n", f1, &f1, f1+1); res = futex_waitv(&waitv, 1, 0, &to, CLOCK_MONOTONIC); if (!res || errno != EWOULDBLOCK) { - ksft_test_result_pass("futex_waitv returned: %d %s\n", + ksft_test_result_fail("futex_waitv returned: %d %s\n", res ? errno : res, res ? strerror(errno) : ""); ret = RET_FAIL; diff --git a/tools/testing/selftests/mincore/mincore_selftest.c b/tools/testing/selftests/mincore/mincore_selftest.c index e949a43a6145..efabfcbe0b49 100644 --- a/tools/testing/selftests/mincore/mincore_selftest.c +++ b/tools/testing/selftests/mincore/mincore_selftest.c @@ -261,9 +261,6 @@ TEST(check_file_mmap) TH_LOG("No read-ahead pages found in memory"); } - EXPECT_LT(i, vec_size) { - TH_LOG("Read-ahead pages reached the end of the file"); - } /* * End of the readahead window. The rest of the pages shouldn't * be in memory. diff --git a/tools/testing/selftests/tpm2/.gitignore b/tools/testing/selftests/tpm2/.gitignore new file mode 100644 index 000000000000..6d6165c5e35d --- /dev/null +++ b/tools/testing/selftests/tpm2/.gitignore @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0-only +AsyncTest.log +SpaceTest.log diff --git a/tools/testing/selftests/tpm2/test_smoke.sh b/tools/testing/selftests/tpm2/test_smoke.sh index 168f4b166234..3a60e6c6f5c9 100755 --- a/tools/testing/selftests/tpm2/test_smoke.sh +++ b/tools/testing/selftests/tpm2/test_smoke.sh @@ -6,6 +6,6 @@ ksft_skip=4 [ -e /dev/tpm0 ] || exit $ksft_skip read tpm_version < /sys/class/tpm/tpm0/tpm_version_major -[ "$tpm_version" == 2 ] || exit $ksft_skip +[ "$tpm_version" = 2 ] || exit $ksft_skip python3 -m unittest -v tpm2_tests.SmokeTest 2>&1