Skip to content

Commit f09354f

Browse files
hcahcaVasily Gorbik
authored andcommitted
s390/traps: improve panic message for translation-specification exception
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>
1 parent 081397d commit f09354f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

arch/s390/kernel/traps.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ static inline void do_fp_trap(struct pt_regs *regs, __u32 fpc)
141141
do_trap(regs, SIGFPE, si_code, "floating point exception");
142142
}
143143

144-
static void translation_exception(struct pt_regs *regs)
144+
static void translation_specification_exception(struct pt_regs *regs)
145145
{
146146
/* May never happen. */
147-
panic("Translation exception");
147+
panic("Translation-Specification Exception");
148148
}
149149

150150
static void illegal_op(struct pt_regs *regs)
@@ -368,7 +368,7 @@ static void (*pgm_check_table[128])(struct pt_regs *regs) = {
368368
[0x0f] = hfp_divide_exception,
369369
[0x10] = do_dat_exception,
370370
[0x11] = do_dat_exception,
371-
[0x12] = translation_exception,
371+
[0x12] = translation_specification_exception,
372372
[0x13] = special_op_exception,
373373
[0x14] = default_trap_handler,
374374
[0x15] = operand_exception,

0 commit comments

Comments
 (0)