aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86_64/dl-cet.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2024-05-31 12:26:43 +0200
committerFlorian Weimer <fweimer@redhat.com>2024-05-31 22:49:18 +0200
commitc5f7f4fc8bb857cbe07972ff1e29970b101e9995 (patch)
tree3ee7b5b3127b3be0bf34b291dd0537f207b5d679 /sysdeps/x86_64/dl-cet.c
parent90ee0d87302810f1670a1fbcf9455b883309b1de (diff)
downloadglibc-c5f7f4fc8bb857cbe07972ff1e29970b101e9995.zip
glibc-c5f7f4fc8bb857cbe07972ff1e29970b101e9995.tar.gz
glibc-c5f7f4fc8bb857cbe07972ff1e29970b101e9995.tar.bz2
x86_64: Use shadow stack for backtrace implementationfw/x86-shstk-backtrace
Test failures: FAIL: debug/tst-backtrace4 FAIL: misc/tst-sigcontext-get_pc The return address of signal handlers is not on the shadow stack.
Diffstat (limited to 'sysdeps/x86_64/dl-cet.c')
-rw-r--r--sysdeps/x86_64/dl-cet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/x86_64/dl-cet.c b/sysdeps/x86_64/dl-cet.c
index d218549..25fa6e3 100644
--- a/sysdeps/x86_64/dl-cet.c
+++ b/sysdeps/x86_64/dl-cet.c
@@ -338,8 +338,8 @@ _dl_cet_setup_features (unsigned int cet_feature)
: "=r" (ssp)
: "0" (0));
if (ssp != NULL)
- /* The caller is the top-most frame, hence the + 8. */
- THREAD_SETMEM (THREAD_SELF, header.ssp_base, ssp + 8);
+ /* The caller is the top-most frame, hence the + 1. */
+ THREAD_SETMEM (THREAD_SELF, header.ssp_base, ssp + 1);
cet_feature = dl_cet_get_cet_status ();
if (cet_feature != 0)