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
F166332877: D57788.diff
Wed, Aug 12, 11:31 PM
F166267025: D57788.id180452.diff
Wed, Aug 12, 3:17 PM
Unknown Object (File)
Mon, Aug 10, 12:01 PM
Unknown Object (File)
Mon, Aug 10, 11:04 AM
Unknown Object (File)
Mon, Aug 10, 12:30 AM
Unknown Object (File)
Sat, Aug 8, 4:04 PM
Unknown Object (File)
Sat, Aug 8, 1:40 PM
Unknown Object (File)
Sat, Aug 8, 5:33 AM
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.Wed, Jul 29, 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.Wed, Jul 29, 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.