Gentoo Archives: gentoo-hardened

From: "Hanno Böck" <hanno@××××××.de>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] Gentoo Hardened and Stack Clash
Date: Thu, 22 Jun 2017 10:30:12
Message-Id: 20170622123002.7cb34ab1@pc1
In Reply to: [gentoo-hardened] Gentoo Hardened and Stack Clash by "Francisco Blas Izquierdo Riera (klondike)"
1 Hi,
2
3 I'm not claiming that I understand all the issues, but I wonder how
4 that all affects "normal" Gentoo.
5
6 Let me summarize my understanding:
7 * We currently enable -fstack-check=specific on hardened, but not on
8 normal Gentoo.
9 * -fstack-check provides protection against stack clashes, but it is
10 not ideal / can sometimes be circumvented. However it is expected /
11 hoped that future versions of gcc will improve on that and provide a
12 better implementation.
13 * According to gcc's man page I understand that -fstack-check=specific
14 is equivalent to -fstack-check and there is also
15 -fstack-check=generic, which is considered deprecated.
16
17 There's already work underway to push -pie via a new profile to default
18 gentoo. I wonder: Should -fstack-check be pushed as well?
19
20 Open questions I have:
21 * Are there measurements of the performance overhead of -fstack-check?
22 * Are there other downsides of -fstack-check? Is it expected that
23 enabling it breaks things?
24
25 --
26 Hanno Böck
27 https://hboeck.de/
28
29 mail/jabber: hanno@××××××.de
30 GPG: FE73757FA60E4E21B937579FA5880072BBB51E42