]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:08:39 +0000 (11:08 +0100)
commit2bb93af1822d392e8cce94fb7a470e5f926376dd
tree00d12567b991ef1db602b15410c40426d0903376
parent798f1eb12a4d3a9f38b822d4ea97c5fd24e494a5
ARM: 8997/2: hw_breakpoint: Handle inexact watchpoint addresses

[ 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>
arch/arm/kernel/hw_breakpoint.c