Re: lapi/prctl: add more fallback definitions
[email protected] Sat, 1 Aug 2026 11:27:23 +0000
| Newsgroups | gmane.linux.ltp |
|---|---|
| Message-ID | <[email protected]> |
Hi Andrea,
On Aug 1, 2026, Andrea Cervesato wrote:
> lapi/prctl: add more fallback definitions
--- [PATCH 2/2] ---
> + static const int try_sizes[] = {
> + MAX_AUXV_QWORDS,
> + MAX_AUXV_QWORDS - 4,
> + MAX_AUXV_QWORDS - 8
> + };
> [...]
> + valid_auxv_size = try_sizes[i] * sizeof(uint64_t);
Could these sizes either use the native word size, or could the test be
restricted to the 64-bit architectures on which the reproducer works?
On i386, the smallest attempted size is 320 bytes, but the kernel's
saved_auxv is only 56 * sizeof(unsigned long), or 224 bytes.
prctl_set_mm_map() therefore rejects all three attempts, and setup reports
TBROK. With no supported_archs restriction, the cve runtest entry runs this
test on 32-bit x86.
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