]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ARM: 8997/2: hw_breakpoint: Handle inexact watchpoint addresses
authorDouglas Anderson <dianders@chromium.org>
Thu, 6 Aug 2020 22:24:35 +0000 (23:24 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 10 Dec 2020 11:02:45 +0000 (12:02 +0100)
commit2c6d96052e7882cd37b28e9342cea59541e5ae39
treef232f0ba680d59795ff521a4f052fcfd1c734528
parent1247d9fa13f11c21473fcf6b917475d7b23d3e60
ARM: 8997/2: hw_breakpoint: Handle inexact watchpoint addresses

BugLink: https://bugs.launchpad.net/bugs/1904450
[ Upstream commit 22c9e58299e5f18274788ce54c03d4fb761e3c5d ]

This is commit fdfeff0f9e3d ("arm64: hw_breakpoint: Handle inexact
watchpoint addresses") but ported to arm32, which has the same
problem.

This problem was found by Android CTS tests, notably the
"watchpoint_imprecise" test [1].  I tested locally against a copycat
(simplified) version of the test though.

[1] https://android.googlesource.com/platform/bionic/+/master/tests/sys_ptrace_test.cpp

Link: https://lkml.kernel.org/r/20191019111216.1.I82eae759ca6dc28a245b043f485ca490e3015321@changeid
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>
arch/arm/kernel/hw_breakpoint.c