]> 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)
commitee8d4d4d75c83cd7759cbc7d3809c6c5413152ec
tree688a1724645587aef5210b600a979f9a9d57060b
parent5ee71efb5b2cd3cb05b15a75609cdf79dcf414ce
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