From: linuxtestproject.agent@gmail.com
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] mremap01: Convert to new API
Date: Fri, 7 Aug 2026 08:19:52 +0000 [thread overview]
Message-ID: <20260807081952.9062-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260807-rewrite_mremap_testing_suite-v2-1-1760ae8e3b8b@suse.com>
Hi Andrea,
On Fri, 7 Aug 2026, Andrea Cervesato wrote:
> mremap01: Convert to new API
--- [PATCH 1/6] ---
> if (verify_file())
> tst_res(TFAIL, "mremap()'d region did not sync to the file");
> else
> tst_res(TPASS, "Functionality of mremap() is correct");
Could verify_file() report the final result directly instead of returning
test status to run()? It already emits TFAIL for a mismatched byte, so the
current failure path reports a second TFAIL at the call site.
--- [PATCH 3/6] ---
> * - Obtain an unmapped address via ``tst_get_bad_addr()``.
> bad_addr = tst_get_bad_addr(NULL);
Could this create and unmap a memsize-sized range instead?
tst_get_bad_addr() maps one PROT_NONE page and returns that still-mapped
page. Thus old_address itself is mapped, and EFAULT depends on old_size
extending beyond it, contrary to the description and commit message.
--- [PATCH 4/6] ---
> -LTPLIBS = ipc
> +LTPLIBS = newipc
> -mremap04: LTPLDLIBS = -lltpipc
> +mremap04: LTPLDLIBS = -lltpnewipc
Could both IPC library assignments be removed? The rewritten test removes
all SysV IPC usage, does not include tst_newipc.h or call GETIPCKEY(), and no
other test in this directory uses either IPC library.
The commit message also says that the new test uses SysV shared memory and
GETIPCKEY(). Could it describe the actual anonymous mmap rewrite instead?
--- [PATCH 5/6] ---
> Convert the mremap05 test case from the legacy LTP API to the new
> tst_test API.
Could the body explain why this rewrite removes the two successful
MREMAP_FIXED cases from mremap05 and splits them into a separate test? The
current text only restates the subject and leaves the coverage change
unexplained.
--- [PATCH 6/6] ---
> if (ret != new_address)
> tst_res(TFAIL, "%s: ret %p, expected %p", tc->msg, ret, new_address);
> else if (check_pattern(tc->msg, ret, tc->new_pages) == 0)
> tst_res(TPASS, "%s", tc->msg);
Could check_pattern() report the final TPASS or TFAIL itself, or could the
content check remain in run()? It currently emits TFAIL and propagates a
status back to run() to decide whether to emit TPASS.
Verdict - Needs revision
---
Note:
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-08-07 8:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-07 6:59 [LTP] [PATCH v2 0/6] Rewrite mremap testing suite Andrea Cervesato
2026-08-07 6:59 ` [LTP] [PATCH v2 1/6] mremap01: Convert to new API Andrea Cervesato
2026-08-07 8:19 ` linuxtestproject.agent [this message]
2026-08-07 6:59 ` [LTP] [PATCH v2 2/6] mremap02: " Andrea Cervesato
2026-08-07 6:59 ` [LTP] [PATCH v2 3/6] mremap03: " Andrea Cervesato
2026-08-07 6:59 ` [LTP] [PATCH v2 4/6] mremap04: " Andrea Cervesato
2026-08-07 8:06 ` Cyril Hrubis
2026-08-07 6:59 ` [LTP] [PATCH v2 5/6] mremap05: " Andrea Cervesato
2026-08-07 9:17 ` Cyril Hrubis
2026-08-07 6:59 ` [LTP] [PATCH v2 6/6] mremap08: Extract test from mremap05 Andrea Cervesato
2026-08-07 9:39 ` Cyril Hrubis
-- strict thread matches above, loose matches on Subject: below --
2026-08-07 12:17 [LTP] [PATCH v3 1/7] mremap01: Convert to new API Andrea Cervesato
2026-08-07 13:05 ` [LTP] " linuxtestproject.agent
2026-07-21 12:41 [LTP] [PATCH 1/5] " Andrea Cervesato
2026-07-21 13:53 ` [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=20260807081952.9062-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.