Re: [PATCH v6] ARM: Implement SLS mitigation

2021-03-06 Thread Linus Walleij
On Fri, Mar 5, 2021 at 10:53 AM Will Deacon wrote: > I still don't see why SLS is worth a compiler mitigation which will affect > all CPUs that run the kernel binary, but Spectre-v1 is not. In other words, > the big thing missing from this is a justification as to why SLS is a > problem worth

Re: [PATCH v6] ARM: Implement SLS mitigation

2021-03-05 Thread Will Deacon
On Thu, Mar 04, 2021 at 04:53:18PM -0800, Jian Cai wrote: > This patch adds CONFIG_HARDEN_SLS_ALL that can be used to turn on > -mharden-sls=all, which mitigates the straight-line speculation > vulnerability, speculative execution of the instruction following some > unconditional jumps. Notice

[PATCH v6] ARM: Implement SLS mitigation

2021-03-04 Thread Jian Cai
This patch adds CONFIG_HARDEN_SLS_ALL that can be used to turn on -mharden-sls=all, which mitigates the straight-line speculation vulnerability, speculative execution of the instruction following some unconditional jumps. Notice -mharden-sls= has other options as below, and this config turns on