Skip to content

Commit

Permalink
riscv: put interrupt entries into .irqentry.text
Browse files Browse the repository at this point in the history
commit 87615e9 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: 7db91e5 ("RISC-V: Task implementation")
Signed-off-by: Nam Cao <namcaov@gmail.com>
Link: https://lore.kernel.org/r/20230821145708.21270-1-namcaov@gmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
covanam authored and gregkh committed Nov 28, 2023
1 parent 8d49750 commit 05b2911
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/riscv/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <asm/errata_list.h>
#include <linux/sizes.h>

.section .irqentry.text, "ax"

SYM_CODE_START(handle_exception)
/*
* If coming from userspace, preserve the user thread pointer and load
Expand Down

0 comments on commit 05b2911

Please sign in to comment.