]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7aa7b6a72847974fa1bad8be80b35202820ed167
tree1971dfe3cd88aba8e98339d928f17a9dd87cf285
parent1a916becd44ce802bf61884103fcf2027491b84e
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