Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: David Daney <ddaney@caviumnetworks.com>
To: Ralf Baechle <ralf@linux-mips.org>,
	linux-mips <linux-mips@linux-mips.org>
Subject: [PATCH 0/4] MIPS Read Inhibit/eXecute Inhibit support.
Date: Fri, 05 Feb 2010 15:26:04 -0800	[thread overview]
Message-ID: <4B6CA90C.1000609@caviumnetworks.com> (raw)

This patch set adds execute and read inhibit support.  By default glibc
based tool chains will create mappings for data areas of a program and
shared libraries with PROT_EXEC cleared.  With this patch applied, a
SIGSEGV is correctly sent if an attempt is made to execute from data
areas.

We have been running this patch for close to a year.  So far it seems
to work well, so I ported it to the HEAD for your enjoyment.

I will reply with the four patches.

David Daney (4):
   MIPS: Use 64-bit stores to c0_entrylo on 64-bit kernels.
   MIPS: Add accessor functions and bit definitions for c0_PageGrain
   MIPS: Add TLBP to uasm.
   MIPS: Implement Read Inhibit/eXecute Inhibit

  arch/mips/Kconfig                    |    7 ++
  arch/mips/include/asm/mipsregs.h     |   11 +++
  arch/mips/include/asm/pgtable-64.h   |    4 +
  arch/mips/include/asm/pgtable-bits.h |   59 ++++++++++++-
  arch/mips/include/asm/pgtable.h      |   39 ++++++++-
  arch/mips/include/asm/uasm.h         |    1 +
  arch/mips/mm/cache.c                 |   11 +++
  arch/mips/mm/fault.c                 |   23 +++++
  arch/mips/mm/init.c                  |    2 +-
  arch/mips/mm/tlb-r4k.c               |   15 +++-
  arch/mips/mm/tlbex.c                 |  165 
++++++++++++++++++++++++++++-----
  arch/mips/mm/uasm.c                  |    5 +-
  12 files changed, 308 insertions(+), 34 deletions(-)

             reply	other threads:[~2010-02-05 23:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-05 23:26 David Daney [this message]
2010-02-05 23:27 ` [PATCH 1/4] MIPS: Use 64-bit stores to c0_entrylo on 64-bit kernels David Daney
2010-02-05 23:27 ` [PATCH 2/4] MIPS: Add accessor functions and bit definitions for c0_PageGrain David Daney
2010-02-05 23:27 ` [PATCH 3/4] MIPS: Add TLBP to uasm David Daney
2010-02-08 10:58   ` Sergei Shtylyov
2010-02-08 17:19     ` David Daney
2010-02-05 23:27 ` [PATCH 4/4] MIPS: Implement Read Inhibit/eXecute Inhibit David Daney

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=4B6CA90C.1000609@caviumnetworks.com \
    --to=ddaney@caviumnetworks.com \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.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