[LTP] gethostname02: Accept EOVERFLOW on alpha

linuxtestproject.agent@gmail.com linuxtestproject.agent@gmail.com
Wed Jun 3 06:09:05 CEST 2026


Hi panzhe,

On Wed, 03 Jun 2026 09:49:33 +0800, panzhe wrote:
> gethostname02: Accept EOVERFLOW on alpha

All good. Reviewed.

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

- testcases/kernel/syscalls/gethostname/gethostname02.c in
  verify_gethostname() -- if the hostname is empty, `real_length`
  is 0 and `gethostname(hostname, real_length - 1)` passes -1 as
  len, which returns EINVAL rather than ENAMETOOLONG or EOVERFLOW.

---
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