arm64: mm: Mark .rodata as RO
authorJeremy Linton <[email protected]>
Fri, 19 Feb 2016 17:50:32 +0000 (11:50 -0600)
committerCatalin Marinas <[email protected]>
Fri, 26 Feb 2016 15:08:04 +0000 (15:08 +0000)
commit2f39b5f91eb4bccd786d194e70db1dccad784755
tree726713a839445a87a77fa05fb369cd0107e60346
parentb7dc8d16e76c25409d93ff3aceda42fc386efc4e
arm64: mm: Mark .rodata as RO

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.
It also adds the .rodata section to the mem_init banner.

Signed-off-by: Jeremy Linton <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Acked-by: Mark Rutland <[email protected]>
[[email protected]: added vm_struct vmlinux_rodata in map_kernel()]
Signed-off-by: Catalin Marinas <[email protected]>
arch/arm64/kernel/vmlinux.lds.S
arch/arm64/mm/init.c
arch/arm64/mm/mmu.c