Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9116983pxu; Mon, 28 Dec 2020 07:04:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9BUlSxG0dJEYHngXnG7pP0ySt9W+K1wZO0muOF8FqYNXRvWshxNkls6Ig4U/w/JHXHla2 X-Received: by 2002:a50:f404:: with SMTP id r4mr42487443edm.62.1609167875198; Mon, 28 Dec 2020 07:04:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609167875; cv=none; d=google.com; s=arc-20160816; b=BbKqhottwsjltwwjXjCfrjwFim7F2wBbtDdstpK4kKeZ2vzMNcs0ilaS9KnoDERa3V 6V6UeiASHacFoq3e6LPfKsRSrRo+ax51esJZOEiHKo6ONo2eVDDuXOQyl7Z2V254Ixei FvuZ5ljv2nfAp2UkmKuQdu1yK704RYCPEMZgHycpbjcyEcAinHXVyss9L2JFL58HJ+Wr FwXApxQjk+VunaNtxbFAnQv+XhJT8xBQne4r/TE8vOar0I+EAYoaRQxzXjbx+bF704o7 bSBbZwaDhH8SS/NKSGdb+sART/sdlViPAgK3yYQ09XFZSqnYk+yQF6wyCfVNen3gts6p ZgdA== 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=gwCRwQSFCxnuxYbL6eG3RKExmBEXpu4CQcB0lIzvfQw=; b=jC+PCbhrmkyNyPfnZS6XWI199+gjyXioPwToFWJENbo3Q7DhftvjL9btqT1TNCMN0R 7mjEaob2uguBxCzUQKo5lEYWJMPJf+6TpnTvf1jgZKQyteLLiQnbojuVF9vNcW3TCzA9 aj+j83oGbXyWw7c6rO4YhNaRUkKDKQEjPU5AFvOJJ3Tl0vygksipqrXpc2XzAdYrESMR RBAs7ydozS5yMzlePQMgbJMpy1E2/YDGZBXGmAPUaG7KSZf8yoANqr/K9QDspdEZS0cE NojMOIljjU6vrUrFhY/r6D/ZxCQdlIefleAV8DxEyss9dG180YObAsqUCazZime1Dwrk nE9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=M5nG27qG; 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 u13si21374635edp.96.2020.12.28.07.04.12; Mon, 28 Dec 2020 07:04:35 -0800 (PST) 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=M5nG27qG; 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 S2392489AbgL1PAc (ORCPT + 99 others); Mon, 28 Dec 2020 10:00:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:48592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440286AbgL1ON5 (ORCPT ); Mon, 28 Dec 2020 09:13:57 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 77E5722AAA; Mon, 28 Dec 2020 14:13:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164822; bh=z+/1Q0ebQr1TYmB6NIl35kKPnYKCKGArYFXs5zlAUiA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M5nG27qGwrXXGGhZthq48Ht7ACh25ke21Sq2yxLmZweEcp2qsoVsYzCIxJmQRmj2l RwebNbb3pwirZ0mvCbYCnoR3ARWKViaUKtOSfqqrZhzvwc9kLapnpW2FzUHCay4mkv csIRk/BzdMzdFIzdA0jNxrgPRpMvuu7p9j5H6wQg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jordan Niethe , Michael Ellerman , Sasha Levin Subject: [PATCH 5.10 280/717] powerpc/64: Fix an EMIT_BUG_ENTRY in head_64.S Date: Mon, 28 Dec 2020 13:44:38 +0100 Message-Id: <20201228125034.437621766@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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: Jordan Niethe [ Upstream commit fe18a35e685c9bdabc8b11b3e19deb85a068b75d ] Commit 63ce271b5e37 ("powerpc/prom: convert PROM_BUG() to standard trap") added an EMIT_BUG_ENTRY for the trap after the branch to start_kernel(). The EMIT_BUG_ENTRY was for the address "0b", however the trap was not labeled with "0". Hence the address used for bug is in relative_toc() where the previous "0" label is. Label the trap as "0" so the correct address is used. Fixes: 63ce271b5e37 ("powerpc/prom: convert PROM_BUG() to standard trap") Signed-off-by: Jordan Niethe Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20201130004404.30953-1-jniethe5@gmail.com Signed-off-by: Sasha Levin --- arch/powerpc/kernel/head_64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S index 7b7c8c5ee6602..2d6581db0c7b6 100644 --- a/arch/powerpc/kernel/head_64.S +++ b/arch/powerpc/kernel/head_64.S @@ -990,7 +990,7 @@ start_here_common: bl start_kernel /* Not reached */ - trap +0: trap EMIT_BUG_ENTRY 0b, __FILE__, __LINE__, 0 .previous -- 2.27.0