[LTP] hugetlb/hugeshmat05: use size_t for hugepage allocation sizes

linuxtestproject.agent@gmail.com linuxtestproject.agent@gmail.com
Tue Apr 28 16:39:54 CEST 2026


Hi Sayali,

On Tue, 28 Apr 2026 17:27:29 +0530, Sayali Patil wrote:
> hugetlb/hugeshmat05: use size_t for hugepage allocation sizes

Reviewed-by: LTP AI Reviewer <ltp-ai@noreply.github.com>

Pre-existing issues noticed in the surrounding code (not introduced
by this patch):

- hugeshmat05.c:47 — shmget() should use SAFE_SHMGET()
- hugeshmat05.c:51 — shmat() should use SAFE_SHMAT()
- hugeshmat05.c:61 — shmdt() should use SAFE_SHMDT()
- hugeshmat05.c:62,66 — shmctl() should use SAFE_SHMCTL()

---
Note:

Our agent completed the review of the patch. 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