arm64: debug: remove noisy, pointless warning
PATCH 1/1 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.
--- arch/arm64/kernel/debug-monitors.c | 3 --- 1 file changed, 3 deletions(-)
arch/arm64/kernel/debug-monitors.c +0 -3
@@ -318,9 +318,6 @@ static int brk_handler(unsigned long addr, unsigned int esr,if (call_break_hook (regs, esr) ==DBG_HOOK_HANDLED )return 0 ; -pr_warn ("unexpected brk exception at %lx, esr=0x%x\n" , - (long )instruction_pointer (regs), esr); -if (!user_mode (regs))return -EFAULT ;
Signature · 1 line
1.9.1
PATCH 1/1 arm64: debug: remove noisy, pointless warning
I am okay with this change, ACK.
Thanks,
~Sandeepa
Quoted 30 lines · Will Deacon
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_exceptionwill already do the right thing, so simply remove the code altogether.Cc Sandeepa Prabhu <[email protected]>Reported-by Kyrylo Tkachov <[email protected]>Signed-off-by Will Deacon <[email protected]>--- arch/arm64/kernel/debug-monitors.c | 3 --- 1 file changed, 3 deletions(-)arch/arm64/kernel/debug-monitors.c +0
-4@@ -318,9 +318,6 @@ static int brk_handler(unsigned long addr, unsigned int esr,if (call_break_hook (regs, esr) ==DBG_HOOK_HANDLED )return 0 ; -pr_warn ("unexpected brk exception at %lx, esr=0x%x\n" , - (long )instruction_pointer (regs), esr); -if (!user_mode (regs))return -EFAULT ; --1.9.1