Skip to content

Commit 43683af

Browse files
wildea01ctmarinas
authored andcommitted
arm64: debug: remove noisy, pointless warning
Sending a SIGTRAP to a user task after execution of a BRK instruction at EL0 is fundamental to the way in which software breakpoints work and doesn't deserve a warning to be logged in dmesg. Whilst the warning can be justified from EL1, do_debug_exception will already do the right thing, so simply remove the code altogether. Cc: Sandeepa Prabhu <sandeepa.prabhu@linaro.org> Reported-by: Kyrylo Tkachov <kyrylo.tkachov@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 2eb835e commit 43683af

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

arch/arm64/kernel/debug-monitors.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,6 @@ static int brk_handler(unsigned long addr, unsigned int esr,
318318
if (call_break_hook(regs, esr) == DBG_HOOK_HANDLED)
319319
return 0;
320320

321-
pr_warn("unexpected brk exception at %lx, esr=0x%x\n",
322-
(long)instruction_pointer(regs), esr);
323-
324321
if (!user_mode(regs))
325322
return -EFAULT;
326323

0 commit comments

Comments
 (0)