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 1B7FA1E98ED; Thu, 17 Apr 2025 18:17:06 +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=1744913827; cv=none; b=krJ/T4Naqilxl4OkGjmwDvv4luiG/MxT4Eeee37CDSbW5xLV1CL1gkfOt0P4tkKPpB103lb4S0fGP5OXKRP0PtC7MhOh1R0GJAB6tJG9WufP1/DikVHvzm6CtI9jaMvfMiqBWnSpfW5K8ris+IRjdStu7PkUSV9F/dc/JDMdn14= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744913827; c=relaxed/simple; bh=544cW1jjPY2COgYb9RaXV4l1WJ0/aHzIJeCrpsjBx7g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ehfI6Rsrkm1DpfDHmQiB8KDNPZUMQq141PG0IFLdpF4sqjFqgVBnmZ6DIgVq7BeQZaVmsIsNeejTul/3aF4guhiS6uJyNCxkmWmcNiFuYou0WrvI4PKayeanfnU4v8fmKbdQJ619jXcs2KRn5H9kg5S30IIC+nUc0BHkim1SHDk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p4pOQux1; 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="p4pOQux1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2530CC4CEE7; Thu, 17 Apr 2025 18:17:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744913826; bh=544cW1jjPY2COgYb9RaXV4l1WJ0/aHzIJeCrpsjBx7g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p4pOQux1DcObPhJTHuiJP2xHoGLp/K0Py88KdnWsveAdokemsmrsac8lvyCTlqS3p puXh8jcsch1TOxy6nl8JQEa+n0dHMUH/vekzgQkxwVaouesHKqDsM1xEb92UBzo+jN +kEVpKjvHGQQQHxCNhWanxtSyjC2kmBs9COEJNME= 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.13 006/414] selftests/futex: futex_waitv wouldblock test should fail Date: Thu, 17 Apr 2025 19:46:04 +0200 Message-ID: <20250417175111.655835427@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250417175111.386381660@linuxfoundation.org> References: <20250417175111.386381660@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.13-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