From: Florian Fainelli Subject: Re: [PATCH 08/14] ARM: spectre-v2: harden user aborts in kernel space Date: Wed, 16 May 2018 09:35:07 -0700 Message-ID: References: <20180516105949.GJ16141@n2100.armlinux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Russell King , linux-arm-kernel@lists.infradead.org Cc: Marc Zyngier , Christoffer Dall , kvmarm@lists.cs.columbia.edu List-Id: kvmarm@lists.cs.columbia.edu On 05/16/2018 04:01 AM, Russell King wrote: > In order to prevent aliasing attacks on the branch predictor, > invalidate the BTB or instruction cache on CPUs that are known to be > affected when taking an abort on a address that is outside of a user > task limit: > > Cortex A8, A9, A12, A17, A73, A75: flush BTB. > Cortex A15, Brahma B15: invalidate icache. > > Signed-off-by: Russell King Reviewed-by: Florian Fainelli -- Florian