https://github.com/torvalds/linux
Revision 8f34a1da35aed7b438a2de8ac27723a5472e8399 authored by Will Deacon on 18 October 2012, 14:17:00 UTC, committed by Catalin Marinas on 18 October 2012, 19:15:34 UTC
If a debugger tries to zero a hardware debug control register, the
kernel will try to infer both the type and length of the breakpoint
in order to sanity-check against the requested regset type. This will
fail because the encoding will appear as a zero-length breakpoint.

This patch changes the control register setting so that disabled
breakpoints are treated as HW_BREAKPOINT_EMPTY and no further
sanity-checking is required.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 7797d17
History
Tip revision: 8f34a1da35aed7b438a2de8ac27723a5472e8399 authored by Will Deacon on 18 October 2012, 14:17:00 UTC
arm64: ptrace: use HW_BREAKPOINT_EMPTY type for disabled breakpoints
Tip revision: 8f34a1d
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.7 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 221.8 KB
Makefile -rw-r--r-- 46.2 KB
README -rw-r--r-- 18.2 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top