From: linuxtestproject.agent@gmail.com
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] sockets/xfrm02: Add ESP-in-TCP page cache corruption test
Date: Wed, 13 May 2026 19:01:50 +0000 [thread overview]
Message-ID: <20260513190150.3890-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260513-fragnesia-v3-1-50417c8a1b47@suse.com>
Hi Andrea,
On Wed, 13 May 2026, Andrea Cervesato wrote:
> sockets/xfrm02: Add ESP-in-TCP page cache corruption test
> + /* Let the espintcp strparser process buffered ESP data */
> + usleep(30000);
Sleep-based synchronization is not allowed. Use an event-based mechanism
(e.g. poll the accepted socket for readability) instead of a fixed sleep.
[...]
> + splice(pipefd[0], NULL, cli_fd, NULL, DATA_SIZE, 0);
SAFE_SPLICE() exists; use it, or wrap in TEST() if failure on patched kernels
is expected. The return value must not be silently discarded.
[...]
> +static int srv_fd = -1;
[...]
> + SAFE_CLOSE(srv_fd);
[...]
> + if (srv_fd != -1)
> + SAFE_CLOSE(srv_fd);
srv_fd and file_fd are closed inside try_corrupt()/run() but never reset to
-1, so cleanup() calls SAFE_CLOSE() on already-closed fds (EBADF). Assign -1
after each SAFE_CLOSE() on these globals.
---
Note:
Our agent completed the review of the patch. The full review can be
found at: https://github.com/linux-test-project/ltp-agent/actions/runs/25819929958
The agent can sometimes produce false positives although often its findings
are genuine. If you find issues with the review, please comment this email
or ignore the suggestions.
Regards,
LTP AI Reviewer
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-05-13 19:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-13 17:46 [LTP] [PATCH v3] sockets/xfrm02: Add ESP-in-TCP page cache corruption test Andrea Cervesato
2026-05-13 19:00 ` Cyril Hrubis
2026-05-13 19:01 ` linuxtestproject.agent [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-05-13 15:35 [LTP] [PATCH v2] " Andrea Cervesato
2026-05-13 16:29 ` [LTP] " linuxtestproject.agent
2026-05-13 16:42 ` Martin Doucha
2026-05-13 14:36 [LTP] [PATCH] " Andrea Cervesato
2026-05-13 16:27 ` [LTP] " linuxtestproject.agent
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=20260513190150.3890-1-linuxtestproject.agent@gmail.com \
--to=linuxtestproject.agent@gmail.com \
--cc=andrea.cervesato@suse.de \
--cc=ltp@lists.linux.it \
/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