From mboxrd@z Thu Jan 1 00:00:00 1970 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 45DA4C433FE for ; Thu, 7 Apr 2022 01:12:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235629AbiDGBOD (ORCPT ); Wed, 6 Apr 2022 21:14:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235188AbiDGBNR (ORCPT ); Wed, 6 Apr 2022 21:13:17 -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 96CFC18545D; Wed, 6 Apr 2022 18:11:08 -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 E1E7F61DAE; Thu, 7 Apr 2022 01:11:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F9BEC385A1; Thu, 7 Apr 2022 01:11:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649293867; bh=8Eyzmrf4fHO/R4UgorIum0ZxR6EXxJppZCNGHEPJ16k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mjlK3oNZbqoTNTxeVh1HMSBMJJEoSz+oK0/KzhDMHoAugzXMC1bhOudgqUYss5ULb 2K9ERnV3xXKq2K10FAejBuWrw5JnwGdWJBV5J9nSUUboh4aOxCI+rTk62h81dEdT1V tDPXPyHVIkaV58U1VdXxoRKq86bmdX2s2lmqUOW8O2Z4YNFkmOQ2yX66eBdT8p4qFe 7eVC8Az1X5g0wgZWgkei7BnKWTyiv2vpEh6yMBUhKxpp3vkYdiW65CjnfygRuZ+n6r 3vv7XnKvp7Fy01doYaIzvU6zB+nnLergNk5KmAAWgU6MR1/961c7M+QQK38aovCGm4 XIXG7kxBIo9pg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Heiko Carstens , Vasily Gorbik , Sasha Levin , agordeev@linux.ibm.com, svens@linux.ibm.com, ebiederm@xmission.com, iii@linux.ibm.com, linux-s390@vger.kernel.org Subject: [PATCH AUTOSEL 5.17 17/31] s390/traps: improve panic message for translation-specification exception Date: Wed, 6 Apr 2022 21:10:15 -0400 Message-Id: <20220407011029.113321-17-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220407011029.113321-1-sashal@kernel.org> References: <20220407011029.113321-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 2b780786fc68..ead721965b9f 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"); } -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) @@ -374,7 +374,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, -- 2.35.1