Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2829479pxb; Mon, 1 Nov 2021 02:42:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygqkzrNpU76bPkWNmMH5T4PiJS/7A/b9HumRwXBDcMKY1XmpjddRymS4bYpr2Lau1SrK9g X-Received: by 2002:a17:906:26da:: with SMTP id u26mr35070786ejc.315.1635759756816; Mon, 01 Nov 2021 02:42:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635759756; cv=none; d=google.com; s=arc-20160816; b=AjsQ+hBhUd8to94R/TzrDX2idVqiHSp7KiY6e3qxzD+fJXNnS2+ecvbaiRSDwkukGm ZbsRSn8CrRnY90DXtStb7HiNQ+rIIPqfILqpnU8w+JtWQO7Vy/Z6/C29taytj+d0V63Z qxIpU3ZkA3B+4tiGXQ0GJuTT9d1UT9ZlM61yJvdmiRDAHByvhxJ3GQOnZBDhF0ozkWY+ jjeYsmIAIx9rMhi8mZx6G88pTRWdwzdUhMkXCI2rRfx6PzsnuwRsKtYllLBPL7dSGykw h8tN8i7gAxtWjAGNYygdDG5CAfh0REcifO6lSdXaYoPMzyPH1LKwmKmykp0cQ18HrJIr Tnng== 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=FxEEHO5nBcM2PpSrFsHHnCldApdmUeREHTvIgq3pFvM=; b=PMl550Tq4BUKv443xOLIawqfV3ZEZWB1hZheaHiNSIBfTjm/G3qWnLKCPHE1mSCU+k f3gKvoOX6us2yCqlAEjibQWSJerJxHeHTh+PHq8AyhrTJ9wmmcaWnOrl8hD32CJLYLVd FWvN5Jgqx75F0C6MmmynppvH62OLk6N90NKaFaJ42BaIAStMoq4RnQjv0uqDUmrQuXK+ VEqva1Qzj4eDV9P/lTUskBieK9J5NnqOofCX9b6nGgNg7gFtq9KR14V5UMksyHJBGAUt asz6QyR/Ev+ryUuULLLDVQybhnnDHQd8r8bmtORQp7ymZ4cLRtfxCbLhDE3zq4WmefLR ahQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=A7JSgKKq; 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 g21si19275572ejm.276.2021.11.01.02.42.13; Mon, 01 Nov 2021 02:42:36 -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=A7JSgKKq; 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 S233405AbhKAJmD (ORCPT + 99 others); Mon, 1 Nov 2021 05:42:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:47850 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233427AbhKAJjp (ORCPT ); Mon, 1 Nov 2021 05:39:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 514A46112F; Mon, 1 Nov 2021 09:27:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1635758844; bh=xOmdrLMaR4ceIG50D7SxFSFU3GepjWv0UEegBLGgeQg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A7JSgKKq+5dsSeg+rkxnUiIGJEeb7nzkKC/Jiup2PzP9FG00SdvpjvFuxtUfLQmIE 3v1MWt2YD7b503ythfSrYjGpx8yuLfmD2bKa2qPFHY11luCIc79EsBclHw6qrmTRXi K/U5wwXUmIx3REW1I8HxAQqh3YNvVFTtXtuzZlPo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chen Lu <181250012@smail.nju.edu.cn>, Anup Patel , Palmer Dabbelt Subject: [PATCH 5.10 75/77] riscv: fix misalgned trap vector base address Date: Mon, 1 Nov 2021 10:18:03 +0100 Message-Id: <20211101082527.164506260@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211101082511.254155853@linuxfoundation.org> References: <20211101082511.254155853@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: Chen Lu <181250012@smail.nju.edu.cn> commit 64a19591a2938b170aa736443d5d3bf4c51e1388 upstream. The trap vector marked by label .Lsecondary_park must align on a 4-byte boundary, as the {m,s}tvec is defined to require 4-byte alignment. Signed-off-by: Chen Lu <181250012@smail.nju.edu.cn> Reviewed-by: Anup Patel Fixes: e011995e826f ("RISC-V: Move relocate and few other functions out of __init") Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt Signed-off-by: Greg Kroah-Hartman --- arch/riscv/kernel/head.S | 1 + 1 file changed, 1 insertion(+) --- a/arch/riscv/kernel/head.S +++ b/arch/riscv/kernel/head.S @@ -175,6 +175,7 @@ setup_trap_vector: csrw CSR_SCRATCH, zero ret +.align 2 .Lsecondary_park: /* We lack SMP support or have too many harts, so park this hart */ wfi