linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] Simple NX lowmem mappings
Date: Thu, 24 Oct 2013 09:55:26 +0100	[thread overview]
Message-ID: <20131024085525.GE16735@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <20131024084502.GT4994@outflux.net>

On Thu, Oct 24, 2013 at 01:45:02AM -0700, Kees Cook wrote:
> Hi,
> 
> Thanks for starting this work!
> 
> Russel said:
> > -#define MT_MEMORY      9
> > [...]
> > + MT_MEMORY,
> > + MT_MEMORY_NX,
> 
> Instead of these names, let's more fully describe the protections. "NX"
> doesn't say anything about RO vs RW. Instead, how about:
> 
> MT_MEMORY_RWX (to replace MT_MEMORY)
> MT_MEMORY_RW  (as the new "NX" in use for this patch)
> 
> for the first change? Then as we move forward, we can add:
> 
> MT_MEMORY_R
> 
> At which point we'll have the three states.

Yes, we can.  We have a few others which should be changed in the same way.

  reply	other threads:[~2013-10-24  8:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-24  7:12 [PATCH] Simple NX lowmem mappings Russell King - ARM Linux
2013-10-24  8:45 ` Kees Cook
2013-10-24  8:55   ` Russell King - ARM Linux [this message]
2013-10-24 17:31 ` Nicolas Pitre

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=20131024085525.GE16735@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).