Re: [PATCH v4 4/6] arm64: mmu: map .text as read-only from the outset

2017-03-07 Thread Mark Rutland
On Sat, Mar 04, 2017 at 02:30:46PM +, Ard Biesheuvel wrote: > Now that alternatives patching code no longer relies on the primary > mapping of .text being writable, we can remove the code that removes > the writable permissions post-init time, and map it read-only from > the outset. > > To

[PATCH v4 4/6] arm64: mmu: map .text as read-only from the outset

2017-03-04 Thread Ard Biesheuvel
Now that alternatives patching code no longer relies on the primary mapping of .text being writable, we can remove the code that removes the writable permissions post-init time, and map it read-only from the outset. To preserve the existing behavior under rodata=off, which is relied upon by