]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ptrace: Fix enforcement of DAWR constraints
authorMichael Neuling <mikey@neuling.org>
Thu, 17 May 2018 05:37:14 +0000 (15:37 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 21 May 2018 04:47:44 +0000 (14:47 +1000)
commit3ee0c2c215b88b63b065f3e4b3a30af460e34d69
tree774894519f6b0aac66d2e9f81d6f1c37e12e6eea
parentd99c4315fdce3fbfae453d22cb8e10d2c9a2ac31
powerpc/ptrace: Fix enforcement of DAWR constraints

Back when we first introduced the DAWR, in commit 3c10dc8fc1b4
("powerpc: Change hardware breakpoint to allow longer ranges"), we
screwed up the constraint making it a 1024 byte boundary rather than a
512. This makes the check overly permissive. Fortunately GDB is the
only real user and it always did they right thing, so we never
noticed.

This fixes the constraint to 512 bytes.

Fixes: 3c10dc8fc1b4 ("powerpc: Change hardware breakpoint to allow longer ranges")
Cc: stable@vger.kernel.org # v3.9+
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/hw_breakpoint.c