From: Vasiliy Kulikov <segoon@openwall.com>
To: kernel-hardening@lists.openwall.com
Subject: Re: [kernel-hardening] overview of PaX features
Date: Sat, 2 Jul 2011 21:46:08 +0400 [thread overview]
Message-ID: <20110702174608.GA2490@albatros> (raw)
In-Reply-To: <20110702172159.GE26232@openwall.com>
Solar,
On Sat, Jul 02, 2011 at 21:21 +0400, Solar Designer wrote:
> Oh, of course the kernel itself also put a signal handler return
> trampoline on the stack.
As the kernel actually use NX for the stack on amd64 and on x86-32 with
PAE support, the signal handler is already rewritten to respect
the nonexecutable stack.
> You may want to check the code in linux-2.2.12-ow6.diff. It turned out
> to be insufficient to cover some newer gcc versions, so it was enhanced
> in later 2.2.x-ow versions.
>
> http://download.openwall.net/pub/patches/linux/v2.2/historical/
I'll take a look at it, thanks.
> That said, I don't have strong feelings one way or the other. Feel free
> to use the stricter code from PaX if you like. You can also ask for PaX
> Team's advice on this.
He told me that the PaX' version is based on the actual gcc code, so it
should be sufficient ;)
> > Btw, there is a tool to change executable stack settings per binary,
> > written by Jakub Jelinek (Red Hat):
> >
> > http://linux.die.net/man/8/execstack
>
> I think it makes sense for us to get it into Owl.
Also there is a paxtest utility, it shows some information related to
noexec, ASLR and NULL presence in some libc functions:
http://grsecurity.net/~spender/paxtest-0.9.9.tgz
Anyway, I expect to work on this patch just after PAX_USERCOPY
discussion with upstream (and trying to push it, of course!).
Thanks,
--
Vasiliy
next prev parent reply other threads:[~2011-07-02 17:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-26 18:33 [kernel-hardening] overview of PaX features Vasiliy Kulikov
2011-06-29 18:25 ` Solar Designer
2011-06-29 18:37 ` Vasiliy Kulikov
2011-06-29 19:43 ` Solar Designer
2011-06-30 16:03 ` Vasiliy Kulikov
2011-07-02 17:21 ` Solar Designer
2011-07-02 17:46 ` Vasiliy Kulikov [this message]
2011-07-03 1:06 ` Anthony G. Basile
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=20110702174608.GA2490@albatros \
--to=segoon@openwall.com \
--cc=kernel-hardening@lists.openwall.com \
/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