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
F165229422: D57788.diff
Fri, Aug 7, 12:38 AM
F165221515: D57788.diff
Thu, Aug 6, 10:56 PM
Unknown Object (File)
Tue, Aug 4, 9:19 PM
Unknown Object (File)
Thu, Jul 30, 10:42 AM
Unknown Object (File)
Tue, Jul 28, 3:57 PM
Unknown Object (File)
Jul 5 2026, 7:23 PM
Unknown Object (File)
Jul 5 2026, 7:20 PM
Unknown Object (File)
Jul 5 2026, 10:57 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.