]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
s390/jump_label: print real address in a case of a jump label bug
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 12 Jul 2021 17:26:01 +0000 (19:26 +0200)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Tue, 12 Oct 2021 22:31:31 +0000 (16:31 -0600)
BugLink: https://bugs.launchpad.net/bugs/1946802
[ 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 <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
arch/s390/kernel/jump_label.c

index ab584e8e352754996078054fefef4883d07e5997..9156653b56f69b4482351fb9a020316b72556f6d 100644 (file)
@@ -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);