diff options
author | Ravi Bangoria <[email protected]> | 2019-10-17 15:02:00 +0530 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2019-11-13 16:58:03 +1100 |
commit | c3f68b0478e7c07769394d17ebde0626600a7e1d (patch) | |
tree | c8c2545d2cf02494492a4b68199f7710d6e73feb /lib/memory-notifier-error-inject.c | |
parent | b57aeab811db07295f646808b1b17c312d17f57d (diff) |
powerpc/watchpoint: Fix ptrace code that muck around with address/len
ptrace_set_debugreg() does not consider new length while overwriting
the watchpoint. Fix that. ppc_set_hwdebug() aligns watchpoint address
to doubleword boundary but does not change the length. If address
range is crossing doubleword boundary and length is less then 8, we
will lose samples from second doubleword. So fix that as well.
Signed-off-by: Ravi Bangoria <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions