Home
last modified time | relevance | path

Searched hist:"2 da073c19641bb6820c3591d3d865120263f14e8" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/riscv/mm/
H A Dkasan_init.cdiff 2da073c19641bb6820c3591d3d865120263f14e8 Sat Mar 13 02:45:05 CST 2021 Alexandre Ghiti <alex@ghiti.fr> 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>