mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
riscv: Check if the code to patch lies in the exit section
[ Upstream commit420370f3ae] Otherwise we fall through to vmalloc_to_page() which panics since the address does not lie in the vmalloc region. Fixes:043cb41a85("riscv: introduce interfaces to patch kernel code") Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com> Reviewed-by: Charlie Jenkins <charlie@rivosinc.com> Link: https://lore.kernel.org/r/20231214091926.203439-1-alexghiti@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
e111d2319a
commit
8db56df4a9
4 changed files with 15 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue