summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2020-06-18 11:16:45 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-21 10:52:53 +0200
commitbc0ec3258c99115022095b3887a55527ba679bed (patch)
treea5c44d38ec1ee753bc6ff181378175082c63c2f2 /drivers/video
parent559eff3dca325947bc3d88d17f4c454111884be5 (diff)
ARM: 8986/1: hw_breakpoint: Don't invoke overflow handler on uaccess watchpoints
[ Upstream commit eec13b42d41b0f3339dcf0c4da43734427c68620 ] Unprivileged memory accesses generated by the so-called "translated" instructions (e.g. LDRT) in kernel mode can cause user watchpoints to fire unexpectedly. In such cases, the hw_breakpoint logic will invoke the user overflow handler which will typically raise a SIGTRAP back to the current task. This is futile when returning back to the kernel because (a) the signal won't have been delivered and (b) userspace can't handle the thing anyway. Avoid invoking the user overflow handler for watchpoints triggered by kernel uaccess routines, and instead single-step over the faulting instruction as we would if no overflow handler had been installed. Cc: <stable@vger.kernel.org> Fixes: f81ef4a920c8 ("ARM: 6356/1: hw-breakpoint: add ARM backend for the hw-breakpoint framework") Reported-by: Luis Machado <luis.machado@linaro.org> Tested-by: Luis Machado <luis.machado@linaro.org> Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/video')
0 files changed, 0 insertions, 0 deletions