Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp801451pxa; Wed, 5 Aug 2020 13:07:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJOQyPS1AdnL3kw2sSOEcDH9SMEn4/NyhDzCBg5mHZuArsst77ZhMmiAJ5DfWBSiSiW2Xq X-Received: by 2002:aa7:d304:: with SMTP id p4mr890331edq.267.1596658050716; Wed, 05 Aug 2020 13:07:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596658050; cv=none; d=google.com; s=arc-20160816; b=bB2fuA9LiXGBaGxk2H1LDcasV9nyaFx9ykiP+eHCewCgVF4xRVX5xP3hc7jM82g0BC /9KRNwTXObLdx+qcagwVbhYhC4LXxCOiDYVVV2cp5PgNpOOyrNbk079Y7iS3HAC+9jTN Qn8wND1tCYfyCKOxfm2xDHyGHP7V/2OZ+KD89Q+dU2wiewiXPOt89oZXL0SiHkUpNQXc tofEL4grhZFqTmkD6sq9ZfIbnu/A4IlUwTxS3x2jpKEQgg0PxHwmUpBQyu1aS4bdBqA3 myCNhpbfGSuTXAhC+k/0MI/47pFBfe44udZfDKfU7Ds8PSOl7GuzDjhQgpeh+iJ1JMAc ekYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=73TE3Q4uwrW1rWS+/0CQ/x7AFAa0oHt48EP6zwyBYkk=; b=pYlbW+QXdksNQjEYTB5+XWJhgloWutVEuaCxZAaDkWiykap8kCjkOoHydj5x6ijinB yHedgmJ7pN/LXq/wPxY9178JtVrpu2akMSQk+7Bx23J9MCyRtjOQ8HH8E7PJeEdkZB2K A87X+DuKp/6sfeDhQQkMnDChsaQMPtYyVW/l5gMSOKUrxWTwfwkTi2iBOp+zB/VbAYOZ KwGP9UqivY3Y7HfURP6FjgJCVRom4iiII2vrhyL2ysrO3wvLBMAC0bfYOLhYm73Yhyge 1fvg6Y4x9nWWePqmWDs2kwDSxBXUqVJz4ll5NIUc32SmPRFn+btb+JIxHLNuM3d909hg tK4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Q2CAA+zL; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si1782204edr.531.2020.08.05.13.07.07; Wed, 05 Aug 2020 13:07:30 -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=default header.b=Q2CAA+zL; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729793AbgHEUGt (ORCPT + 99 others); Wed, 5 Aug 2020 16:06:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:50662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727004AbgHEQeg (ORCPT ); Wed, 5 Aug 2020 12:34:36 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 01A7B233FA; Wed, 5 Aug 2020 15:53:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596642827; bh=yFYTa998NKrtDfXdDzp1QLN7+n8qgvxQI8H6upuXPM0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q2CAA+zLs41rHPezyGRZksu6+YhrO0485Rcl6azROb/J4aLyHFqROJyFENqOPgnh2 SNPJiK4nvOeqzCXVd1QLtZRN8s4RrWQ9lcCoYmf97ky9Q6n8ETo25yLewbQIRNZg+d xWc1h0MPStsqfvMMlOKf/CO9tv5aH7p9Naeft+Js= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ard Biesheuvel , Geert Uytterhoeven , Nicolas Pitre , Russell King , Nick Desaulniers Subject: [PATCH 4.14 8/8] ARM: 8702/1: head-common.S: Clear lr before jumping to start_kernel() Date: Wed, 5 Aug 2020 17:53:34 +0200 Message-Id: <20200805153507.382671788@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200805153507.005753845@linuxfoundation.org> References: <20200805153507.005753845@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geert Uytterhoeven commit 59b6359dd92d18f5dc04b14a4c926fa08ab66f7c upstream. If CONFIG_DEBUG_LOCK_ALLOC=y, the kernel log is spammed with a few hundred identical messages: unwind: Unknown symbol address c0800300 unwind: Index not found c0800300 c0800300 is the return address from the last subroutine call (to __memzero()) in __mmap_switched(). Apparently having this address in the link register confuses the unwinder. To fix this, reset the link register to zero before jumping to start_kernel(). Fixes: 9520b1a1b5f7a348 ("ARM: head-common.S: speed up startup code") Suggested-by: Ard Biesheuvel Signed-off-by: Geert Uytterhoeven Acked-by: Nicolas Pitre Signed-off-by: Russell King Signed-off-by: Greg Kroah-Hartman Signed-off-by: Nick Desaulniers --- arch/arm/kernel/head-common.S | 1 + 1 file changed, 1 insertion(+) --- a/arch/arm/kernel/head-common.S +++ b/arch/arm/kernel/head-common.S @@ -101,6 +101,7 @@ __mmap_switched: str r2, [r6] @ Save atags pointer cmp r7, #0 strne r0, [r7] @ Save control register values + mov lr, #0 b start_kernel ENDPROC(__mmap_switched)