]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: don't call break hooks for BRK exceptions from EL0
authorWill Deacon <will.deacon@arm.com>
Thu, 31 Jul 2014 10:36:08 +0000 (11:36 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 31 Jul 2014 10:36:08 +0000 (11:36 +0100)
commit9de4a751b613702c783223fdac9c33e028a53c87
tree234fca64e4707b18b7c1bfe354348e9a096badbf
parent582fc9fc5813c52fea9439303b4901f7a5a89ea2
arm64: don't call break hooks for BRK exceptions from EL0

Our break hooks are used to handle brk exceptions from kgdb (and potentially
kprobes if that code ever resurfaces), so don't bother calling them if
the BRK exception comes from userspace.

This prevents userspace from trapping to a kdb shell on systems where
kgdb is enabled and active.

Cc: <stable@vger.kernel.org>
Reported-by: Omar Sandoval <osandov@osandov.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/debug-monitors.c