diff options
author | 2021-03-13 03:45:05 -0500 | |
---|---|---|
committer | 2021-03-29 23:13:29 -0700 | |
commit | 2da073c19641bb6820c3591d3d865120263f14e8 (patch) | |
tree | c60b934124b45604c1724fc3cbe1233267ef912f /scripts/package | |
parent | RISC-V: Don't print SBI version for all detected extensions (diff) | |
download | linux-dev-2da073c19641bb6820c3591d3d865120263f14e8.tar.xz linux-dev-2da073c19641bb6820c3591d3d865120263f14e8.zip |
riscv: Cleanup KASAN_VMALLOC support
When KASAN vmalloc region is populated, there is no userspace process and
the page table in use is swapper_pg_dir, so there is no need to read
SATP. Then we can use the same scheme used by kasan_populate_p*d
functions to go through the page table, which harmonizes the code.
In addition, make use of set_pgd that goes through all unused page table
levels, contrary to p*d_populate functions, which makes this function work
whatever the number of page table levels.
Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions