Page MenuHomeFreeBSD

link_elf: Program-header bounds check is non‑fatal (link_elf_load_file)
AbandonedPublic

Authored by thebugfixers_pm.me on Jun 23 2026, 8:50 PM.
Tags
None
Referenced Files
F173074741: D57788.diff
Wed, Sep 23, 9:40 AM
Unknown Object (File)
Tue, Sep 22, 3:31 AM
Unknown Object (File)
Wed, Sep 16, 9:15 AM
Unknown Object (File)
Fri, Sep 11, 12:30 AM
Unknown Object (File)
Thu, Sep 10, 5:00 PM
Unknown Object (File)
Tue, Sep 1, 11:47 AM
Unknown Object (File)
Sun, Aug 30, 12:14 PM
Unknown Object (File)
Mon, Aug 24, 5:16 PM
Subscribers

Details

Summary

Bug: Logs the error but does not return.

Fix: add error = ENOEXEC; goto out; after the link_elf_error call.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

jrtc27 requested changes to this revision.Jul 29 2026, 2:04 PM
jrtc27 added a subscriber: jrtc27.

I don't think you tested this.

sys/kern/link_elf.c
1092
This revision now requires changes to proceed.Jul 29 2026, 2:04 PM

Agree it looks like it slipped through the net. Not sure on the why/how, I will investigate that in my own time, but the right thing to do is to abandon the proposal.

Thank you for your time pointing this out.