Re: [PATCH 0/7] arm64: move literal data into .rodata section

2018-01-18 Thread Herbert Xu
On Thu, Jan 18, 2018 at 11:46:07AM +, Ard Biesheuvel wrote: > On 18 January 2018 at 11:41, Herbert Xu wrote: > > On Wed, Jan 10, 2018 at 12:11:35PM +, Ard Biesheuvel wrote: > >> Prevent inadvertently creating speculative gadgets by moving literal data > >>

Re: [PATCH 0/7] arm64: move literal data into .rodata section

2018-01-18 Thread Ard Biesheuvel
On 18 January 2018 at 11:41, Herbert Xu wrote: > On Wed, Jan 10, 2018 at 12:11:35PM +, Ard Biesheuvel wrote: >> Prevent inadvertently creating speculative gadgets by moving literal data >> into the .rodata section. >> >> Patch #1 enables this for C code, by

Re: [PATCH 0/7] arm64: move literal data into .rodata section

2018-01-18 Thread Herbert Xu
On Wed, Jan 10, 2018 at 12:11:35PM +, Ard Biesheuvel wrote: > Prevent inadvertently creating speculative gadgets by moving literal data > into the .rodata section. > > Patch #1 enables this for C code, by reverting a change that disables the > GCC feature implementing this. Note that this

[PATCH 0/7] arm64: move literal data into .rodata section

2018-01-10 Thread Ard Biesheuvel
Prevent inadvertently creating speculative gadgets by moving literal data into the .rodata section. Patch #1 enables this for C code, by reverting a change that disables the GCC feature implementing this. Note that this conflicts with the mitigation of erratum #843419 for Cortex-A53. Patch #2 -