diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-21 19:49:50 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-21 19:49:50 +0200 |
commit | f79f2065817e080f65f3c3a2fee966f5a97f1746 (patch) | |
tree | 1ee9c2bccdd0360bf9ef31e1cc7b662abcac32a5 /sysdeps/nptl/pthread-functions.h | |
parent | 5715c29e91076800418833f2196f2082f439da75 (diff) | |
download | glibc-f79f2065817e080f65f3c3a2fee966f5a97f1746.tar.gz glibc-f79f2065817e080f65f3c3a2fee966f5a97f1746.tar.xz glibc-f79f2065817e080f65f3c3a2fee966f5a97f1746.zip |
nptl: Move legacy unwinding implementation into libc
It is still used internally. Since unwinding is now available unconditionally, avoid indirect calls through function pointers loaded from the stack by inlining the non-cancellation cleanup code. This avoids a regression in security hardening. The out-of-line __libc_cleanup_routine implementation is no longer needed because the inline definition is now static __always_inline. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/nptl/pthread-functions.h')
-rw-r--r-- | sysdeps/nptl/pthread-functions.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sysdeps/nptl/pthread-functions.h b/sysdeps/nptl/pthread-functions.h index 97a5c48939..4268084b66 100644 --- a/sysdeps/nptl/pthread-functions.h +++ b/sysdeps/nptl/pthread-functions.h @@ -57,10 +57,6 @@ struct pthread_functions int (*ptr___pthread_key_create) (pthread_key_t *, void (*) (void *)); void *(*ptr___pthread_getspecific) (pthread_key_t); int (*ptr___pthread_setspecific) (pthread_key_t, const void *); - void (*ptr__pthread_cleanup_push_defer) (struct _pthread_cleanup_buffer *, - void (*) (void *), void *); - void (*ptr__pthread_cleanup_pop_restore) (struct _pthread_cleanup_buffer *, - int); #define HAVE_PTR_NTHREADS unsigned int *ptr_nthreads; void (*ptr___pthread_unwind) (__pthread_unwind_buf_t *) |