Skip to content

Commit 402e582

Browse files
hcahcaSasha Levin
authored andcommitted
s390/traps: improve panic message for translation-specification exception
[ Upstream commit f09354f ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent ada480d commit 402e582

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/s390/kernel/traps.c

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

145-
static void translation_exception(struct pt_regs *regs)
145+
static void translation_specification_exception(struct pt_regs *regs)
146146
{
147147
/* May never happen. */
148-
panic("Translation exception");
148+
panic("Translation-Specification Exception");
149149
}
150150

151151
static void illegal_op(struct pt_regs *regs)
@@ -374,7 +374,7 @@ static void (*pgm_check_table[128])(struct pt_regs *regs) = {
374374
[0x0f] = hfp_divide_exception,
375375
[0x10] = do_dat_exception,
376376
[0x11] = do_dat_exception,
377-
[0x12] = translation_exception,
377+
[0x12] = translation_specification_exception,
378378
[0x13] = special_op_exception,
379379
[0x14] = default_trap_handler,
380380
[0x15] = operand_exception,

0 commit comments

Comments
 (0)