Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp525383pxb; Thu, 9 Sep 2021 06:26:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0F4GyzAGdclvqpdyRaG5Tzp+mnDE7ynJZxc8v/I9SIjRkz1bo13Cl48UxEYYLr0u1NjiN X-Received: by 2002:a05:6402:2816:: with SMTP id h22mr3196679ede.146.1631193980643; Thu, 09 Sep 2021 06:26:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631193980; cv=none; d=google.com; s=arc-20160816; b=o1wXCBDn4cYNKIkai1Qj7IsJvSybks/VX/pRNUCYfUZ+gjAMXXvN6PQIDkRPUtxSWs ohHpOdtLKxzkEh7XCqQoeHgRI4EpexO9CAaJce23PTHYya3oxFqTRjnQI6hiBvTLc3XW R9ow0JH5v3qB8Uqdq1Pv6RuEqLbmDMD5gF7BVrezkRUbYZc/UPaY6kocHMCaMwV7IWmk 4rLbQmhn8sEfU3UlM9wHiEE9BBMk5xpENGXURBzCfS8+f8Zn/oaenbbfHZrVGabDRJ9J xOy5aWNliT+oHlKdnSoEzuO/ePb7dKUIKMPZYGDWBXDBngIbyWd9ZccCvt9WWbaVh7vQ LmuA== 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=Cu/XGlwOQIYzzIn+/oHs5i6vEGStV2iZeztewVlBDYc=; b=owReJE6xEhnv2f5P9mAF4KpOn8iMGd4UjIeZepCjE8Pk/+d+Aoi24TUtQQHRJ+wqVn 2sqLBC/BC0LJXtxhN10aJQiD9pS3TYW+SClwT92tzr3aqA8ImbMnme2WcFxCoylW9uas B1GeD1jBYPGFtM/dgdCi+YPhPzeFMINU3ENEHDgob42Bq8VQreFoEyZXWQXnS0d7bP65 jL9QzZTCBB6QyftzeFXSfbHltY5C9IehhsNck/bdh354+PXnWRwnnmx2BYaNZ2TCn/fj f0Xi+X4XbShoy9k7tkKY00rf5a7boAK2B9mG7ZiuhXjlKEn7GskYAHd5OW4dQvHlndVl AVCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LbjS3rNz; 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 j8si1806183ejn.202.2021.09.09.06.25.50; Thu, 09 Sep 2021 06:26:20 -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=LbjS3rNz; 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 S1376272AbhIINUf (ORCPT + 99 others); Thu, 9 Sep 2021 09:20:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:43556 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357525AbhIINBk (ORCPT ); Thu, 9 Sep 2021 09:01:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3BDAC63287; Thu, 9 Sep 2021 11:59:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631188768; bh=7Wns3l9gX+H590DCvppk6lTmRGB+Hss0HwLW9cHwN+0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LbjS3rNzN2YCMQ2j9j7OZ6HuKM4Mxw+8scrbcU9BnIY7+5SjrAhmTVAPv31XvZyIZ ihCcN5ly3ng2GaxpuaBHi27qMTX1Bp9QAJkciB4yz9EoOwohf0nQ0PziiIhmDuRzQP lU9FOyVBgOLJE4Up5NCGReVC1Us0VS9SH6D8rJXB58IuM5m/YSjJobW2yhmClAEyUB IDl7jGo/lK0LQd3bPM/oLWMTGn4y51KHPC0FaNeOxGOeSI0+qn3qrNPL4TDsvXMQeE yIMF7WCUzntccVJGXHT3dy160I2zB4jr9rUnPiojkjpiSNfkfmzVq/tHMMO0LyGhaM Z3z5eCD4Fn0fA== 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 4.14 22/59] s390/jump_label: print real address in a case of a jump label bug Date: Thu, 9 Sep 2021 07:58:23 -0400 Message-Id: <20210909115900.149795-22-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909115900.149795-1-sashal@kernel.org> References: <20210909115900.149795-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 43f8430fb67d..608b363cd35b 100644 --- a/arch/s390/kernel/jump_label.c +++ b/arch/s390/kernel/jump_label.c @@ -43,7 +43,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