1 |
Jan Klod wrote: |
2 |
> Hello. |
3 |
> |
4 |
> I was trying to make a switch form normal, freshly installed gentoo to |
5 |
> hardened like described in PaX quickstart. |
6 |
> http://www.gentoo.org/proj/en/hardened/pax-quickstart.xml Though, that |
7 |
> guide is missing to inform about when should I boot hardened-sources. |
8 |
> Not sure if after "emerge binutils gcc virtual/libc" or "emerge -e |
9 |
> world", but I got this error, which persists: |
10 |
> |
11 |
> ============================================================================ |
12 |
> *** stack smashing detected ***: cc1 - terminated |
13 |
> cc1: stack smashing attack in function ix86_split_to_parts - terminated |
14 |
> Report to http://bugs.gentoo.org/ |
15 |
> i686-pc-linux-gnu-gcc: Internal error: Killed (program cc1) |
16 |
> Please submit a full bug report. |
17 |
> See <URL:http://bugs.gentoo.org/> for instructions. |
18 |
> make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-default-i686-pc-linux-gnu-nptl/math/s_catanl.o] |
19 |
> Error 1 |
20 |
> make[2]: Leaving directory |
21 |
> `/var/tmp/portage/sys-libs/glibc-2.6.1/work/glibc-2.6.1/math' |
22 |
> make[1]: *** [math/others] Error 2 |
23 |
> make[1]: Leaving directory |
24 |
> `/var/tmp/portage/sys-libs/glibc-2.6.1/work/glibc-2.6.1' |
25 |
> make: *** [all] Error 2 |
26 |
> * |
27 |
> * ERROR: sys-libs/glibc-2.6.1 failed. |
28 |
> * Call stack: |
29 |
> * ebuild.sh, line 49: Called src_compile |
30 |
> * environment, line 3350: Called eblit-run 'src_compile' |
31 |
> * environment, line 1075: Called eblit-glibc-src_compile |
32 |
> * src_compile.eblit, line 181: Called toolchain-glibc_src_compile |
33 |
> * src_compile.eblit, line 122: Called die |
34 |
> * The specific snippet of code: |
35 |
> * make PARALLELMFLAGS="${MAKEOPTS}" || die "make for |
36 |
> ${ABI} failed" |
37 |
> * The die message: |
38 |
> * make for default failed |
39 |
> * |
40 |
> * If you need support, post the topmost build error, and the call |
41 |
> stack if relevant. |
42 |
> * A complete build log is located at |
43 |
> '/var/tmp/portage/sys-libs/glibc-2.6.1/temp/build.log'. |
44 |
> * The ebuild environment file is located at |
45 |
> '/var/tmp/portage/sys-libs/glibc-2.6.1/temp/environment'. |
46 |
> ============================================================================ |
47 |
> |
48 |
> Should I really discard my work with normal install (lost |
49 |
> configurations + some hustle) and use hardened stage3? (somehow I |
50 |
> don't believe, I discovered something really "bug") |
51 |
> And one more question: is hardened toolchain built userland going to |
52 |
> work with gentoo-sources? |
53 |
|
54 |
You should not boot into the PaX-enabled kernel until you |
55 |
have rebuilt everything with the new binutils/gcc |
56 |
combination. Otherwise you risk a critical application |
57 |
still doing something bad, which is happening here. |
58 |
|
59 |
To fix this, you need to boot into a non-PaX kernel but |
60 |
hardened profile, and re-emerge gcc. I'd suggest, to be |
61 |
absolutely sure you got everything, you just rerun the two |
62 |
emerge steps again from the beginning: |
63 |
|
64 |
emerge -1 bintils gcc virtual/libc |
65 |
emerge -e world |