public inbox for gentoo-hardened@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: gentoo-hardened@lists.gentoo.org
Cc: "Anthony G. Basile" <blueness@gentoo.org>
Subject: Re: [gentoo-hardened] 2.6.27-hardened-r8: assassination
Date: Tue, 8 Mar 2011 15:55:11 -0500	[thread overview]
Message-ID: <AANLkTi=Gp5A7mDLbbobp8_Z9-_A=NTFCmcyiYu+g-BQE@mail.gmail.com> (raw)
In-Reply-To: <4D76965E.2050205@gentoo.org>

On Tue, Mar 8, 2011 at 3:49 PM, Anthony G. Basile wrote:
> On 03/08/2011 02:05 PM, Mike Frysinger wrote:
>> On Tue, Mar 8, 2011 at 1:40 PM, Alex Efros wrote:
>>> On Fri, Mar 06, 2009 at 03:25:16PM -0800, Ned Ludd wrote:
>>>>> On Fri, Mar 06, 2009 at 11:12:59PM +0200, pageexec@freemail.hu wrote:
>>>>>> ah crap, i know what it is. it's a several years old glibc bug where someone
>>>>>> put a certain variable into the RELRO segment but forgot that it'll be written
>>>>>> to later when a library with RWE GNU_STACK is loaded. the workaround is
>>>>>> to find that library (just extract them from strace, probably it'll be
>>>>>> pari's library) and run execstack -c on it.
>>>>>
>>>>> I don't have execstack command. Looks like it belong to prelink package,
>>>>> but http://www.gentoo.org/doc/en/prelink-howto.xml states it's
>>>>> incompatible with hardened. Because of this I decide to compile it
>>>>> manually, just to get execstack command:
>>>>>
>>>>> # emerge -f prelink
>>>>> # cd /usr/src
>>>>> # tar xjvf /usr/portage-distfiles/prelink-20071009.tar.bz2
>>>>> # cd prelink
>>>>> # ./configure && make
>>>>>
>>>>> Now I tried your workaround:
>>>>>
>>>>> # /usr/src/prelink/src/execstack -c /usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Math/Pari/Pari.so
>>>>> # /usr/src/prelink/src/execstack -c /usr/local/ioncube/ioncube_loader_lin_5.2.so
>>>>> # /usr/src/prelink/src/execstack -c /usr/local/Zend/lib/ZendExtensionManager.so
>>>>> # /usr/src/prelink/src/execstack -c /usr/local/Zend/lib/ZendExtensionManager_TS.so
>>>>> # /usr/src/prelink/src/execstack -c /usr/local/Zend/lib/Optimizer-3.3.0/php-5.2.x/ZendOptimizer.so
>>>>>
>>>>> and it works!!
>>>>>
>>>>> Is this issue will be fixed in next stable hardened-sources?
>>>>
>>>> FYI.. PaX Team maintains the PaX kernel and has little control over what
>>>> fixes go into the "next" hardened-sources. Also seems to me a little
>>>> strange that the PaX Team would have to put a work-around in the kernel
>>>> for a bug in glibc.. Seems like glibc should be fixed vs the kernel.
>>>
>>> 2 years later… Just updated system, bug still exists, and I still have to
>>> use execstack workaround for zendoptimizer and ioncube.
>>
>> like they said, this doesnt seem to be a bug in the kernel, so the pax
>> source arent going to be changing
>>
>> if there's a bug in glibc, an actual bug in bugs.g.o needs to be
>> opened with real details/patches.  otherwise, nothing is going to
>> change.
>
> Nothing to say that Mike hasn't already said.  pipacs knows about this
> but what can he do?  Good luck with upstream glibc.  Next time I speak
> with pipacs I can bring it up, see if anything is changing.  I doubt it.

if there is a real bug in glibc that drepper is ignoring, that doesnt
mean we cant merge it into Gentoo's glibc.  hence open a bug in
bugs.g.o with the patch for me to review.
-mike



  reply	other threads:[~2011-03-08 21:05 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-06  3:57 [gentoo-hardened] 2.6.27-hardened-r8: assassination Alex Efros
2009-03-06  7:11 ` Alex Efros
2009-03-06  7:15 ` pageexec
2009-03-06 15:13   ` Alex Efros
2009-03-06 17:28     ` pageexec
2009-03-06 21:51       ` Alex Efros
2009-03-06 21:12         ` pageexec
2009-03-06 22:57           ` Alex Efros
2009-03-06 23:25             ` Ned Ludd
2009-03-06 23:46               ` Alex Efros
2009-03-19 14:50                 ` pageexec
2009-03-19 16:46                   ` John Eckhart
2009-03-20 22:31                     ` pageexec
2009-03-21 15:12                       ` atoth
2011-03-08 18:40               ` Alex Efros
2011-03-08 19:05                 ` Mike Frysinger
2011-03-08 19:52                   ` Alex Efros
2011-03-08 20:01                     ` Mike Frysinger
2011-03-08 20:48                     ` klondike
2011-03-08 20:49                   ` Anthony G. Basile
2011-03-08 20:55                     ` Mike Frysinger [this message]
2011-03-09  9:03                       ` pageexec
2011-03-10 20:30                         ` Anthony G. Basile
2011-03-10 20:39                         ` Anthony G. Basile
2011-03-08 21:07                     ` Alex Efros
2011-03-09 13:07                 ` med

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTi=Gp5A7mDLbbobp8_Z9-_A=NTFCmcyiYu+g-BQE@mail.gmail.com' \
    --to=vapier@gentoo.org \
    --cc=blueness@gentoo.org \
    --cc=gentoo-hardened@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox