Re: [PATCH 0/4] arm64: mmu: avoid writeable-executable mappings

2017-02-11 Thread Laura Abbott
On 02/10/2017 09:16 AM, Ard Biesheuvel wrote: > Having memory that is writable and executable at the same time is a > security hazard, and so we tend to avoid those when we can. However, > at boot time, we keep .text mapped writable during the entire init > phase, and the init region itself is

[PATCH 0/4] arm64: mmu: avoid writeable-executable mappings

2017-02-10 Thread Ard Biesheuvel
Having memory that is writable and executable at the same time is a security hazard, and so we tend to avoid those when we can. However, at boot time, we keep .text mapped writable during the entire init phase, and the init region itself is mapped rwx as well. Let's improve the situation by: -