Gentoo Archives: gentoo-user

From: Michael Cook <mcook@××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] gcc-4.9.x and stack protection ?
Date: Mon, 19 Jan 2015 23:27:12
Message-Id: 54BD92C8.3040801@mackal.net
In Reply to: [gentoo-user] gcc-4.9.x and stack protection ? by walt
1 On 01/19/2015 06:09 PM, walt wrote:
2 > gcc-4.9.2 surprised me by landing on ~amd64 today, and I'm still very vague
3 > about the status of stack protection on gentoo.
4 >
5 > I seem to recall reading (somewhere) that gcc-4.9.x is needed for compiling
6 > the kernel with CONFIG_CC_STACK_PROTECTOR_STRONG so I've never tried it until
7 > today.
8 >
9 > Is my recollection accurate? Does gcc-4.9.x include more/different support
10 > than gcc-4.8.x for stack protection?
11 >
12 > Anyway, so far, so good. I recompiled and rebooted kernel 3.14.29 with strong
13 > stack protection enabled and all seems good. (Uptime is 20 minutes and counting ;)
14 >
15 >
16 >
17 Yep, they added another stack protector option. Basically it offers
18 better security than compiling with -fstack-protector and less overkill
19 than compiling with -fstack-protector-all.
20
21 Read more http://lwn.net/Articles/584225/ (it is GCC 4.9+)

Replies

Subject Author
[gentoo-user] Re: gcc-4.9.x and stack protection ? walt <w41ter@×××××.com>