Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3259505rwb; Mon, 15 Aug 2022 22:33:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR43/V+hFA+6nTa/iUQ50Rz78d6yKIizwT0sEpxaTUGvRVCjgozzXNG4ghPO1+sf4Pcbzgr8 X-Received: by 2002:a17:90b:1b07:b0:1f5:115c:79a4 with SMTP id nu7-20020a17090b1b0700b001f5115c79a4mr21995897pjb.166.1660628000441; Mon, 15 Aug 2022 22:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660628000; cv=none; d=google.com; s=arc-20160816; b=1EwzivaPpRPuitc5hfJF7O5YWC0/GKGmxt73sE5tQ8QKYN4P2NC3xEZQh0iLCX10d+ idwU+vwYIYvPPnDV1C/ipZjkgguTiirTVwyUFOjYbEMMBgWUv9GJf42Yhh1iKIjl+VKo X60Lm/FfQi8+/ULfiPgf13QpQtW90tpUuzV+qMuQLLup0BcqlMHs+LK7EanQ/sk/ELcG Bx50W7AhRw6cmJirD3BYsScaiHpAwAFNfXTtt6DQElc0+Lohb1UVY/fM9//eFQvemTiv AfYjSU1zn2PfLl9qkWXSAelqRS4ibN9gE8AyhEvu3RopaF4GhLiRjYq25Sjeryf/Jh1l lcuw== 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=aaQYp0bMUKLtyTJKOONI5hFTmQ5DDO1EpV/JtHrmX/Y=; b=rNNRnO6DTyU1nLpF+GuVGs9TpN+3/T4VD8aS70jpzHBDotd1xJVO6SZZPh0u4u2xFi rx26LRQk6KKt1zcc3+dbMF/KVDqHxwJfrX/uBdE5WD1ZoxnzrO/zHSVND5bxhRSlynmQ HP/g9UfDeLA4nl5B+xGFHu/BEXFNDeULeS862OIIBn3J7IK72cDmUQBU3UI7fcJaDC/v VQs7Chlcz3ptmVMnypjTl35/5heDuA06XGGfIWwBdLB4ol78nft5/XO8UNaz2HQKu3Gy TZ36+wqw/DBSu9VzoVj2rgDje7PfEFy7Av0rmUgUy7N3UQwtcpH7/qkJDO26ta6KOrQx GbnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=znBoKjZl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o21-20020a056a0015d500b0052e30022678si14177000pfu.3.2022.08.15.22.33.09; Mon, 15 Aug 2022 22:33:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=znBoKjZl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231648AbiHPEmG (ORCPT + 99 others); Tue, 16 Aug 2022 00:42:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231557AbiHPEju (ORCPT ); Tue, 16 Aug 2022 00:39:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E0E617B00C; Mon, 15 Aug 2022 13:33:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2E3C661072; Mon, 15 Aug 2022 20:33:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 215CAC433C1; Mon, 15 Aug 2022 20:33:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595605; bh=eSyVbOiJThicFPpIwquYb7vK65+7GU6j6F/FuNbE3hU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=znBoKjZlPLtBFHQ5HdC3Qd7TXwKQ23xhKEBTPfBnifc2YvgE0DkCJfKvqeeJCxOtT lbRAo/3XXNLq2Mnk8SPbNajl+5rQvekNbRQ7YDYwKjWj4UWOEx55uFFvD3nPbq87i6 OtbIy8qvIlvP7J8voTo5yDleji2iHuO74rwEsEeU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Fuad Tabba , Kalesh Singh , Marc Zyngier , Sasha Levin Subject: [PATCH 5.19 0817/1157] KVM: arm64: Fix hypervisor address symbolization Date: Mon, 15 Aug 2022 20:02:53 +0200 Message-Id: <20220815180512.169696319@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kalesh Singh [ Upstream commit ed6313a93fd11d2015ad17046f3c418bf6a8dab1 ] With CONFIG_RANDOMIZE_BASE=y vmlinux addresses will resolve incorrectly from kallsyms. Fix this by adding the KASLR offset before printing the symbols. Fixes: 6ccf9cb557bd ("KVM: arm64: Symbolize the nVHE HYP addresses") Reported-by: Fuad Tabba Signed-off-by: Kalesh Singh Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20220715235824.2549012-1-kaleshsingh@google.com Signed-off-by: Sasha Levin --- arch/arm64/kvm/handle_exit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/kvm/handle_exit.c b/arch/arm64/kvm/handle_exit.c index f66c0142b335..e43926ef2bc2 100644 --- a/arch/arm64/kvm/handle_exit.c +++ b/arch/arm64/kvm/handle_exit.c @@ -347,10 +347,10 @@ void __noreturn __cold nvhe_hyp_panic_handler(u64 esr, u64 spsr, kvm_err("nVHE hyp BUG at: %s:%u!\n", file, line); else kvm_err("nVHE hyp BUG at: [<%016llx>] %pB!\n", panic_addr, - (void *)panic_addr); + (void *)(panic_addr + kaslr_offset())); } else { kvm_err("nVHE hyp panic at: [<%016llx>] %pB!\n", panic_addr, - (void *)panic_addr); + (void *)(panic_addr + kaslr_offset())); } /* -- 2.35.1