From nobody Mon Feb 9 07:20:42 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 B77E147DFA7 for ; Wed, 21 Jan 2026 09:36:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768988208; cv=none; b=es1FhglEV6Mb0nCZVbt2YZIT5LPda+tsGIqYhp4CKpPb6+SGhHX1SMM1kUKunOe5lzDNrcEH3C0ZCSZ62ML79YIE0gw9GxgaitDDPvsP8S/7sHz+4Al4wTaNEqfR7SV6VPsa3DGma68G2mLdUd+eiN9TC7ltDZcaLtCZn+/Scck= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768988208; c=relaxed/simple; bh=PcAOc3r6px2QPynOOTZs4aSgXDaZ3NGUJGTa4O51yqg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SrVR+hto46K7PmzutKRqniILV5rahyxdb/g2nbE7YcfmVWCuZGoeNKs2ewK/FYXb8EqmhFI+nn8Yy1DDYBPp7EM1sSljDXUgDhNeQZw1YD5p4kLatr55xWoXkMZ1zn1w3/1mEBsag7uwlPfxxXaeTIfmCNqYFFvGSv73ZOdZtD0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ITou7ufz; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=jr0qjS68; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ITou7ufz"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="jr0qjS68" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1768988205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6zDKTURxMpN1giCRjW7fiv4qni6ys721eKds24IdkTk=; b=ITou7ufzLDLpgwlVKRe57PAI4bzmFefP7nf27m17TkKArI68+ekv/qx6J2ORCpcJVKQ4oB hnXQEHZUlKTbvVeX3EWMptWBVGw9jmFuzIEdqAurMnCP0NqJcp108EjVeDIVnBfDzJWcTc BSezKEzhxjJi6885or+5/m8yrF8NJP0= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-99-0AmalRS4OP2_LpOEWG1-2Q-1; Wed, 21 Jan 2026 04:36:43 -0500 X-MC-Unique: 0AmalRS4OP2_LpOEWG1-2Q-1 X-Mimecast-MFC-AGG-ID: 0AmalRS4OP2_LpOEWG1-2Q_1768988202 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-4803e8b6007so10777555e9.0 for ; Wed, 21 Jan 2026 01:36:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1768988202; x=1769593002; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6zDKTURxMpN1giCRjW7fiv4qni6ys721eKds24IdkTk=; b=jr0qjS68OTXX6cjhVTpCkO7OLdYWpUuRWINo10x7ukf2qK1cR/ccKfpX/RSJ4NVG0z 7I/683TLPuLTd1UWqbfxATGk3754DZnh8OwvEx4ch1QdNCqhRE84n5HOtkr7lWWrqiEC qSyExrykmqjoMSX46zMYGpUFY3EXgGj1Y2t6NbApKnItpv/5RgrkBC7FN3HCj/BLolT6 8cMXnna2YXmKzp1VX4etTRfnk/4bHt9JintAMr2IB1GJvTBhWDsLB5MoFlC2Nz8PYxBf nX2HwebYUxxDUit50txv8Q2FJ/23A3lB97gq0dlaRzffEqM+6364tflpL8RNraeV+WjT +u6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768988202; x=1769593002; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=6zDKTURxMpN1giCRjW7fiv4qni6ys721eKds24IdkTk=; b=VAWrojZV6ClDmJMkr+i8k+XtHZXderZROGzMtoypejT5ukl6pGreC4JzDn+2f/27NL s0ULjAoUkOEZI+WaBSYTA6ieDs0kYb35O4YfM5q2uhfKvc83yAjG7mIjIA62OdJQquux 7nzA5zZqYPvosgTz2XcIh3DnzAlGSh+FzZ91zPnWsykjxb/yWt80zW2/+fQMcxt/dwZP JxP7IohfqP4YUO2a1Ih7HEImBJ1TJ96FXt4smpt0x1tHhlgpyQu6/6sBk3OEtp/BqCQl w7FE2MhNmv8YvnbHNSwbXmisZg2pGYmebK6Vw7tJsifCe5NpLU2yh8EmJE1+EKrWxcKs 2VWA== X-Forwarded-Encrypted: i=1; AJvYcCUadFQEaVq9VaPQwyP4HQqL/0jzOgCuE6YzqZQdi5VXRww7z5aYDn8XBzGwJ6Bf/SEI7ftqrncP+zuvuWU=@vger.kernel.org X-Gm-Message-State: AOJu0YwSyGoeW1abumpJAZrAINaxOB7vL1iTuMb9UatnkJKVG1/H3eBB UoG5Y4nCGUIZkwEwCpCIHDMbj1b+rhA4BfXtk8uZulYoczbj6t51/h0hbaImmnNhbVJeh3+GbXZ QhOzwQmQfR7mtmseJTz60MH6p5KyotRITIA0tlub2e70411pRdGlAsTM9o/AdX4e8sA== X-Gm-Gg: AZuq6aLFp7LIDmJELA1zji2n5rNrIr2reA6uYJuzuhK+ggUKMHfMMD/rURZDhuEcHbz f4noJij9J33S9aQ/zfUX1XIyqljuqPqNchtDREUGrJlnl/9R4dFnItj9fB0BD/UcPxwNMWlgMoH HmL0QGuiD4Z349hxCpeNZ0YqUWOF0GycNsQGPH18gA5QQULZC3vOuHcFz5/JejjDDXV76QLYJjZ Xt+S2yIRaCDg9876olwz+fo31rmFGN9o8tZv2vVX56Zvp//E/+STCGYyAlhBqxjV+XOMgvohDdH H9GOvAztcZjhilwKvpOjAjJ3ZmcCurnEFtR/driavzNTmGdHClCBJv1LMOBZuqLsm+bMrnXHXme 4stC9Rdj4OJYKutsAiZ0FEHEY7h4Rf0RBIGMJVL7eHJXZFkkcF1QbjkCrEvEM X-Received: by 2002:a05:600c:3e0d:b0:479:3a86:dc1c with SMTP id 5b1f17b1804b1-4803e803c1amr77560815e9.36.1768988202218; Wed, 21 Jan 2026 01:36:42 -0800 (PST) X-Received: by 2002:a05:600c:3e0d:b0:479:3a86:dc1c with SMTP id 5b1f17b1804b1-4803e803c1amr77560335e9.36.1768988201797; Wed, 21 Jan 2026 01:36:41 -0800 (PST) Received: from stex1.redhat.com (host-82-53-134-58.retail.telecomitalia.it. [82.53.134.58]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47f42907141sm355976705e9.9.2026.01.21.01.36.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jan 2026 01:36:40 -0800 (PST) From: Stefano Garzarella To: netdev@vger.kernel.org Cc: Simon Horman , Eric Dumazet , "Michael S. Tsirkin" , Arseniy Krasnov , "David S. Miller" , Stefano Garzarella , virtualization@lists.linux.dev, Paolo Abeni , Jakub Kicinski , Stefan Hajnoczi , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Claudio Imbrenda , Jason Wang , Xuan Zhuo , =?UTF-8?q?Eugenio=20P=C3=A9rez?= , Asias He Subject: [PATCH net v6 2/4] vsock/test: fix seqpacket message bounds test Date: Wed, 21 Jan 2026 10:36:26 +0100 Message-ID: <20260121093628.9941-3-sgarzare@redhat.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260121093628.9941-1-sgarzare@redhat.com> References: <20260121093628.9941-1-sgarzare@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Stefano Garzarella 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 --- tools/testing/vsock/vsock_test.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/testing/vsock/vsock_test.c b/tools/testing/vsock/vsock_t= est.c index 27e39354499a..668fbe9eb3cc 100644 --- a/tools/testing/vsock/vsock_test.c +++ b/tools/testing/vsock/vsock_test.c @@ -351,6 +351,7 @@ static void test_stream_msg_peek_server(const struct te= st_opts *opts) =20 static void test_seqpacket_msg_bounds_client(const struct test_opts *opts) { + unsigned long long sock_buf_size; unsigned long curr_hash; size_t max_msg_size; int page_size; @@ -363,6 +364,16 @@ static void test_seqpacket_msg_bounds_client(const str= uct test_opts *opts) exit(EXIT_FAILURE); } =20 + sock_buf_size =3D SOCK_BUF_SIZE; + + setsockopt_ull_check(fd, AF_VSOCK, SO_VM_SOCKETS_BUFFER_MAX_SIZE, + sock_buf_size, + "setsockopt(SO_VM_SOCKETS_BUFFER_MAX_SIZE)"); + + setsockopt_ull_check(fd, AF_VSOCK, SO_VM_SOCKETS_BUFFER_SIZE, + sock_buf_size, + "setsockopt(SO_VM_SOCKETS_BUFFER_SIZE)"); + /* Wait, until receiver sets buffer size. */ control_expectln("SRVREADY"); =20 --=20 2.52.0