From: sashiko-bot@kernel.org
To: "Ren Wei" <weir@nebusec.ai>, virtualization@lists.linux.dev
Cc: "Michael S. Tsirkin" <mst@redhat.com>,
"Eugenio Perez" <eperezma@redhat.com>
Subject: Re: [PATCH net 2/2] vsock/test: add stream MSG_WAITALL receive timeout test
Date: Sat, 28 Nov 2026 05:19:34 +0000 [thread overview]
Message-ID: <sashiko-outbox-238470@kernel.org> (raw)
In-Reply-To: <503c1d5538f5b41f8eda756f5ea4491f0bd44518.1795591531.git.caoruide123@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] vsock/test: inserting test in test_cases[] shifts IDs and
breaks vmtest.sh
--
commit 3fdae506954ede6076a29bc4c547728169cd474c
Author: Ruide Cao <caoruide123@gmail.com>
vsock/test: add stream MSG_WAITALL receive timeout test
This commit adds a SOCK_STREAM receive timeout test that verifies
recv(MSG_WAITALL) enforces a cumulative SO_RCVTIMEO timeout across
partial drip-fed reads.
> diff --git a/tools/testing/vsock/vsock_test.c b/tools/testing/vsock/vsock_test.c
> index 10b9074fb87f7..868792f7729cf 100644
> --- a/tools/testing/vsock/vsock_test.c
> +++ b/tools/testing/vsock/vsock_test.c
[ ... ]
> @@ -2739,6 +2846,11 @@ static struct test_case test_cases[] = {
> .run_client = test_seqpacket_timeout_client,
> .run_server = test_seqpacket_timeout_server,
> },
> + {
> + .name = "SOCK_STREAM MSG_WAITALL timeout",
> + .run_client = test_stream_timeout_waitall_client,
> + .run_server = test_stream_timeout_waitall_server,
> + },
> {
> .name = "SOCK_SEQPACKET invalid receive buffer",
> .run_client = test_seqpacket_invalid_rec_buffer_client,
[Severity: Medium]
Does inserting this entry in the middle of test_cases[] shift the numeric
test IDs and break tools/testing/selftests/vsock/vmtest.sh?
test_ns_same_local_host_connect_to_local_vm_ok() in vmtest.sh passes
--skip=29 to skip "SOCK_STREAM transport release use-after-free":
tools/testing/selftests/vsock/vmtest.sh:test_ns_same_local_host_connect_to_local_vm_ok() {
...
# virtio-vsock (G2H) does not support local namespaces, so skip test 29
# (SOCK_STREAM transport release use-after-free) which requires a
# local listener in the same namespace.
host_vsock_test "${ns}" "127.0.0.1" "${VSOCK_CID}" "${TEST_HOST_PORT}" --skip=29
...
}
Inserting the new test here shifts that test from index 29 to 30, so
--skip=29 skips "SOCK_STREAM MSG_ZEROCOPY leak completion skb" instead
and runs the incompatible test. Appending the new entry at the end of
test_cases[] keeps the existing test IDs stable.
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1795587333.git.caoruide123@gmail.com?part=2
next prev parent reply other threads:[~2026-11-28 5:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 5:19 [PATCH net 0/2] vsock: preserve receive timeout across partial reads Ren Wei
2026-11-27 5:19 ` [PATCH net 1/2] " Ren Wei
2026-11-29 6:34 ` Jiaming Fan
2026-11-27 5:19 ` [PATCH net 2/2] vsock/test: add stream MSG_WAITALL receive timeout test Ren Wei
2026-11-28 5:19 ` sashiko-bot [this message]
2026-11-28 5:56 ` netdev-bot+sashiko
2026-11-29 6:34 ` Jiaming Fan
2026-11-28 5:19 ` [PATCH net 0/2] vsock: preserve receive timeout across partial reads sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-238470@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=eperezma@redhat.com \
--cc=mst@redhat.com \
--cc=sashiko-reviews@lists.linux.dev \
--cc=virtualization@lists.linux.dev \
--cc=weir@nebusec.ai \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox