linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Russell Currey <ruscur@russell.cc>
To: linuxppc-dev@lists.ozlabs.org
Cc: kernel-hardening@lists.openwall.com, Russell Currey <ruscur@russell.cc>
Subject: [PATCH 0/4] Kernel Userspace Protection for Radix MMU
Date: Fri, 23 Nov 2018 01:04:12 +1100	[thread overview]
Message-ID: <20181122140416.3447-1-ruscur@russell.cc> (raw)

Back again, this time based on top of Christophe Leroy's series:
http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=74541

With the magic perk of being the snowpatch maintainer I will try and get
the snowpatch results for this series to be applied on top of that series
so all the tests aren't failures.

There aren't really any major functional changes, just working what I
already did into Christophe's framework.  The biggest change is that
execution prevention is now optional, and all the radix-specific code
is now in the radix-specific place where it should be.

Russell Currey (4):
  powerpc: Track KUAP state in the PACA
  powerpc/64: Setup KUP before feature fixups
  powerpc/mm/radix: Use KUEP API for Radix MMU
  powerpc/64s: Implement KUAP for Radix MMU

 arch/powerpc/include/asm/book3s/64/radix.h   | 43 ++++++++++++++++++++
 arch/powerpc/include/asm/exception-64e.h     |  3 ++
 arch/powerpc/include/asm/exception-64s.h     | 19 ++++++++-
 arch/powerpc/include/asm/mmu.h               |  9 +++-
 arch/powerpc/include/asm/nohash/32/pte-8xx.h |  8 ++--
 arch/powerpc/include/asm/paca.h              |  3 ++
 arch/powerpc/include/asm/reg.h               |  1 +
 arch/powerpc/include/asm/uaccess.h           | 23 ++++++++++-
 arch/powerpc/kernel/asm-offsets.c            |  1 +
 arch/powerpc/kernel/entry_64.S               | 16 +++++++-
 arch/powerpc/kernel/setup_64.c               |  7 +++-
 arch/powerpc/mm/pgtable-radix.c              | 21 ++++++++--
 arch/powerpc/mm/pkeys.c                      |  7 +++-
 arch/powerpc/platforms/Kconfig.cputype       |  2 +
 14 files changed, 148 insertions(+), 15 deletions(-)

-- 
2.19.1


             reply	other threads:[~2018-11-22 14:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-22 14:04 Russell Currey [this message]
2018-11-22 14:04 ` [PATCH 1/4] powerpc: Track KUAP state in the PACA Russell Currey
2018-11-28  9:38   ` Christophe Leroy
2018-11-22 14:04 ` [PATCH 2/4] powerpc/64: Setup KUP before feature fixups Russell Currey
2018-11-28  9:38   ` Christophe Leroy
2018-11-22 14:04 ` [PATCH 3/4] powerpc/mm/radix: Use KUEP API for Radix MMU Russell Currey
2018-11-22 14:04 ` [PATCH 4/4] powerpc/64s: Implement KUAP " Russell Currey
2018-11-28  9:39   ` Christophe Leroy

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=20181122140416.3447-1-ruscur@russell.cc \
    --to=ruscur@russell.cc \
    --cc=kernel-hardening@lists.openwall.com \
    --cc=linuxppc-dev@lists.ozlabs.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).