diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-06-26 02:11:36 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-07-03 01:41:25 +0200 |
commit | f214d0723240cbbe0f1ccb90af8d1b0bb095837f (patch) | |
tree | a8dc6f3b100c338028cda0cc56af429beca53be8 /rumpdisk/main.c | |
parent | 005212e56eb02f01ff732eaa44b360eb8e126d03 (diff) | |
download | hurd-f214d0723240cbbe0f1ccb90af8d1b0bb095837f.tar.gz hurd-f214d0723240cbbe0f1ccb90af8d1b0bb095837f.tar.bz2 hurd-f214d0723240cbbe0f1ccb90af8d1b0bb095837f.zip |
exec: On 64-bit, map lower 4 GB inaccessible for PIEs
We want to map the whole lower 4 GB of address space inaccessible to
catch accidental pointer truncation. We can only do this when the
executable (as well as the interpreter, if any) is compiled as PIC/PIE,
since otherwise we would violate the ABI requirement. Fortunately most
distributions have already switched to using PIE by default, so this
should not be an issue.
Message-Id: <20230625231137.403096-3-bugaevc@gmail.com>
Diffstat (limited to 'rumpdisk/main.c')
0 files changed, 0 insertions, 0 deletions