diff options
author | Alexandre Ghiti <alexandre.ghiti@canonical.com> | 2022-02-25 15:39:53 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2022-03-04 02:34:29 +0300 |
commit | e4fcfe6eca6f32357f1b4408ff15b10527518eee (patch) | |
tree | 4b10d6e95f382337251bd12e6a8f084cf43179fe /arch/riscv/boot | |
parent | 625e24a550e6a600e639b43cf7c15879b2a70840 (diff) | |
download | linux-e4fcfe6eca6f32357f1b4408ff15b10527518eee.tar.xz |
riscv: Fix kasan pud population
In sv48, the kasan inner regions are not aligned on PGDIR_SIZE and then
when we populate the kasan linear mapping region, we clear the kasan
vmalloc region which is in the same PGD.
Fix this by copying the content of the kasan early pud after allocating a
new PGD for the first time.
Fixes: e8a62cc26ddf ("riscv: Implement sv48 support")
Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/boot')
0 files changed, 0 insertions, 0 deletions