]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
riscv: put interrupt entries into .irqentry.text
authorNam Cao <namcaov@gmail.com>
Mon, 21 Aug 2023 14:57:09 +0000 (16:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:15:14 +0000 (17:15 +0000)
commit05b2911ac941ab9cc66305824a4d8bacea7f01c8
tree140a648cb162e9c7b70ed72aeaab33627384810a
parent8d497507ce26e7372a24ffd17af366bc1c90e240
riscv: put interrupt entries into .irqentry.text

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 <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>
arch/riscv/kernel/entry.S