ARM: 8796/1: spectre-v1,v1.1: provide helpers for address sanitization
authorJulien Thierry <julien.thierry@arm.com>
Tue, 11 Sep 2018 09:14:50 +0000 (10:14 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Fri, 5 Oct 2018 09:51:15 +0000 (10:51 +0100)
commitafaf6838f4bc896a711180b702b388b8cfa638fc
tree1971dfe3cd88aba8e98339d928f17a9dd87cf285
parente3aa6243434fd9a82e84bb79ab1abd14f2d9a5a7
ARM: 8796/1: spectre-v1,v1.1: provide helpers for address sanitization

Introduce C and asm helpers to sanitize user address, taking the
address range they target into account.

Use asm helper for existing sanitization in __copy_from_user().

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/assembler.h
arch/arm/include/asm/uaccess.h
arch/arm/lib/copy_from_user.S