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
Unknown Object (File)
Sep 19 2023, 10:43 AM
Unknown Object (File)
Sep 11 2023, 1:22 PM
Unknown Object (File)
Sep 10 2023, 12:45 PM
Unknown Object (File)
Aug 27 2023, 2:36 PM
Unknown Object (File)
Jul 15 2023, 2:21 AM
Unknown Object (File)
Jul 12 2023, 4:04 PM
Unknown Object (File)
Jul 10 2023, 4:23 PM
Unknown Object (File)
Jul 8 2023, 12:42 PM
Subscribers

Details

Summary

Similar to the userspace rtld check.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #76694)

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