All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: mm: allow for stricter kernel memory perms
@ 2014-02-14  1:04 ` Kees Cook
  0 siblings, 0 replies; 45+ messages in thread
From: Kees Cook @ 2014-02-14  1:04 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: keescook, Russell King, Laura Abbott, Larry Bassel,
	Catalin Marinas, Stephen Rothwell, Greg Kroah-Hartman,
	Christoffer Dall, Marc Zyngier, Jonathan Austin, Simon Baatz,
	Nicolas Pitre, Dave Martin, Will Deacon, Uwe Kleine-König,
	Ben Dooks, Andrew Morton, Santosh Shilimkar, Jiang Liu,
	Grant Likely, Rob Herring, Vitaly Andrianov, linux-kernel

This series of patches allows the ARM kernel page tables to gain better
permission separation. With a fixed[1] CONFIG_ARM_PTDUMP enabled, you
can see the before and after in /sys/kernel/debug/kernel_page_tables.

Before:
---[ Kernel Mapping ]---
0xc0000000-0xc0800000           8M     RW x  SHD
0xc0800000-0xc1e00000          22M     RW NX SHD
0xc2000000-0xc3000000          16M     RW x  SHD
0xc3800000-0xd1000000         216M     RW x  SHD
0xd1800000-0xef800000         480M     RW x  SHD

After:
---[ Kernel Mapping ]---
0xc0000000-0xc0100000           1M     RW NX SHD
0xc0100000-0xc0700000           6M     ro x  SHD
0xc0700000-0xc0a00000           3M     ro NX SHD
0xc0a00000-0xc1e00000          20M     RW NX SHD
0xc2000000-0xc3000000          16M     RW NX SHD
0xc3800000-0xd1000000         216M     RW NX SHD
0xd1800000-0xef800000         480M     RW NX SHD

This is available via CONFIG_ARM_KERNMEM_PERMS and CONFIG_DEBUG_RODATA.
The latter exists to match the x86 option of the same name, and is
left as a configurable since each additional region adds more potential
memory padding.

The series is based on earlier work from Brad Spengler, Larry Bassel,
and Laura Abbott.

Thanks,

-Kees

[1] these patches are needed to get the correct output:
    https://lkml.org/lkml/2014/2/12/662
    https://lkml.org/lkml/2014/2/12/663


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

end of thread, other threads:[~2014-04-01 23:00 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-14  1:04 [PATCH 0/2] ARM: mm: allow for stricter kernel memory perms Kees Cook
2014-02-14  1:04 ` Kees Cook
2014-02-14  1:04 ` [PATCH 1/2] " Kees Cook
2014-02-14  1:04   ` Kees Cook
2014-02-14  1:04 ` [PATCH 2/2] ARM: mm: keep rodata non-executable Kees Cook
2014-02-14  1:04   ` Kees Cook
2014-02-14 16:22   ` Dave Martin
2014-02-14 16:22     ` Dave Martin
2014-02-14 19:11     ` Kees Cook
2014-02-14 19:11       ` Kees Cook
2014-02-17 12:34       ` Dave Martin
2014-02-17 12:34         ` Dave Martin
2014-02-18 18:10         ` Kees Cook
2014-02-18 18:10           ` Kees Cook
2014-02-21 12:37           ` Dave Martin
2014-02-21 12:37             ` Dave Martin
2014-02-21 13:20             ` Russell King - ARM Linux
2014-02-21 13:20               ` Russell King - ARM Linux
2014-02-21 22:09               ` Kees Cook
2014-02-21 22:09                 ` Kees Cook
2014-03-13 19:07                 ` Kees Cook
2014-03-13 19:07                   ` Kees Cook
2014-03-23 18:32                   ` Laura Abbott
2014-03-23 18:32                     ` Laura Abbott
2014-03-23 22:20                     ` Kees Cook
2014-03-23 22:20                       ` Kees Cook
2014-03-23 18:47         ` Laura Abbott
2014-03-23 18:47           ` Laura Abbott
2014-03-23 22:21           ` Kees Cook
2014-03-23 22:21             ` Kees Cook
2014-03-23 22:37             ` Nicolas Pitre
2014-03-23 22:37               ` Nicolas Pitre
2014-03-23 22:56               ` Kees Cook
2014-03-23 22:56                 ` Kees Cook
2014-03-24 10:47             ` Jon Medhurst (Tixy)
2014-03-24 10:47               ` Jon Medhurst (Tixy)
2014-03-25 22:11               ` Rabin Vincent
2014-04-01 22:34               ` Kees Cook
2014-04-01 22:34                 ` Kees Cook
2014-04-01 22:54                 ` Laura Abbott
2014-04-01 22:54                   ` Laura Abbott
2014-04-01 22:59                   ` Kees Cook
2014-04-01 22:59                     ` Kees Cook
2014-03-24 12:30           ` Dave Martin
2014-03-24 12:30             ` Dave Martin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.