]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
riscv: use KERN_INFO in do_trap
authorAndreas Schwab <schwab@suse.de>
Tue, 19 Mar 2024 15:40:05 +0000 (16:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:38:14 +0000 (16:38 +0200)
[ Upstream commit dd33e5dc7247041b565014f66286c9566b0e32b6 ]

Print the instruction dump with info instead of emergency level.  The
unhandled signal message is only for informational purpose.

Fixes: b8a03a634129 ("riscv: add userland instruction dump to RISC-V splats")
Signed-off-by: Andreas Schwab <schwab@suse.de>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Yunhui Cui <cuiyunhui@bytedance.com>
Link: https://lore.kernel.org/r/mvmy1aegrhm.fsf@suse.de
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/kernel/traps.c

index a1b9be3c4332d97f08b50beebfcadba5adaa02be..142f5f5168fb1758592a6f4dfbc1ffdf9dcd7a08 100644 (file)
@@ -121,7 +121,7 @@ void do_trap(struct pt_regs *regs, int signo, int code, unsigned long addr)
                print_vma_addr(KERN_CONT " in ", instruction_pointer(regs));
                pr_cont("\n");
                __show_regs(regs);
-               dump_instr(KERN_EMERG, regs);
+               dump_instr(KERN_INFO, regs);
        }
 
        force_sig_fault(signo, code, (void __user *)addr);