linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] arm64: mm: Mark .rodata as RO
@ 2016-02-17 16:41 Jeremy Linton
  2016-02-17 16:41 ` [PATCH v2 1/2] " Jeremy Linton
  2016-02-17 16:41 ` [PATCH v2 2/2] arm64/mm: Add .rodata to kernel virtual memory boot notice Jeremy Linton
  0 siblings, 2 replies; 8+ messages in thread
From: Jeremy Linton @ 2016-02-17 16:41 UTC (permalink / raw)
  To: linux-arm-kernel

Currently the .rodata section is actually still executable when DEBUG_RODATA
is enabled. This changes that so the .rodata is actually read only, no execute.

This patch is based on top of "PATCH v2 flag contiguous PTES in linear mapping"

V1->V2
  Added .rodata to kernel VM range notice in mem_init
  Split _stext->_etext into an additional chunk in map_kernel

Jeremy Linton (2):
  arm64: mm: Mark .rodata as RO
  arm64/mm: Add .rodata to kernel virtual memory boot notice

 arch/arm64/kernel/vmlinux.lds.S |  5 +++--
 arch/arm64/mm/init.c            |  4 +++-
 arch/arm64/mm/mmu.c             | 17 +++++++++++++----
 3 files changed, 19 insertions(+), 7 deletions(-)

-- 
2.4.3

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

end of thread, other threads:[~2016-02-17 17:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-17 16:41 [PATCH v2 0/2] arm64: mm: Mark .rodata as RO Jeremy Linton
2016-02-17 16:41 ` [PATCH v2 1/2] " Jeremy Linton
2016-02-17 16:46   ` Ard Biesheuvel
2016-02-17 16:54     ` Jeremy Linton
2016-02-17 16:55       ` Ard Biesheuvel
2016-02-17 17:02         ` Mark Rutland
2016-02-17 16:41 ` [PATCH v2 2/2] arm64/mm: Add .rodata to kernel virtual memory boot notice Jeremy Linton
2016-02-17 17:04   ` Mark Rutland

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