[LTP] arch_prctl: add ARCH_GET_FS, ARCH_GET_GS tests
linuxtestproject.agent@gmail.com
linuxtestproject.agent@gmail.com
Sat Oct 10 11:35:39 CEST 2026
Hi Dmitry,
On Sat, 10 Oct 2026, Dmitry Chestnykh wrote:
> arch_prctl: add ARCH_GET_FS, ARCH_GET_GS tests
> +++ b/testcases/kernel/syscalls/arch_prctl/arch_prctl02.c
> + if (gs == 0) {
> + unsigned long long test_gs = 0xabababab;
Medium: When the original GS base is zero, both samples fit in 32 bits,
so the test misses truncation in ARCH_GET_GS. A probe masking its result
to 32 bits still reported all tests passed. Use a canonical user-space
base with nonzero upper 32 bits, such as 0x1234ababababULL.
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