]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vsock/test: fix seqpacket message bounds test
authorStefano Garzarella <sgarzare@redhat.com>
Wed, 21 Jan 2026 09:36:26 +0000 (10:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Jan 2026 09:27:37 +0000 (10:27 +0100)
commit17c9b158bc4d7ab67f0a013a965be19d2cd0c2c1
tree3e3109a9e72806051ebbc6aea536b60a1343237a
parent02f9af192b98d15883c70dd41ac76d1b0217c899
vsock/test: fix seqpacket message bounds test

[ Upstream commit 0a98de80136968bab7db37b16282b37f044694d3 ]

The test requires the sender (client) to send all messages before waking
up the receiver (server).
Since virtio-vsock had a bug and did not respect the size of the TX
buffer, this test worked, but now that we are going to fix the bug, the
test hangs because the sender would fill the TX buffer before waking up
the receiver.

Set the buffer size in the sender (client) as well, as we already do for
the receiver (server).

Fixes: 5c338112e48a ("test/vsock: rework message bounds test")
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://patch.msgid.link/20260121093628.9941-3-sgarzare@redhat.com
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/vsock/vsock_test.c