Thread (5 messages) flat view 5 messages, 3 authors, 2018-05-21

Re: [PATCH 2/2] powerpc/ptrace: Fix setting 512B aligned breakpoints with PTRACE_SET_DEBUGREG

From: Michael Neuling <hidden>
Date: 2018-05-21 01:49:42

On Fri, 2018-05-18 at 22:56 +1000, Michael Ellerman wrote:
Michael Neuling [off-list ref] writes:
quoted
In this change:
  e2a800beac powerpc/hw_brk: Fix off by one error when validating DAWR
region end
=20
We fixed setting the DAWR end point to its max value via
PPC_PTRACE_SETHWDEBUG. Unfortunately we broke PTRACE_SET_DEBUGREG when
setting a 512 byte aligned breakpoint.
=20
PTRACE_SET_DEBUGREG currently sets the length of the breakpoint to
zero (memset() in hw_breakpoint_init()).  This worked with
arch_validate_hwbkpt_settings() before the above patch was applied but
is now broken if the breakpoint is 512byte aligned.
=20
This sets the length of the breakpoint to 8 bytes when using
PTRACE_SET_DEBUGREG.
=20
Signed-off-by: Michael Neuling <redacted>
Cc: stable@vger.kernel.org # 3.10+
=20
If this is "fixing" e2a800beac then I think v3.11 is right for the
stable tag?
=20
$ git describe --contains --long e2a800beaca1
v3.11-rc1~94^2~4
You're right. I think read the output of gitk incorrectly.

Thanks.
Mikey
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help