public inbox for gentoo-hardened@lists.gentoo.org
 help / color / mirror / Atom feed
From: pageexec@freemail.hu
To: gentoo-hardened@lists.gentoo.org
Subject: Re: [gentoo-hardened] 2.6.28-hardened-r7 hangs before starting /sbin/init
Date: Fri, 03 Apr 2009 00:43:26 +0200	[thread overview]
Message-ID: <49D53F8E.16661.386BDA57@pageexec.freemail.hu> (raw)
In-Reply-To: <20090402222227.GM32102@home.power>

On 3 Apr 2009 at 1:22, Alex Efros wrote:
> On Thu, Apr 02, 2009 at 11:17:10PM +0200, pageexec@freemail.hu wrote:
> > can you strace bash/etc to see what happens? probably we'll see what runs
> 
> how do I can strace process N1?

you can enable and boot into softmode then turn it off and see what
you can reproduce then. that won't let you strace pid=1 but let's
you play with the rest while running an MPROTECT kernel.

> PaX doesn't kill bash if it executed not as process N1.

hmm, i don't get it. are you saying that with MPROTECT enabled in the
kernel, bash fails to start when run as init, but works otherwise?

> > against the MPROTECT restricions. my guess is either textrels or gnu_stack
> > (compare scanelf -lpqRte on your systems).
> 
> it's same on all servers:

hmm, so nothing stands out, and only pid=1 is ever affected? i've never seen
such a failure mode ;).

> > btw, why are you using SEGMEXEC on your core2?
> 
> Hmm. You think I should use PAGEEXEC instead? According to help in linux
> kernel SEGMEXEC looks more suitable for Core2Duo and Xeon E5310...
> 
> In help for PAGEEXEC it doesn't recommended for P4 and there is nothing
> about newest processors, so I suppose PAGEEXEC may not be a good choice.

the help talks about exactly what is problematic, the P4 core. the core2
is different, and it also has hw non-exec support.

> After your question I've re-read help, and notice "i386 with hardware
> non-executable bit support" item at end of list with less usual archs like
> avr32, sparc, etc. If that was said about Core/Xeon too, then there
> probably little usability issue with that help. ;-)

i can't possibly list every cpuid that has NX support, up to you to determine
it ;). besides, you can always enable both non-exec features and the kernel
will choose the better one at runtime.




  parent reply	other threads:[~2009-04-02 22:43 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-02 14:05 [gentoo-hardened] 2.6.28-hardened-r7 hangs before starting /sbin/init Alex Efros
2009-04-02 15:29 ` Alex Efros
2009-04-02 15:37   ` RB
2009-04-02 16:09     ` Alex Efros
2009-04-02 16:36       ` Alex Efros
2009-04-02 16:45         ` Alex Efros
2009-04-02 18:54         ` RB
2009-04-02 19:06           ` Alex Efros
2009-04-02 21:17   ` pageexec
2009-04-02 22:22     ` Alex Efros
2009-04-02 22:25       ` klondike
2009-04-02 22:43       ` pageexec [this message]
2009-04-02 23:04         ` Alex Efros
2009-04-03  6:50           ` pageexec
2009-04-03 13:27             ` Alex Efros
2010-10-23 12:21           ` Alex Efros
2010-10-23 15:31             ` Alex Efros
2010-10-23 17:15             ` pageexec
2010-10-23 21:44               ` Alex Efros
2010-10-23 22:07               ` [gentoo-hardened] 2.6.32-hardened-r9 to -r22 upgrade issue with PaX Alex Efros
2010-10-23 23:24                 ` klondike
2010-10-24 10:02                   ` Anthony G. Basile
2010-10-25  2:14                     ` Pavel Labushev
2010-10-26  9:37                       ` Alex Efros
2010-10-26 22:30                         ` Pavel Labushev
2010-10-24 10:18                   ` "Tóth Attila"

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=49D53F8E.16661.386BDA57@pageexec.freemail.hu \
    --to=pageexec@freemail.hu \
    --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