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

2017-03-07 Thread Mark Rutland
On Sat, Mar 04, 2017 at 02:30:47PM +, Ard Biesheuvel wrote: > diff --git a/arch/arm64/include/asm/sections.h > b/arch/arm64/include/asm/sections.h > index 4e7e7067afdb..22582819b2e5 100644 > --- a/arch/arm64/include/asm/sections.h > +++ b/arch/arm64/include/asm/sections.h > @@ -24,7 +24,8 @@

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

2017-03-04 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