mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "PaX Team" <pageexec@freemail.hu>
To: Ard Biesheuvel <ard.biesheuvel@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Kees Cook <keescook@chromium.org>,
	Hugh Dickins <hughd@google.com>,
	linux-kernel@vger.kernel.org,
	Roland McGrath <roland@hack.frob.com>,
	spender@grsecurity.net
Subject: Re: Updated: [PATCH] hardening: add PROT_FINAL prot flag to mmap/mprotect
Date: Mon, 08 Oct 2012 02:23:50 +0200	[thread overview]
Message-ID: <50721D16.9006.14F512C3@pageexec.freemail.hu> (raw)
In-Reply-To: <CAKFga-erNuJ8_aLtd1b0JS1YwX1LrsCEJjEeOT67V0AqLHj_SQ@mail.gmail.com>

On 7 Oct 2012 at 9:43, Ard Biesheuvel wrote:

> 2012/10/6 PaX Team <pageexec@freemail.hu>:
> > sadly, this is not true at all, for multiple reasons:
> >
> .. snip ...
> >
> > cheers,
> >   PaX Team
> >
> 
> So can I summarize your position as that there is no merit at all in
> the ability to inhibit future permissions of existing mappings?

i believe i answered this in the previous mail already:

> there's certainly a point (i've been doing it for 12 years now), but to
> make an mprotect flag into an actual security feature, it had better pass
> simple tests, such as non-circumventability. any method relying on
> userland playing nice is already suspect of being the wrong way and right
> now i don't see how PROT_FINAL could be used for actual security.

so if PROT_FINAL wants to be useful, you'd have to present a case of
how it does something useful *while* an exploited userland cannot get
around it. in fact i think i already told you that presenting your own
use case in more detail (read: source code, policy, etc) would be a
great step in 'selling the idea'. the fact that you seem to be reluctant
to follow up on this leaves me somewhat uneasy as it may be the sign
of a proprietary vendor's trying to push some code into mainline that
nobody else has a clear idea how it'd benefit the rest of us. you see,
you're asking for a change in a system call, which is a very important
boundary for kernel developers as they'll have to maintain it indefinitely.
so the burden is on you to prove that either this is the only way to
implement a useful feature or at least it is the optimal way as opposed
to other approaches. i suggested you ways to both attack the initially
presented concept and also how it may be improved, but i got no answers
to them yet.

cheers,
  PaX Team


  reply	other threads:[~2012-10-08  0:24 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-14 19:11 Ard Biesheuvel
2012-08-20 18:00 ` Kees Cook
2012-08-20 21:48   ` Ard Biesheuvel
2012-10-02 20:34     ` Kees Cook
2012-10-02 21:41       ` Ard Biesheuvel
2012-10-02 22:10         ` Kees Cook
2012-10-02 22:38           ` Andrew Morton
2012-10-03  0:43             ` Hugh Dickins
2012-10-03 14:43               ` Updated: " Ard Biesheuvel
2012-10-03 16:25                 ` Kees Cook
2012-10-03 19:44                 ` Hugh Dickins
2012-10-03 21:18                 ` Andrew Morton
2012-10-03 22:19                   ` Kees Cook
2012-10-03 22:25                     ` Roland McGrath
2012-10-04  8:26                     ` Ard Biesheuvel
2012-10-04 12:51                     ` PaX Team
2012-10-04 13:56                       ` Ard Biesheuvel
2012-10-06 13:11                         ` PaX Team
2012-10-07  7:43                           ` Ard Biesheuvel
2012-10-08  0:23                             ` PaX Team [this message]
2012-10-10 18:26                               ` halfdog
2012-10-04  8:18                 ` Mikael Pettersson
2012-10-04 10:33                   ` Ard Biesheuvel

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=50721D16.9006.14F512C3@pageexec.freemail.hu \
    --to=pageexec@freemail.hu \
    --cc=akpm@linux-foundation.org \
    --cc=ard.biesheuvel@gmail.com \
    --cc=hughd@google.com \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roland@hack.frob.com \
    --cc=spender@grsecurity.net \
    /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

Powered by JetHome