]> 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)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 8 Jul 2024 08:41:44 +0000 (09:41 +0100)
commit606d7c2b096da857996f93ce731220580e54a9d2
tree1ed68e6712fe2cb77157cc280d66a5ef2ae27ee2
parent297eadaa5479e7ad9c7ff1d4cb620e9bcf751d6d
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