]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
imgact_elf: check that the alignment of PT_LOAD segment is power of two
authorKonstantin Belousov <kib@FreeBSD.org>
Thu, 9 Dec 2021 15:27:24 +0000 (17:27 +0200)
committerKonstantin Belousov <kib@FreeBSD.org>
Sun, 12 Dec 2021 14:28:38 +0000 (16:28 +0200)
commit36df8f540fa3802e3d7ccf9d71a13750a72b33ff
treecb9747ec647d798f8927f4dae6ad081a411a8eed
parent714d6d09b57e9cf98a5c3f45f869c08be5454849
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
sys/kern/imgact_elf.c