]> git.ipfire.org Git - thirdparty/glibc.git/commit
aarch64: Add GCS support to longjmp
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 23 Feb 2023 08:54:04 +0000 (08:54 +0000)
committerYury Khrustalev <yury.khrustalev@arm.com>
Thu, 10 Oct 2024 12:40:34 +0000 (13:40 +0100)
commit839197fdeba1d1451fe23e00cf1692cb97ba746c
tree2120ad61224df5156cf64e9621d707654b06726e
parentd813260d17cad44ef33400863d218a3e6b1fe7a9
aarch64: Add GCS support to longjmp

This implementations ensures that longjmp across different stacks
works: it scans for GCS cap token and switches GCS if necessary
then the target GCSPR is restored with a GCSPOPM loop once the
current GCSPR is on the same GCS.

This makes longjmp linear time in the number of jumped over stack
frames when GCS is enabled.
sysdeps/aarch64/__longjmp.S
sysdeps/aarch64/setjmp.S