]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 22 Jan 2026 14:41:33 +0000 (15:41 +0100)
commit0a98de80136968bab7db37b16282b37f044694d3
treef99fe57e477e3fb2aa6d423b67aa4c728719b7d9
parent3ef3d52a1a9860d094395c7a3e593f3aa26ff012
vsock/test: fix seqpacket message bounds test

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>
tools/testing/vsock/vsock_test.c