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 <[email protected]>

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/[email protected]?part=2

Reply via email to