1 |
Hi! |
2 |
|
3 |
On Fri, Mar 06, 2009 at 11:12:59PM +0200, pageexec@××××××××.hu wrote: |
4 |
> ah crap, i know what it is. it's a several years old glibc bug where someone |
5 |
> put a certain variable into the RELRO segment but forgot that it'll be written |
6 |
> to later when a library with RWE GNU_STACK is loaded. the workaround is |
7 |
> to find that library (just extract them from strace, probably it'll be |
8 |
> pari's library) and run execstack -c on it. |
9 |
|
10 |
I don't have execstack command. Looks like it belong to prelink package, |
11 |
but http://www.gentoo.org/doc/en/prelink-howto.xml states it's |
12 |
incompatible with hardened. Because of this I decide to compile it |
13 |
manually, just to get execstack command: |
14 |
|
15 |
# emerge -f prelink |
16 |
# cd /usr/src |
17 |
# tar xjvf /usr/portage-distfiles/prelink-20071009.tar.bz2 |
18 |
# cd prelink |
19 |
# ./configure && make |
20 |
|
21 |
Now I tried your workaround: |
22 |
|
23 |
# /usr/src/prelink/src/execstack -c /usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Math/Pari/Pari.so |
24 |
# /usr/src/prelink/src/execstack -c /usr/local/ioncube/ioncube_loader_lin_5.2.so |
25 |
# /usr/src/prelink/src/execstack -c /usr/local/Zend/lib/ZendExtensionManager.so |
26 |
# /usr/src/prelink/src/execstack -c /usr/local/Zend/lib/ZendExtensionManager_TS.so |
27 |
# /usr/src/prelink/src/execstack -c /usr/local/Zend/lib/Optimizer-3.3.0/php-5.2.x/ZendOptimizer.so |
28 |
|
29 |
and it works!! |
30 |
|
31 |
Is this issue will be fixed in next stable hardened-sources? |
32 |
|
33 |
-- |
34 |
WBR, Alex. |