linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] WX Checking for arm64
@ 2016-09-29 21:32 Laura Abbott
  2016-09-29 21:32 ` [PATCH 1/3] arm64: dump: Make ptdump debugfs a separate option Laura Abbott
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Laura Abbott @ 2016-09-29 21:32 UTC (permalink / raw)
  To: linux-arm-kernel


Hi,

This is an implementation to check for writable and executable pages on arm64.
This is heavily based on the x86 version which uses the existing page table
dumping code to do the checking. Some notes:

- The W^X checking is important so this option should become defaut eventually.
  To make this feasible, the debugfs functionality has been split out as a
  separate option. I didn't see a good way to make it modular like x86 but
  an option should be good enough.
- This checks all page tables registered with ptdump_register. I don't see this
  being called elsewhere right now though.
- Once this is merged, I'd like to see about moving DEBUG_WX to the top level
  instead of having each arch call it in mark_rodata.

Laura Abbott (3):
  arm64: dump: Make ptdump debugfs a separate option
  arm64: dump: Make the page table dumping seq_file optional
  arm64: dump: Add checking for writable and exectuable pages

 arch/arm64/Kconfig.debug        | 34 ++++++++++++++-
 arch/arm64/include/asm/ptdump.h | 25 ++++++++++-
 arch/arm64/mm/Makefile          |  3 +-
 arch/arm64/mm/dump.c            | 92 ++++++++++++++++++++++++++++-------------
 arch/arm64/mm/mmu.c             |  2 +
 arch/arm64/mm/ptdump_debugfs.c  | 33 +++++++++++++++
 6 files changed, 157 insertions(+), 32 deletions(-)
 create mode 100644 arch/arm64/mm/ptdump_debugfs.c

-- 
2.10.0

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-09-30 17:16 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-29 21:32 [PATCH 0/3] WX Checking for arm64 Laura Abbott
2016-09-29 21:32 ` [PATCH 1/3] arm64: dump: Make ptdump debugfs a separate option Laura Abbott
2016-09-30  0:13   ` Mark Rutland
2016-09-30  0:31     ` Laura Abbott
2016-09-30  0:48       ` Mark Rutland
2016-09-30  1:11         ` Laura Abbott
2016-09-30  1:27           ` Mark Rutland
2016-09-29 21:32 ` [PATCH 2/3] arm64: dump: Make the page table dumping seq_file optional Laura Abbott
2016-09-30  0:36   ` Mark Rutland
2016-09-29 21:32 ` [PATCH 3/3] arm64: dump: Add checking for writable and exectuable pages Laura Abbott
2016-09-30  2:08   ` Mark Rutland
2016-09-30 15:58   ` Mark Rutland
2016-09-30 16:25     ` Kees Cook
2016-09-30 16:41       ` Mark Rutland
2016-09-30 17:16         ` Kees Cook
2016-09-30  1:29 ` [kernel-hardening] [PATCH 0/3] WX Checking for arm64 Kees Cook

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).