mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Laura Abbott <labbott@fedoraproject.org>
To: Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will.deacon@arm.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Laura Abbott <labbott@fedoraproject.org>,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: [RFC][PATCH 0/4] ARCH_SUPPORTS_DEBUG_PAGEALLOC for arm64
Date: Mon, 25 Jan 2016 08:52:11 -0800	[thread overview]
Message-ID: <1453740735-17898-1-git-send-email-labbott@fedoraproject.org> (raw)


Hi,

This series implements proper debug page alloc support for arm64.
Pages are unmapped on free. This series is based on top of Mark
Rutland's work to TLB conflicts in early MMU mapping
(lkml.kernel.org/g/<1451930211-22460-1-git-send-email-mark.rutland@arm.com>)
and Ard Biesheuvel's patch to allow set_memory_* to work on vmalloc
regions (<1453125665-26627-1-git-send-email-ard.biesheuvel@linaro.org>)

The most important part is to force all memory to be mapped with page
mappings. Once that happens it's trivial to use the existing page_attr
infrastructure to clear the valid bit and cause faults. I know there was
an attempt at this a while back (can't find it in my archives) but the
changes by Mark make this significantly easier and probably with fewer
TLB conflicts.

As always, comments are appreciated.

Laura Abbott (4):
  arm64: Drop alloc function from create_mapping
  arm64: Add option to force mapping with PAGE_SIZE pages
  arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC
  arm64: ptdump: Indicate whether memory should be faulting

 arch/arm64/Kconfig       | 14 ++++++++++++++
 arch/arm64/mm/dump.c     |  5 +++++
 arch/arm64/mm/mmu.c      | 24 +++++++++++++++++-------
 arch/arm64/mm/pageattr.c | 40 +++++++++++++++++++++++++++++++++-------
 4 files changed, 69 insertions(+), 14 deletions(-)

-- 
2.5.0

             reply	other threads:[~2016-01-25 16:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-25 16:52 Laura Abbott [this message]
2016-01-25 16:52 ` [RFC][PATCH 1/4] arm64: Drop alloc function from create_mapping Laura Abbott
2016-01-26 11:22   ` Mark Rutland
2016-01-26 21:26     ` Laura Abbott
2016-01-25 16:52 ` [RFC][PATCH 2/4] arm64: Add option to force mapping with PAGE_SIZE pages Laura Abbott
2016-01-26 11:14   ` Mark Rutland
2016-01-26 21:51     ` Laura Abbott
2016-01-25 16:52 ` [RFC][PATCH 3/4] arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC Laura Abbott
2016-01-25 16:52 ` [RFC][PATCH 4/4] arm64: ptdump: Indicate whether memory should be faulting Laura Abbott

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=1453740735-17898-1-git-send-email-labbott@fedoraproject.org \
    --to=labbott@fedoraproject.org \
    --cc=ard.biesheuvel@linaro.org \
    --cc=catalin.marinas@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=will.deacon@arm.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

all inboxes | Powered by JetHome®