diff options
author | Alexandre Ghiti <alex@ghiti.fr> | 2021-03-13 03:45:05 -0500 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-03-29 23:13:29 -0700 |
commit | 2da073c19641bb6820c3591d3d865120263f14e8 (patch) | |
tree | c60b934124b45604c1724fc3cbe1233267ef912f /scripts/gcc-ld | |
parent | f35bb4b8d10a8ce356f0fff634fa885926f8d439 (diff) | |
download | linux-2da073c19641bb6820c3591d3d865120263f14e8.tar.gz linux-2da073c19641bb6820c3591d3d865120263f14e8.tar.bz2 linux-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 'scripts/gcc-ld')
0 files changed, 0 insertions, 0 deletions