ARM: spectre-v1: add array_index_mask_nospec() implementation
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 11 May 2018 14:06:58 +0000 (15:06 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 31 May 2018 22:27:21 +0000 (23:27 +0100)
commit1d4238c56f9816ce0f9c8dbe42d7f2ad81cb6613
tree02ce63e527d19829f5f0059b1cea00897da1469a
parenta78d156587931a2c3b354534aa772febf6c9e855
ARM: spectre-v1: add array_index_mask_nospec() implementation

Add an implementation of the array_index_mask_nospec() function for
mitigating Spectre variant 1 throughout the kernel.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Boot-tested-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Tony Lindgren <tony@atomide.com>
arch/arm/include/asm/barrier.h