[Bug 298154] imgact_elf: Invalid ELF fails with a bogus Input/output error (EIO) error when no actual IO error has occurred

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 04 Sep 2026 17:56:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298154

--- Comment #3 from Yuri Victorovich <yuri@freebsd.org> ---
(In reply to Konstantin Belousov from comment #1)

EIO indicates disk error and there was no disk error at all.

ENOEXEC (Exec format error) is a more appropriate error to return when anything
in the ELF file is wrong on non-conformant.

The manpage execve(2) should be adjusted accordingly.

-- 
You are receiving this mail because:
You are the assignee for the bug.