about summary refs log tree commit diff
path: root/iconvdata/cp737.h
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2023-04-04 10:42:21 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2024-07-08 09:41:44 +0100
commit44dd695c702bab0bf987812cc8eba0f5d3377c48 (patch)
treeffe8b849c6b6562aef9311ddb2fe7540c2df27a9 /iconvdata/cp737.h
parentbabac7136588fc7c79fc46ab88874c7c26bb4d95 (diff)
downloadglibc-44dd695c702bab0bf987812cc8eba0f5d3377c48.tar.gz
glibc-44dd695c702bab0bf987812cc8eba0f5d3377c48.tar.xz
glibc-44dd695c702bab0bf987812cc8eba0f5d3377c48.zip
aarch64: Add GCS support for makecontext
Changed the makecontext logic: previously the first setcontext jumped
straight to the user callback function and the return address is set
to __startcontext. This does not work when GCS is enabled as the
integrity of the return address is protected, so instead the context
is setup such that setcontext jumps to __startcontext which calls the
user callback (passed in x20).

The map_shadow_stack syscall is used to allocate a suitably sized GCS
(which includes some reserved area to account for altstack signal
handlers and otherwise supports maximum number of 16 byte aligned
stack frames on the given stack) however the GCS is never freed as
the lifetime of ucontext and related stack is user managed.
Diffstat (limited to 'iconvdata/cp737.h')
0 files changed, 0 insertions, 0 deletions