Re: [PATCH v2 5/5] arm64: mmu: apply strict permissions to .init.text and .init.data

2017-02-14 Thread Mark Rutland
On Sat, Feb 11, 2017 at 08:23:06PM +, Ard Biesheuvel wrote: > To avoid having mappings that are writable and executable at the same > time, split the init region into a .init.text region that is mapped > read-only, and a .init.data region that is mapped non-executable. > > This is possible

[PATCH v2 5/5] arm64: mmu: apply strict permissions to .init.text and .init.data

2017-02-11 Thread Ard Biesheuvel
To avoid having mappings that are writable and executable at the same time, split the init region into a .init.text region that is mapped read-only, and a .init.data region that is mapped non-executable. This is possible now that the alternative patching occurs via the linear mapping, and the