]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: ptrace: remove addr_limit manipulation
authorMark Rutland <mark.rutland@arm.com>
Tue, 24 Apr 2018 12:11:22 +0000 (13:11 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 24 Apr 2018 18:07:26 +0000 (19:07 +0100)
commitcecb73ff2b5489eb3637e535b8f8dd7296054f3e
tree688a1724645587aef5210b600a979f9a9d57060b
parentc6ed96f6ac8702a2eba14de186b5c424f4120f26
arm64: ptrace: remove addr_limit manipulation

We transiently switch to KERNEL_DS in compat_ptrace_gethbpregs() and
compat_ptrace_sethbpregs(), but in either case this is pointless as we
don't perform any uaccess during this window.

let's rip out the redundant addr_limit manipulation.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/ptrace.c