]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: spectre-v1: fix syscall entry
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 11 May 2018 10:16:22 +0000 (11:16 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 31 May 2018 22:27:26 +0000 (23:27 +0100)
commit41c3f7136a8d348bf3d98b1eb9e5fddd9d68815c
treedbc21a6b8a94eaa26fdc73b4440affa5ad082e4c
parente851cebfe27fc49b3a18a76d0406339892d5226e
ARM: spectre-v1: fix syscall entry

Prevent speculation at the syscall table decoding by clamping the index
used to zero on invalid system call numbers, and using the csdb
speculative barrier.

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/kernel/entry-common.S
arch/arm/kernel/entry-header.S