From 2e6c45c59bcd40f1ae8466cbd32f4d263ff45619 Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Mon, 26 Dec 2016 10:09:06 +0100 Subject: Do not stack-protect sigreturn stubs [BZ #7065] These are called from the kernel with the stack at a carefully- chosen location so that the stack frame can be restored: they must not move the stack pointer lest garbage be restored into the registers. We explicitly inhibit protection for SPARC and for signal/sigreturn.c: other arches either define their sigreturn stubs in .S files, or (i386, x86_64, mips) use macros expanding to top-level asm blocks and explicit labels in the text section to mock up a "function" without telling the compiler that one is there at all. --- ChangeLog | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 99749a5b75..edf85237ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2016-12-26 Nick Alcock + + [BZ #7065] + * signal/Makefile (CFLAGS-sigreturn.c): Use $(no-stack-protector). + * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: + (__rt_sigreturn_stub): Use inhibit_stack_protector. + * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c + (__rt_sigreturn_stub, __sigreturn_stub): Likewise. + 2016-12-26 Nick Alcock [BZ #7065] -- cgit v1.2.3