Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp446848pxb; Thu, 9 Sep 2021 04:48:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyulZH0AqnDaVyVFNC44cJJ511Ima47lna8jGgOi5YzhFUhp9a6RhrVeChXYe+g/iO1AHGR X-Received: by 2002:a17:906:6b93:: with SMTP id l19mr3059259ejr.26.1631188101207; Thu, 09 Sep 2021 04:48:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631188101; cv=none; d=google.com; s=arc-20160816; b=ILVRzUmokP0pKTRs03T5yrx4Zk8mCorL7ZnBsR+cm88nr6/VytU2GIw1y5TiVQ1bMh f/HUXwzmC4XQ5hlw3fAxLzGyF11V7Hub/CM1tIu90my+AkvjmZXkx+bVyozsaeeUkxBU 7KQ4wkQwpgf+gaj1KIyJR1CQpota+wbZLvVaIm24vUeAizzgLpnwr2hVA0GrwIPWPBxe TQSQhh9o9Zagggn49pdhwFkv/+JSxRC5Dhis77GCllm5guc8crGUW/ZYn8dCG12cADRd oK2UrJfwb/SO1RPeZFTgXT/z2GMrVCSj38C+umOp/VucMZR+pxuTiw6xN0zGS0NuR0w6 IA0A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ysYvZXbCx0dHzWNP9botFfU7m6txXE7OVRS7OcMQxK4=; b=yAOMV5lEOobV7l/86YuFSj46LGneUvR5F+I/FTCdY1CyZRdlzNLQWBjMZPIKrEF6BM nX55FOZf2ksov1U3sJHkSLa8kGBgkGjpMZR+r9AlskhF5dHsDmF6eNzwF3A7I3RpRxNS n7Yw3YZPfCsQBScmhAmAeKcJE+U6S5uuGvwV28cPLkfvISjOy1U67zMJPlppKMJpZKzN an/sg01+fmG1zPkzlRYL8Sw35GV/7EIIgC+eLCtHpWxhxNqHk4DyL2BZM4DvO/md1AIb srX4U+l7oogF2L2Jo6sMwSSzc8eCuWj6aWxPuTmslU6muzIoHc3JFkkI6nHCHnpvCWaI q8yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CCWjJ8AZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si1456649ejm.652.2021.09.09.04.47.57; Thu, 09 Sep 2021 04:48:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CCWjJ8AZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238796AbhIILrv (ORCPT + 99 others); Thu, 9 Sep 2021 07:47:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:46202 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235578AbhIILo6 (ORCPT ); Thu, 9 Sep 2021 07:44:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 11D2E61222; Thu, 9 Sep 2021 11:42:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631187762; bh=uwA0nUERC+utH2fpcqTViMZbqrZcqe6qSSC9TEOQ8Yg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CCWjJ8AZsrnIyQlzjF902hY7G6+VlBRlIscIJPNM+7ZomvNMyoMPENzxEMeCkoChN LYARljc9bZJXL4nZlBXswEJKz09wsgbzNjJnksxmSdpaZ4zK3eMzUZlB8FdbZyyroT D6Ag647B/xSQr7bPQARBKkBursePHQc4oxFfb/+1cBLVBC+8App7lzNjBiNXd51FRx zI2WML3Xo/vp85htNY/rNAOjyqm48SHJ1iIVAYojHV3CzX8ZrictGXr5lTXsikW+Z1 ZiCvyAW9IPl50IHCY8hnS46i8khGl7WzBeGzK7WIHWTdk8LV/Hl8jQVQpI/Rl5ZxeV A6VxMkJ0BPzJg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Heiko Carstens , Sasha Levin , linux-s390@vger.kernel.org Subject: [PATCH AUTOSEL 5.14 075/252] s390/jump_label: print real address in a case of a jump label bug Date: Thu, 9 Sep 2021 07:38:09 -0400 Message-Id: <20210909114106.141462-75-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909114106.141462-1-sashal@kernel.org> References: <20210909114106.141462-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 5492886c14744d239e87f1b0b774b5a341e755cc ] In case of a jump label print the real address of the piece of code where a mismatch was detected. This is right before the system panics, so there is nothing revealed. Signed-off-by: Heiko Carstens Signed-off-by: Sasha Levin --- arch/s390/kernel/jump_label.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/kernel/jump_label.c b/arch/s390/kernel/jump_label.c index ab584e8e3527..9156653b56f6 100644 --- a/arch/s390/kernel/jump_label.c +++ b/arch/s390/kernel/jump_label.c @@ -36,7 +36,7 @@ static void jump_label_bug(struct jump_entry *entry, struct insn *expected, unsigned char *ipe = (unsigned char *)expected; unsigned char *ipn = (unsigned char *)new; - pr_emerg("Jump label code mismatch at %pS [%p]\n", ipc, ipc); + pr_emerg("Jump label code mismatch at %pS [%px]\n", ipc, ipc); pr_emerg("Found: %6ph\n", ipc); pr_emerg("Expected: %6ph\n", ipe); pr_emerg("New: %6ph\n", ipn); -- 2.30.2