]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit46222625ab246f3eda46547442ee575712f1e60a
treeb723651d1d77cee6e73d4d1a1898653f0801d6d4
parent36ae30257cb5ccf1c93de0d374e0dfd43f50f6f8
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