Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2162026ioo; Mon, 23 May 2022 11:33:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8bq82KNZbkqlWhp+T/Wln6H8/K7X0KnDLe3p5YYWof2OyFBs+YhF1rCvXkq/bVXfgEl2g X-Received: by 2002:a17:902:c409:b0:161:b135:87c9 with SMTP id k9-20020a170902c40900b00161b13587c9mr24201665plk.94.1653330811192; Mon, 23 May 2022 11:33:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653330811; cv=none; d=google.com; s=arc-20160816; b=SXNNvxbvhxBEnn9NZJ7k8zSjVDyxDWHzjFb3E1mn8DXvbB5Zn+BPWKxKFDqTpIMKO1 BlgKc7axWwWfkiwhxp7tnfWutgiI2uke3whWwIIxakyxS7+/sNYYn9OYHc2K8l24ge9z mVT/WZy3qXTaOMD9TBQFVDJ/QmDDCGb1aajGSUHWviXmAF3YfiiSl8C2+uFSWD2ddZPY Ug9cDDwv/h56bVA3hdoIji7XVQkLqnhW6WmOYNV3JcJCJx1aCyydpc7arxBM32/OiY7v DtMSCX3bT8shfGXM4DYqtNsa6AzZFsgxGXkr7hTiMssZCduc39JZlHi+Q+li2Vr62Zrm GTsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=T2K2yPqIjt6r9z49+MqPTbwqiARSMv7EfFT7PvDLt68=; b=ECNJDloyLW46XUlj6Qd0ckBaZ2NbETPQ20Mpw7lHwleCRteYz01GrY9rWXy9s6L6Ku My/i8rZ/s/qOVLZ+P9sgZoXX3bvhrs9a/nbqhV7u4fENmCrfWelsd18VmQZch5zKUfxs q/weQTKXYgpFg0C8o/npXUwwZktjAEjQ7gHhLfC+Wu4fbvgdFQKdTdnTnCVQpnMmWNvY JUvC6fSVJnQI1IvOBCQxrAz+AScHpAScLwoVOTald0ZKvTw+X1h/TejGjR0JAcw/TbJ3 oEdhuVROKjTBSwidkZBlJhcFSRTQ0SXp0WS0pAvtRf4EYenU07EH+F2uDYB3loQgErbK EJPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oNM+nwYH; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s12-20020a17090a13cc00b001dca4bd019esi17781pjf.135.2022.05.23.11.33.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 11:33:31 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oNM+nwYH; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3A60DEC316; Mon, 23 May 2022 11:31:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243043AbiEWR4G (ORCPT + 99 others); Mon, 23 May 2022 13:56:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241335AbiEWRa5 (ORCPT ); Mon, 23 May 2022 13:30:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2720363BD6; Mon, 23 May 2022 10:26:47 -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 8850A60C42; Mon, 23 May 2022 17:25:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70B0DC34118; Mon, 23 May 2022 17:25:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653326755; bh=8Eyzmrf4fHO/R4UgorIum0ZxR6EXxJppZCNGHEPJ16k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oNM+nwYHTKdzSHtofmMF79W2Z9v75EaHZYvp3ONdhI8b3AAwZXZ5BiSlOKsLJ6yUx fMl0WOh8WHVbCK8E2sv/lGgMTw9cP/sfsgpM1NEKDfQ8Irm+fXyJ2zxTgoTlRfXQtj VuUVBsAoCz8d6CS5Kdx4gnSmEweTMU4QVgBw2ILM= 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.17 031/158] s390/traps: improve panic message for translation-specification exception Date: Mon, 23 May 2022 19:03:08 +0200 Message-Id: <20220523165835.657970647@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523165830.581652127@linuxfoundation.org> References: <20220523165830.581652127@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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