glibc/sysdeps/i386/nptl
H.J. Lu cba595c350 x86: Add feature_1 to tcbhead_t [BZ #22563]
On x86, padding in struct __jmp_buf_tag is used for shadow stack pointer
to support Shadow Stack in Intel Control-flow Enforcemen Technology.
cancel_jmp_buf has been updated to include saved_mask so that it is as
large as struct __jmp_buf_tag.  We must suport the old cancel_jmp_buf
in existing binaries.  Since symbol versioning doesn't work on
cancel_jmp_buf, feature_1 is added to tcbhead_t so that setjmp and
longjmp can check if shadow stack is enabled.  NB: Shadow stack is
enabled only if all modules are shadow stack enabled.

	[BZ #22563]
	* sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
	* sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
	* sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
	* sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
	to feature_1.
2017-12-19 02:45:34 -08:00
..
Makefile Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
pthread_spin_init.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
pthread_spin_lock.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
pthread_spin_unlock.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
pthread-offsets.h nptl: Add tests for internal pthread_mutex_t offsets 2017-11-07 09:48:28 -02:00
pthreaddef.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tcb-offsets.sym x86: Add feature_1 to tcbhead_t [BZ #22563] 2017-12-19 02:45:34 -08:00
tls.h x86: Add feature_1 to tcbhead_t [BZ #22563] 2017-12-19 02:45:34 -08:00