arm64: Handle TRAP_BRKPT for user mode as well
authorPratyush Anand <panand@redhat.com>
Wed, 2 Nov 2016 09:10:44 +0000 (14:40 +0530)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 7 Nov 2016 18:15:21 +0000 (18:15 +0000)
commit53d07e21854de064d9625853b8303357482b25b1
tree36bfe1e2bfc3fe814b3f17762fb0d7856db36c5c
parent3fb69640fed1dd4d8f5b81b2ee7ccaf82e369bf5
arm64: Handle TRAP_BRKPT for user mode as well

uprobe is registered at break_hook with a unique ESR code. So, when a
TRAP_BRKPT occurs, call_break_hook checks if it was for uprobe. If not,
then send a SIGTRAP to user.

Signed-off-by: Pratyush Anand <panand@redhat.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/debug-monitors.c