From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A0A635F15; Fri, 24 Nov 2023 18:44:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="clwNgsBK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F612C433C7; Fri, 24 Nov 2023 18:44:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1700851466; bh=cW+MDuMcAiAS5fnkDotZ3pW8RkYEvQkLZ54a9YNyaFc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=clwNgsBKu+P9r9BmhSbJYHbPKL6Qn2QZm+ENu08l9owiyF2veFSzV37BmdmxlZudo SL/XD/H3IOkopXsdqPqfBCv7nWtz+sXYPYNwuKGzDAFKDTqkOlUm9+sxZ1jdkh0Pw6 BhkdmOkAOSCRE3UjTPasako/dQak05wtCxTrZjuk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Nam Cao , Palmer Dabbelt Subject: [PATCH 6.5 435/491] riscv: put interrupt entries into .irqentry.text Date: Fri, 24 Nov 2023 17:51:11 +0000 Message-ID: <20231124172037.681940473@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231124172024.664207345@linuxfoundation.org> References: <20231124172024.664207345@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.5-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nam Cao commit 87615e95f6f9ccd36d4a3905a2d87f91967ea9d2 upstream. The interrupt entries are expected to be in the .irqentry.text section. For example, for kprobes to work properly, exception code cannot be probed; this is ensured by blacklisting addresses in the .irqentry.text section. Fixes: 7db91e57a0ac ("RISC-V: Task implementation") Signed-off-by: Nam Cao Link: https://lore.kernel.org/r/20230821145708.21270-1-namcaov@gmail.com Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt Signed-off-by: Greg Kroah-Hartman --- arch/riscv/kernel/entry.S | 2 ++ 1 file changed, 2 insertions(+) --- a/arch/riscv/kernel/entry.S +++ b/arch/riscv/kernel/entry.S @@ -16,6 +16,8 @@ #include #include + .section .irqentry.text, "ax" + SYM_CODE_START(handle_exception) /* * If coming from userspace, preserve the user thread pointer and load