[LTP] hugemmap/hugemmap41: Migrate ptrace-write-hugepage from libhugetlbfs

linuxtestproject.agent@gmail.com linuxtestproject.agent@gmail.com
Sat Aug 8 17:30:58 CEST 2026


Hi Pavithra,

On Sat, 08 Aug 2026, Pavithra wrote:
> hugemmap/hugemmap41: Migrate ptrace-write-hugepage from libhugetlbfs

> +#define CONST	0xdeadbeefL
> [...]
> +	TST_EXP_EQ_LI(TST_RET, CONST);

Could this comparison preserve unsigned-long semantics? On 32-bit targets,
CONST is an unsigned long, while PTRACE_PEEKDATA returns the same bit pattern
as a negative signed long. TST_EXP_EQ_LI() converts them separately to signed
long long, producing -559038737 and 3735928559, so every successful peek is
reported as TFAIL.

> +/hugetlb/hugemmap/hugemmap41

Could this entry be placed in a .gitignore under
testcases/kernel/mem/hugetlb/hugemmap/? New test binaries should be ignored
in their own test directory rather than in a parent .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


More information about the ltp mailing list