Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1925851pxb; Thu, 16 Sep 2021 20:29:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0JNFxXB/y3n42H8H+Wa/5vAyeAt4gBA/RZJGMMV8hK2nTG6ZqiqM/WfUgLOHywJaoq2V9 X-Received: by 2002:a17:906:a08a:: with SMTP id q10mr9645125ejy.100.1631849391045; Thu, 16 Sep 2021 20:29:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631849391; cv=none; d=google.com; s=arc-20160816; b=kaY+yf01yxLgaNGMD/s7tsbHdzGusDDNT7BaKctBU05v1i+O6/fLDkXRo2IhYzh4OK VE3bCp49QrpfmVjX5vPvX2t4dg+g2rZdcrTSx4I89hcPIzX/GvlgUxZF8F0eK+cSlN1I bB+2Ma1qefxfxmC9CzmCv/L5FyWgCje4rLh5icnNqGe7gDBoFJdeY73iYviP888Imjrq He7kLyJ4yXtmlBrgwTEa8A1tSjsO7SCzsD5Tqb89B1jGkvVV/cnSWmE79ag2boqDarpP wxr7EoykAg4E2RM1c0fP6kaxV5cHeIyjt9a8mfv5Aq6VsMc2PjJCp4qoB3t2fzD1Ul4Y Hogw== 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=ysYvZXbCx0dHzWNP9botFfU7m6txXE7OVRS7OcMQxK4=; b=QVkxKX73UOvp2n9ajxCqiDU1WxK9StAaGOP8sitzC9pYE5jEv/sfIdAditKWfbVzeK gVxVMxCqWBL1SuLNtz7+FpX3ezaJw48AyQH/7NII1HkVu0IIn5Dv8T3ZDrVrK5ykosV8 RwrA6Igzydkxauema4aYIRWax0ucUeRmXUKb3mxFelvvUQtDIq+vR/VtzyISqhZrI4+s FDThWrn8/BCqoYWH8i4UjA5se2LAmYkvHKfHniudfDWpGJdACkrTPS4tTOLRDOCnn4Uj DigtQsHm3ONjvnTr3u5kYRLJKnsYmdfr3tXw5LLTdRO302IAo9XnTfno1Yf88qxjrCiv pTQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BEHVdwvT; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si6417613ejr.28.2021.09.16.20.29.27; Thu, 16 Sep 2021 20:29:51 -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=@linuxfoundation.org header.s=korg header.b=BEHVdwvT; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353910AbhIPRfZ (ORCPT + 99 others); Thu, 16 Sep 2021 13:35:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:46948 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348338AbhIPRZw (ORCPT ); Thu, 16 Sep 2021 13:25:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A5A2F61BF6; Thu, 16 Sep 2021 16:44:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631810677; bh=uwA0nUERC+utH2fpcqTViMZbqrZcqe6qSSC9TEOQ8Yg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BEHVdwvTyh3M8Uy3FJDkqSzEcpIttWifuq520mGrJ4wsRKx/DRoKnUDKyJQvKYD7g //62ErO/hsstsKf7j0Dbjz192nJf7d1nzI9+MSgIsLM9KaxVh7fG7eKYnQEm+SxMwh k12z88mcmlyzd7BnmQHk4ZopCCuXs/IpHB0Qo1hg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Heiko Carstens , Sasha Levin Subject: [PATCH 5.14 227/432] s390/jump_label: print real address in a case of a jump label bug Date: Thu, 16 Sep 2021 17:59:36 +0200 Message-Id: <20210916155818.538921806@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155810.813340753@linuxfoundation.org> References: <20210916155810.813340753@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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