[all-commits] [llvm/llvm-project] d7cbfc: [ELF][AArch64] Fix potentially corrupted section c...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Fri Aug 5 18:25:05 PDT 2022
Author: Fangrui Song <i at maskray.me>
Date: 2022-08-05 (Fri, 05 Aug 2022)
[ELF][AArch64] Fix potentially corrupted section content for PAC
D74537 introduced a bug: if `(config->andFeatures & GNU_PROPERTY_AARCH64_FEATURE_1_PAC) != 0`
with -z pac-plt unspecified, we incorrectly use AArch64BtiPac, whose writePlt will make
out-of-bounds write after the .plt section. This is often benign because the
output section after .plt will usually overwrite the content.
This is very difficult to test without D131247 (Parallelize writes of different OutputSections).
More information about the All-commits