From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E22BE335BD3; Mon, 18 Aug 2025 13:27:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755523680; cv=none; b=J/YNFRy4uV6N89b8FXG6tTf/nKbGyV/iTVXDy4alhfpuG7vvHafrHcn4JKgixslI3IqM9o0dirr3pq3Zyq3sxQVcGi56j9omEwcuqsXsxGue8XHRniBGHMds5iMetDEyrVbiagn+Vl6k62HLyu/NzV9NPdEwlLTcJnmXb4mUPwQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755523680; c=relaxed/simple; bh=AWwKI3sE8SlW8NQPu8YLNhM4IhhydHea3ZJ2QzopvDg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iIaTD+Ap6eQuHrNb+b8QfF0IrfeHYNiB43MmasUFE/wAuopz6mmI7sYkPe8muqz2P6TpXpLKkQdNg0Vv2uE7h0rqGBZZzmHw0ZgCvVo1giUTN75bB+Po6C/fmiOdA6AsOZsUjsbM5D1LtSJw/VBY+zafzDt71fhGkX+I0p7Y+fA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sTPNYHhm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="sTPNYHhm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08B96C4CEEB; Mon, 18 Aug 2025 13:27:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755523679; bh=AWwKI3sE8SlW8NQPu8YLNhM4IhhydHea3ZJ2QzopvDg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sTPNYHhmmbakrR/FnYHQlMPHGN6gFAcHgKdta+VcE7X0NoeCP+clxMGIzNAeHd7Ub IA9GvOFmgDVnM3u1usktjvmSCoKJlqmCZJYLc/lAGfuNIXKbQDDRwouK6KnX8MrsI/ 9vantY9HZoO9v2FYi1Y6SRkJzTbxyY/QacK28yEQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alexander Gordeev , Heiko Carstens , Sasha Levin Subject: [PATCH 6.15 245/515] s390/early: Copy last breaking event address to pt_regs Date: Mon, 18 Aug 2025 14:43:51 +0200 Message-ID: <20250818124507.819514563@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250818124458.334548733@linuxfoundation.org> References: <20250818124458.334548733@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Heiko Carstens [ Upstream commit 7cf636c99b257c1b4b12066ab34fd5f06e8d892f ] In case of an early crash the early program check handler also prints the last breaking event address which is contained within the pt_regs structure. However it is not initialized, and therefore a more or less random value is printed in case of a crash. Copy the last breaking event address from lowcore to pt_regs in case of an early program check to address this. This also makes it easier to analyze early crashes. Reviewed-by: Alexander Gordeev Signed-off-by: Heiko Carstens Signed-off-by: Alexander Gordeev Signed-off-by: Sasha Levin --- arch/s390/kernel/early.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/s390/kernel/early.c b/arch/s390/kernel/early.c index 54cf0923050f..9b4b5ccda323 100644 --- a/arch/s390/kernel/early.c +++ b/arch/s390/kernel/early.c @@ -154,6 +154,7 @@ void __init __do_early_pgm_check(struct pt_regs *regs) regs->int_code = lc->pgm_int_code; regs->int_parm_long = lc->trans_exc_code; + regs->last_break = lc->pgm_last_break; ip = __rewind_psw(regs->psw, regs->int_code >> 16); /* Monitor Event? Might be a warning */ -- 2.39.5