From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A69E027D76A; Wed, 23 Apr 2025 14:45:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745419553; cv=none; b=ai5zJVRFh8czVLTE0hZPUMCd3ANQ0BpkJxCrkkqhNNJc92xzj8zYer0SBewMIaPq74QCChKtKXsOml/s/eJVCBsWvcdMz58s3T9dMeLQfj8Lf6SM6+vpyp0YL2JX2TEaMwEVXwKyJ/8Q8V5FNokedaafpM2eEulN7kptkn0TBss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745419553; c=relaxed/simple; bh=DoJ7TjcU8pol8t777NriQGoLPozWA3SoqUoViOkbiVo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bQJJFHoPwLy5W/ekIdzm6YDXn2S794MGd44JfElRhflHkQkDm/NOX6C0NeFzTpLYhEJXpP6AyMUUShDmIARgA1hV5JLezo6KQLlPJGGYlg4825H3jFvzQVJxpsn2igso7pnrIn3UGIAXt8UuhXfTouYnaEDR51FTP1stXaTc9Sg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=q2Ks5Yd8; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="q2Ks5Yd8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1F04C4CEE2; Wed, 23 Apr 2025 14:45:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1745419553; bh=DoJ7TjcU8pol8t777NriQGoLPozWA3SoqUoViOkbiVo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q2Ks5Yd8+r7L2V2DVES9ezQndBgai0MYpj4ci52kiWxR6iMa8PMcgf1bUa7qAFdkp 0tL7YqSVIdlMHLHsJDSxJXgmpEA01Rnv1f2SBWNYpje8fCe7CLXWi86tAHFGwIsmfN Atj/g4E/g6/yfI7JmndcIuL3OdU70NgVr3GO0Nck= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Edward Liaw , Thomas Gleixner , =?UTF-8?q?Andr=C3=A9=20Almeida?= , Shuah Khan , Sasha Levin Subject: [PATCH 6.1 001/291] selftests/futex: futex_waitv wouldblock test should fail Date: Wed, 23 Apr 2025 16:39:50 +0200 Message-ID: <20250423142624.472346689@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250423142624.409452181@linuxfoundation.org> References: <20250423142624.409452181@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Edward Liaw [ Upstream commit 7d50e00fef2832e98d7e06bbfc85c1d66ee110ca ] Testcase should fail if -EWOULDBLOCK is not returned when expected value differs from actual value from the waiter. Link: https://lore.kernel.org/r/20250404221225.1596324-1-edliaw@google.com Fixes: 9d57f7c79748920636f8293d2f01192d702fe390 ("selftests: futex: Test sys_futex_waitv() wouldblock") Signed-off-by: Edward Liaw Reviewed-by: Thomas Gleixner Reviewed-by: André Almeida Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- .../testing/selftests/futex/functional/futex_wait_wouldblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/futex/functional/futex_wait_wouldblock.c b/tools/testing/selftests/futex/functional/futex_wait_wouldblock.c index 7d7a6a06cdb75..2d8230da90642 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; -- 2.39.5