]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vsock/test: add a final full barrier after run all tests
authorStefano Garzarella <sgarzare@redhat.com>
Thu, 8 Jan 2026 11:44:19 +0000 (12:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 10:21:16 +0000 (11:21 +0100)
commitf39ab11f118b2d22db5a1313260e3977bff02b27
tree2243dfb21cc5fd536ec76f4ff693ce6824f7f0dc
parent554201ed0a8f4d32e719f42caeaeb2735a9ed6ca
vsock/test: add a final full barrier after run all tests

[ 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 <leonardi@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://patch.msgid.link/20260108114419.52747-1-sgarzare@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/vsock/util.c