From nobody Sat Feb 7 20:38:51 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92FA5C433EF for ; Mon, 23 May 2022 18:03:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241108AbiEWSDN (ORCPT ); Mon, 23 May 2022 14:03:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241388AbiEWRfX (ORCPT ); Mon, 23 May 2022 13:35:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3A4E8215E; Mon, 23 May 2022 10:28:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0D76660BFA; Mon, 23 May 2022 17:18:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D29FC34115; Mon, 23 May 2022 17:18:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653326336; bh=ltwWJu5XvWserwEW179uExcw3T3t42uJaNOIFLn0ep4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CV8BJD1uoVQiLnl2iWQm9VvmnIx7OZeUcvOuVEfLz9yV08lbjjunxgn2AlYRc4383 YdVGKf6V5kgEpU+V23WX1A+g138FTE1UgkLu70BGlWorryjQ1noU1QxvC1j+cOcqq6 E/5QZL7l9kf/SLVrh/ASnnTKRNapDI6c7t1Zvzug= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Heiko Carstens , Vasily Gorbik , Sasha Levin Subject: [PATCH 5.15 030/132] s390/traps: improve panic message for translation-specification exception Date: Mon, 23 May 2022 19:03:59 +0200 Message-Id: <20220523165828.506194611@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523165823.492309987@linuxfoundation.org> References: <20220523165823.492309987@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Heiko Carstens [ Upstream commit f09354ffd84eef3c88efa8ba6df05efe50cfd16a ] 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 Signed-off-by: Vasily Gorbik Signed-off-by: Sasha Levin --- arch/s390/kernel/traps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/s390/kernel/traps.c b/arch/s390/kernel/traps.c index 12d28ff5281f..4044826d72ae 100644 --- a/arch/s390/kernel/traps.c +++ b/arch/s390/kernel/traps.c @@ -142,10 +142,10 @@ static inline void do_fp_trap(struct pt_regs *regs, _= _u32 fpc) do_trap(regs, SIGFPE, si_code, "floating point exception"); } =20 -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"); } =20 static void illegal_op(struct pt_regs *regs) @@ -374,7 +374,7 @@ static void (*pgm_check_table[128])(struct pt_regs *reg= s) =3D { [0x0f] =3D hfp_divide_exception, [0x10] =3D do_dat_exception, [0x11] =3D do_dat_exception, - [0x12] =3D translation_exception, + [0x12] =3D translation_specification_exception, [0x13] =3D special_op_exception, [0x14] =3D default_trap_handler, [0x15] =3D operand_exception, --=20 2.35.1