]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 22 Feb 2018 14:15:48 +0000 (08:15 -0600)
commitae5b980663b59a966b72b14ced4c590a753445bc
treeaf0135f63885c517bd600d4f0f5b225ff1ce78df
parente4121c0e342ab1fc33138a6a1cc8689ae3861b43
arm64: futex: Mask __user pointers prior to dereference

BugLink: http://bugs.launchpad.net/bugs/1751064
Commit 91b2d3442f6a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/arm64/include/asm/futex.h