arm64: futex: Mask __user pointers prior to dereference
authorWill Deacon <will.deacon@arm.com>
Mon, 5 Feb 2018 15:34:24 +0000 (15:34 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 6 Feb 2018 22:53:42 +0000 (22:53 +0000)
commit91b2d3442f6a44dce875670d702af22737ad5eff
treeb723651d1d77cee6e73d4d1a1898653f0801d6d4
parentf71c2ffcb20dd8626880747557014bb9a61eb90e
arm64: futex: Mask __user pointers prior to dereference

The arm64 futex code has some explicit dereferencing of user pointers
where performing atomic operations in response to a futex command. This
patch uses masking to limit any speculative futex operations to within
the user address space.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/futex.h