s390/traps: improve panic message for translation-specification exception
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 16 Mar 2022 18:13:20 +0000 (19:13 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Sun, 27 Mar 2022 20:18:38 +0000 (22:18 +0200)
There are many different types of translation exceptions but only a
translation-specification exception leads to a kernel panic since it
indicates corrupted page tables, which must never happen.

Improve the panic message so it is a bit more obvious what this is about.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/traps.c

index 674c650..1d2aa44 100644 (file)
@@ -141,10 +141,10 @@ static inline void do_fp_trap(struct pt_regs *regs, __u32 fpc)
        do_trap(regs, SIGFPE, si_code, "floating point exception");
 }
 
-static void translation_exception(struct pt_regs *regs)
+static void translation_specification_exception(struct pt_regs *regs)
 {
        /* May never happen. */
-       panic("Translation exception");
+       panic("Translation-Specification Exception");
 }
 
 static void illegal_op(struct pt_regs *regs)
@@ -368,7 +368,7 @@ static void (*pgm_check_table[128])(struct pt_regs *regs) = {
        [0x0f]          = hfp_divide_exception,
        [0x10]          = do_dat_exception,
        [0x11]          = do_dat_exception,
-       [0x12]          = translation_exception,
+       [0x12]          = translation_specification_exception,
        [0x13]          = special_op_exception,
        [0x14]          = default_trap_handler,
        [0x15]          = operand_exception,