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 7BB5BC433FE for ; Thu, 7 Apr 2022 01:21:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238619AbiDGBXc (ORCPT ); Wed, 6 Apr 2022 21:23:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238811AbiDGBSh (ORCPT ); Wed, 6 Apr 2022 21:18:37 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3745D19F202; Wed, 6 Apr 2022 18:13: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 ams.source.kernel.org (Postfix) with ESMTPS id E8C4EB81E7F; Thu, 7 Apr 2022 01:13:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E9AEC385A1; Thu, 7 Apr 2022 01:13:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649294016; bh=ltwWJu5XvWserwEW179uExcw3T3t42uJaNOIFLn0ep4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kamyeBY/N6QoulZViwdvUBpLh6YmkwD2ciKhvXVSiLcYduON/HmAVRBSn0KS35lUQ Q+4zTjPjsZBTRak60uQ6AEHULL0e3//4GWgZqo+cHyuKRJWPoS5zJlaKdaIhL4r0Sr 0ThiET5FdhezfbuROG0CL184djw6N5exSWOOMNNJVQCOkoLl1Bih80tmjM+PegAzjO d14PCpPguRUv7kDuRKsO9Vk5Kk8GjJNZiRc17hYeBhliiIlb7VHpiah/iv8Gsb0fIh p/5oALD8YGNBQnorSl91NCnenPKsVPVNQ/CkxeE1t/6A3+nWD5vZTsUzZfTVt+SS9N S5vTQCxN+DC+g== 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.15 14/27] s390/traps: improve panic message for translation-specification exception Date: Wed, 6 Apr 2022 21:12:44 -0400 Message-Id: <20220407011257.114287-14-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220407011257.114287-1-sashal@kernel.org> References: <20220407011257.114287-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 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"); } -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