]> sourceware.org Git - glibc.git/commit
Do not stack-protect sigreturn stubs [BZ #7065]
authorNick Alcock <nick.alcock@oracle.com>
Mon, 26 Dec 2016 09:09:06 +0000 (10:09 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 26 Dec 2016 09:11:06 +0000 (10:11 +0100)
commit2e6c45c59bcd40f1ae8466cbd32f4d263ff45619
treefc558d3f90670cf9028bfd33839dbe75c2d674bb
parent1ad4ba28e9335c288687d1757bce3221c522f576
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
signal/Makefile
sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
This page took 0.040059 seconds and 5 git commands to generate.