]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Jan 2019 09:28:55 +0000 (09:28 +0000)
commitf20331ab2211156451856093ab48ed9364b9f962
tree962eb6b67ceb4fba9ab6322d1f909a2dffa1f473
parent382876e3c9b44791a52586ad7f08b1223fec1d52
powerpc/ptrace: Fix enforcement of DAWR constraints

BugLink: http://bugs.launchpad.net/bugs/1807469
commit cd6ef7eebf171bfcba7dc2df719c2a4958775040 upstream.

Back when we first introduced the DAWR, in commit 4ae7ebe9522a
("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: 4ae7ebe9522a ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/powerpc/kernel/hw_breakpoint.c