aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorQinglin Pan <[email protected]>2022-10-09 16:30:50 +0800
committerPalmer Dabbelt <[email protected]>2022-10-27 14:55:58 -0700
commit9f2ac64d6ca60db99132e08628ac2899f956a0ec (patch)
treea7e71c75e82e41f423ffacb300bfaa1bf2dd9568 /lib/mpi/mpi-sub-ui.c
parent389ec68c83ee142f2edde954751fb67dafb5be32 (diff)
riscv: mm: add missing memcpy in kasan_init
Hi Atish, It seems that the panic is due to the missing memcpy during kasan_init. Could you please check whether this patch is helpful? When doing kasan_populate, the new allocated base_pud/base_p4d should contain kasan_early_shadow_{pud, p4d}'s content. Add the missing memcpy to avoid page fault when read/write kasan shadow region. Tested on: - qemu with sv57 and CONFIG_KASAN on. - qemu with sv48 and CONFIG_KASAN on. Signed-off-by: Qinglin Pan <[email protected]> Tested-by: Atish Patra <[email protected]> Fixes: 8fbdccd2b173 ("riscv: mm: Support kasan for sv57") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions