HomeFreeBSD

imgact_elf: check that the alignment of PT_LOAD segment is power of two

Description

imgact_elf: check that the alignment of PT_LOAD segment is power of two

and stop recalculating alignment for PIE base, which was off by one
power of two.

Suggested and reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D33359

Details

Provenance
kibAuthored on Dec 9 2021, 3:27 PM
Differential Revision
Restricted Differential Revision
Parents
rG714d6d09b57e: imgact_elf: exclude invalid alignment requests
Branches
Unknown
Tags
Unknown