diff options
author | Florian Weimer <fweimer@redhat.com> | 2024-05-31 12:26:43 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2024-05-31 22:49:18 +0200 |
commit | c5f7f4fc8bb857cbe07972ff1e29970b101e9995 (patch) | |
tree | 3ee7b5b3127b3be0bf34b291dd0537f207b5d679 /sysdeps/x86_64/dl-cet.c | |
parent | 90ee0d87302810f1670a1fbcf9455b883309b1de (diff) | |
download | glibc-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.c | 4 |
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) |