]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
s390/traps: Use pr_emerg() instead of printk()
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 26 Feb 2025 10:03:05 +0000 (11:03 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 4 Mar 2025 16:34:03 +0000 (17:34 +0100)
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>
arch/s390/kernel/traps.c

index 478c5871aefaf80740e3ad532de56e3bbe19ba70..cabc38a38ae3bf1fd45494c814601d352887574b 100644 (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);