[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 13:40:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298154

--- Comment #1 from Konstantin Belousov <kib@FreeBSD.org> ---
I do not understand your problem.  The malformed binary was not executed.  EIO
was
returned from the execve(2) syscall.

Sometimes, in our ELF image activator, we output some complain to the process'
control terminal giving the hint what is wrong with the binary, but not always.
This case is where we do not (the file system or sf buf returned an error).

Eventually, it might be that filesystems grow extended errors enough to cover
your
case, but all of this is just a courtesy.  Functionally the present behavior is
correct.

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