Page MenuHomeFreeBSD

imgact_elf.c: unify check for phdr fitting into the first page
ClosedPublic

Authored by kib on Sep 5 2020, 7:05 PM.
Tags
None
Referenced Files
F168850373: D26339.id76743.diff
Sun, Aug 30, 11:01 AM
F168831369: D26339.id76694.diff
Sun, Aug 30, 8:53 AM
F168830465: D26339.id.diff
Sun, Aug 30, 8:47 AM
F168825517: D26339.diff
Sun, Aug 30, 8:14 AM
Unknown Object (File)
Sat, Aug 29, 6:18 AM
Unknown Object (File)
Sat, Aug 29, 6:18 AM
Unknown Object (File)
Mon, Aug 17, 10:39 PM
Unknown Object (File)
Sun, Aug 9, 8:43 PM
Subscribers

Details

Summary

Similar to the userspace rtld check.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 33415

Event Timeline

kib requested review of this revision.Sep 5 2020, 7:05 PM
This revision is now accepted and ready to land.Sep 5 2020, 7:16 PM
sys/kern/imgact_elf.c
455

hrm, actually shouldn't this be <= PAGE_SIZE - hdr->e_phoff)

kib edited the summary of this revision. (Show Details)

Unfix off by one.

P.S. Then rtld-elf/map_object.c needs to be unfixed as well.

This revision now requires review to proceed.Sep 5 2020, 8:56 PM

P.S. Then rtld-elf/map_object.c needs to be unfixed as well.

Yes, in that review I thought it was fixing an off-by-one, but now that I look at it again here I think it's correct this way (now).

This revision is now accepted and ready to land.Sep 7 2020, 7:06 PM