linux/arch/arm64/include
Will Deacon f1cb0494aa arm64: ptrace: fix compat hardware watchpoint reporting
commit 27d7ff273c upstream.

I'm not sure what I was on when I wrote this, but when iterating over
the hardware watchpoint array (hbp_watch_array), our index is off by
ARM_MAX_BRP, so we walk off the end of our thread_struct...

... except, a dodgy condition in the loop means that it never executes
at all (bp cannot be NULL).

This patch fixes the code so that we remove the bp check and use the
correct index for accessing the watchpoint structures.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2014-10-05 14:52:11 -07:00
..
asm arm64: ptrace: fix compat hardware watchpoint reporting 2014-10-05 14:52:11 -07:00
uapi/asm arm64: KVM: Add VGIC device control for arm64 2014-02-14 11:09:49 +01:00