summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2019-03-01 13:28:01 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2019-03-01 16:23:38 +0000
commit6bd288569b50bc89fa5513031086746968f585cb (patch)
tree728913861c4dd817b3bc40483558f228cd64b5a0 /arch/powerpc
parentb9a4b9d084d978f80eb9210727c81804588b42ff (diff)
arm64: debug: Ensure debug handlers check triggering exception level
Debug exception handlers may be called for exceptions generated both by user and kernel code. In many cases, this is checked explicitly, but in other cases things either happen to work by happy accident or they go slightly wrong. For example, executing 'brk #4' from userspace will enter the kprobes code and be ignored, but the instruction will be retried forever in userspace instead of delivering a SIGTRAP. Fix this issue in the most stable-friendly fashion by simply adding explicit checks of the triggering exception level to all of our debug exception handlers. Cc: <stable@vger.kernel.org> Reviewed-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/powerpc')
0 files changed, 0 insertions, 0 deletions