]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb2bb4dd7af0fc3ca542873c9f099b7730b42e372
tree02ce63e527d19829f5f0059b1cea00897da1469a
parenta90f46024da7113ef35d9b9b902fb624e1785e76
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