Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Any bad experiences with hardened builds?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
rouben
Apprentice
Apprentice


Joined: 07 Feb 2005
Posts: 159
Location: Thornhill, ON, Canada

PostPosted: Sun Apr 24, 2005 5:36 am    Post subject: Any bad experiences with hardened builds? Reply with quote

Howdy folks,

I know that similar posts have already been made, but it seems to be that nobody ever asked this question in a general sense (i.e. unrelated to any specific package)... at least I couldn't find anything similar being asked on these forums.

Did anyone every experience negative results with "hardened" compiles? So far on my AMD XP-M I've had numerous issues with a variety of packages, mostly multimedia-related (e.g. esound, gstreamer, aRts, xorg to name a few). Everything was resolved after disabling "hardened" compiles.

I was wondering... am I doing something wrong? Is this a n00b/PEBKAC issue on my end, or do "hardened" builds somehow compromise stability while providing better security? Furthermore, is it possible that "hardened" builds don't work as well on AMD-based CPUs? Maybe it's an issue with GCC not being as compatible to AMD chips (when compared to their Intel cunterparts) when doing hardened builds?

What are your thoughts on this?
Back to top
View user's profile Send private message
spb
Retired Dev
Retired Dev


Joined: 02 Jan 2004
Posts: 2135
Location: Cambridge, UK

PostPosted: Sun Apr 24, 2005 1:10 pm    Post subject: Reply with quote

The hardened toolchain uses PIE by default for all executables, which, amongst other things, makes the ebx register unavailable for general use. This causes problems with hand-written assembly code that tries to use it, and with certain corner-cases in C when the compiler can run out of registers to use. Both of these cases are most common in media apps, especially video. A hardened toolchain shouldn't compromise stability in any way, except that it tends to be a lot stricter with buggy applications -- minor stack overruns etc that would normally cause corruption to some (possibly insignificant) data can instead result in the app getting killed.

As for AMD chips, I'm running a complete hardened system on an athlon-xp, and have been for several months now, with absolutely no issues. Everything works perfectly, including mpd, mplayer, etc etc. Only thing that doesn't run is Flash, because of certain PaX protections.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum