Skip to content
Commit c878e0cf authored by Will Deacon's avatar Will Deacon
Browse files

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: default avatarOmar Sandoval <osandov@osandov.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 3666f880
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment