[LTP] hugetlb/hugemmap: add hugemmap33 to test hugetlbfs quota accounting
linuxtestproject.agent@gmail.com
linuxtestproject.agent@gmail.com
Sun Sep 6 18:03:41 CEST 2026
Hi Pavithra,
On 2026-09-06, Pavithra wrote:
> hugetlb/hugemmap: add hugemmap33 to test hugetlbfs quota accounting
> TST_EXP_FAIL_PTR_VOID(mmap(NULL, size, PROT_READ | PROT_WRITE, mmap_flags, fd, 0),
> ENOMEM, "mmap over quota");
> if (!TST_PASS)
> SAFE_MUNMAP(TST_RET_PTR, size);
An unexpected errno also leaves TST_PASS false but TST_RET_PTR equal to
MAP_FAILED, so SAFE_MUNMAP() reports TBROK and obscures the original failure.
Only unmap a successful mapping; the same pattern below needs the same fix.
> {"linux-git", "a1e78772d72b"},
Use the full commit ID:
a1e78772d72b2616ed20e54896e68e0e7044854e.
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
More information about the ltp
mailing list