s390/traps: Use pr_emerg() instead of printk()

Use pr_emerg() instead of printk() in case of a stack overflow,
providing the emergency printk level. Also slightly adjust the
printed text for pr_emerg() and panic().

Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
Heiko Carstens 2025-02-26 11:03:05 +01:00 committed by Vasily Gorbik
parent e9df614dad
commit 5864614daf
1 changed files with 2 additions and 2 deletions

View File

@ -271,10 +271,10 @@ void kernel_stack_overflow(struct pt_regs *regs)
*/
kmsan_unpoison_entry_regs(regs);
bust_spinlocks(1);
printk("Kernel stack overflow.\n");
pr_emerg("Kernel stack overflow\n");
show_regs(regs);
bust_spinlocks(0);
panic("Corrupt kernel stack, can't continue.");
panic("Corrupt kernel stack, cannot continue");
}
NOKPROBE_SYMBOL(kernel_stack_overflow);