diff options
| author | Michael Neuling <mikey@neuling.org> | 2018-05-17 15:37:15 +1000 |
|---|---|---|
| committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-05-21 14:48:01 +1000 |
| commit | 4f7c06e26ec9cf7fe9f0c54dc90079b6a4f4b2c3 (patch) | |
| tree | 02148d5f4666597cc1f7911c87ab61f3fc0b2337 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | powerpc/ptrace: Fix enforcement of DAWR constraints (diff) | |
| download | linux-4f7c06e26ec9cf7fe9f0c54dc90079b6a4f4b2c3.tar.gz linux-4f7c06e26ec9cf7fe9f0c54dc90079b6a4f4b2c3.zip | |
powerpc/ptrace: Fix setting 512B aligned breakpoints with PTRACE_SET_DEBUGREG
In commit e2a800beaca1 ("powerpc/hw_brk: Fix off by one error when
validating DAWR region end") 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.
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.
This sets the length of the breakpoint to 8 bytes when using
PTRACE_SET_DEBUGREG.
Fixes: e2a800beaca1 ("powerpc/hw_brk: Fix off by one error when validating DAWR region end")
Cc: stable@vger.kernel.org # v3.11+
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
