From: linuxtestproject.agent@gmail.com
To: Pavithra <pavrampu@linux.ibm.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] hugetlb/hugemmap: add hugemmap33 to test hugetlbfs quota accounting
Date: Mon, 31 Aug 2026 09:12:42 +0000 [thread overview]
Message-ID: <20260831091243.25657-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260831041909.312922-1-pavrampu@linux.ibm.com>
Hi Pavithra,
On Aug 31, 2026, Pavithra wrote:
> hugetlb/hugemmap: add hugemmap33 to test hugetlbfs quota accounting
> for (b = a; b < a + size; b += hpage_size)
> *b = 1;
>
> tst_res(TINFO, "Testing unused quota cleanup for untouched mappings");
> run_quota_test(verify_quota_ok, hpage_size, MAP_PRIVATE);
> verify_quota_stat(1, 1, 1);
verify_quota_ok() faults and instantiates every page, so this does not test
cleanup of an untouched mapping. Use a map/unmap helper that does not access
the mapping before checking the quota counters.
> TESTPTR(mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0));
> c = TST_RET_PTR;
> if (c == MAP_FAILED) {
> if (TST_ERR == ENOMEM) {
> tst_res(TPASS | TERRNO, "COW mmap failed as expected due to quota");
No copy-on-write fault occurs because the second mapping is never accessed.
This retests private mmap reservation accounting; exercise a private write
that requires COW, or remove the COW claim.
> static void run_test(void)
> {
> tst_res(TINFO, "Testing unused quota cleanup for untouched mappings");
> run_quota_test(verify_quota_ok, hpage_size, MAP_PRIVATE);
> ...
> run_quota_test(verify_quota_ok, hpage_size, MAP_PRIVATE);
> }
>
> static struct tst_test test = {
> ...
> .test_all = run_test,
These multiple cases are manually dispatched through .test_all. Represent
them with a tcase array and use .test with .tcnt.
> +/hugetlb/hugemmap/hugemmap33
Test binaries must be ignored by a .gitignore in their own directory. Move
this entry to testcases/kernel/mem/hugetlb/hugemmap/.gitignore.
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-31 9:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-31 4:19 [LTP] [PATCH v5] hugetlb/hugemmap: add hugemmap33 to test hugetlbfs quota accounting Pavithra
2026-08-31 9:12 ` linuxtestproject.agent [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-09-12 8:22 [LTP] [PATCH v10] " Pavithra
2026-09-12 11:43 ` [LTP] " linuxtestproject.agent
2026-09-09 8:55 [LTP] [PATCH v9] " Pavithra
2026-09-09 10:30 ` [LTP] " linuxtestproject.agent
2026-09-06 15:06 [LTP] [PATCH v8] " Pavithra
2026-09-06 16:03 ` [LTP] " linuxtestproject.agent
2026-09-05 12:45 [LTP] [PATCH v7] " Pavithra
2026-09-05 15:58 ` [LTP] " linuxtestproject.agent
2026-09-02 7:51 [LTP] [PATCH v6] " Pavithra
2026-09-02 8:28 ` [LTP] " linuxtestproject.agent
2026-08-09 17:49 [LTP] [PATCH v4] " Pavithra
2026-08-09 18:42 ` [LTP] " linuxtestproject.agent
2026-08-09 16:22 [LTP] [PATCH v3] " Pavithra
2026-08-09 16:38 ` [LTP] " linuxtestproject.agent
2026-08-09 15:15 [LTP] [PATCH v3] " Pavithra
2026-08-09 15:34 ` [LTP] " linuxtestproject.agent
2026-07-17 16:02 [LTP] [PATCH] " Pavithra
2026-07-17 17:15 ` [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=20260831091243.25657-1-linuxtestproject.agent@gmail.com \
--to=linuxtestproject.agent@gmail.com \
--cc=ltp@lists.linux.it \
--cc=pavrampu@linux.ibm.com \
/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