]> 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)
commitf520a843422daf6dad10d26212b1a0393b1f8b12
treedbc21a6b8a94eaa26fdc73b4440affa5ad082e4c
parentb2bb4dd7af0fc3ca542873c9f099b7730b42e372
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