Re: [PATCH RFC] powerpc/32: fix handling of stack protector with recent GCC

From
Segher Boessenkool <hidden>
Date
2017-01-31 01:24:10
Also in
lkml
Reply to
Christian Kujau, 2017-01-31
On Mon, Jan 30, 2017 at 04:12:53PM -0800, Christian Kujau wrote:
On Mon, 16 Jan 2017, Christophe Leroy wrote:
quoted
Since 2005, powerpc GCC doesn't manage anymore __stack_chk_guard as
a global variable but as some value located at -0x7008(r2)
Is this still an "RFC" or is there a chance that this will land in 4.10?
Older GCC (i.e. not ancient, but < 7 currently; the new options will be
backported to 5 and 6) doesn't always use TLS stack canaries either: it
depends on how your GCC is configured.  The kernel will have to detect
if the GCC it uses knows the new options, and if not, if it still wants
to use SSP it has to detect what GCC uses to get at the canary.

This patch as-is won't work.


Segher
Thread (5 messages) 5 messages, 4 authors, last reply 2017-01-31
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help