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 3AD1E1EA84; Wed, 4 Feb 2026 14:42:55 +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=1770216176; cv=none; b=eL2SHz/u4Gzt8U8ZUDpne/qx1orU7KO/GQKBGbKTwfpJo7+EoOdEdWD9e4zs8f6upacj01mxBzvq99NlTwKgw2KKX7rqCJNrjQfmAsHLdqSEcdcRCLjL7qzjr3vI/AyHclvKTMcT9K5shtE9cngugHEJeC4X8jQs66Lb2yGAciQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216176; c=relaxed/simple; bh=WWh7jnSn1CcGzugELi/uCyBBWUM3no3SFjh27V8Htyg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OYzc47unCjcBXMZrUMupAS26e/gwWwyvu255mGL8moD6H+yF8gzxeJ0CvODb31T3FIpkRAlvqrkEKhkbM3Fi/R8dPDCfKOu8Tel3MhRN7FFyNMVVyqiCi+ahc7AzMnvLKN4xnjbTxSIeoldv45r3OA18n+Zi6NQu0KGRweuSqfI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=r+atKEB9; 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="r+atKEB9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20EBCC4CEF7; Wed, 4 Feb 2026 14:42:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770216175; bh=WWh7jnSn1CcGzugELi/uCyBBWUM3no3SFjh27V8Htyg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r+atKEB9g2f8eIJWewMHea0wrgVOouVVNy5rO2IJ7pGfxFY6An6yqiOmUpzviJBhl AcKz2jMbjW8K64sr9IEem6gr62gfbAggdsVcelwE2VugvMKYEfk4uvUxPFM08/i7dk QBSTQ0WP8DXu4OrRngfzJJgRX5zh2DNsZnimpNeI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Luigi Leonardi , Stefano Garzarella , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.10 010/161] vsock/test: add a final full barrier after run all tests Date: Wed, 4 Feb 2026 15:37:53 +0100 Message-ID: <20260204143852.134524769@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143851.755002596@linuxfoundation.org> References: <20260204143851.755002596@linuxfoundation.org> User-Agent: quilt/0.69 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-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Stefano Garzarella [ Upstream commit c39a6a277e0e67ffff6a8efcbbf7e7e23ce9e38c ] If the last test fails, the other side still completes correctly, which could lead to false positives. Let's add a final barrier that ensures that the last test has finished correctly on both sides, but also that the two sides agree on the number of tests to be performed. Fixes: 2f65b44e199c ("VSOCK: add full barrier between test cases") Reviewed-by: Luigi Leonardi Signed-off-by: Stefano Garzarella Link: https://patch.msgid.link/20260108114419.52747-1-sgarzare@redhat.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- tools/testing/vsock/util.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/testing/vsock/util.c b/tools/testing/vsock/util.c index 93cbd6f603f97..356acac85d862 100644 --- a/tools/testing/vsock/util.c +++ b/tools/testing/vsock/util.c @@ -338,6 +338,18 @@ void run_tests(const struct test_case *test_cases, printf("ok\n"); } + + printf("All tests have been executed. Waiting other peer..."); + fflush(stdout); + + /* + * Final full barrier, to ensure that all tests have been run and + * that even the last one has been successful on both sides. + */ + control_writeln("COMPLETED"); + control_expectln("COMPLETED"); + + printf("ok\n"); } void list_tests(const struct test_case *test_cases) -- 2.51.0