Re: [RFC 6/7] arm64: add __map_kernel_segment to accept additional vm flags

2017-02-19 Thread Ard Biesheuvel
On 19 February 2017 at 10:04, Hoeun Ryu wrote: > Memory attribute for `__ro_mostly_after_init` section should be changed > via set_memory_rw/ro that doesn't work against vm areas which don't have > VM_ALLOC. This is for a good reason: VMALLOC regions are guaranteed to be mapped down to pages, wh

[RFC 6/7] arm64: add __map_kernel_segment to accept additional vm flags

2017-02-19 Thread Hoeun Ryu
Memory attribute for `__ro_mostly_after_init` section should be changed via set_memory_rw/ro that doesn't work against vm areas which don't have VM_ALLOC. Add this function to map `__ro_mostly_after_init` section with VM_ALLOC flag set in map_kernel. Signed-off-by: Hoeun Ryu --- arch/arm64/mm/m