Re: [PATCH v3 2/2] riscv: Cleanup KASAN_VMALLOC support

2021-04-15 Thread Palmer Dabbelt
On Tue, 30 Mar 2021 02:47:30 PDT (-0700), ge...@linux-m68k.org wrote: Hi Palmer, On Tue, Mar 30, 2021 at 7:08 AM Palmer Dabbelt wrote: On Sat, 13 Mar 2021 00:45:05 PST (-0800), a...@ghiti.fr wrote: > When KASAN vmalloc region is populated, there is no userspace process and > the page table in

Re: [PATCH v3 2/2] riscv: Cleanup KASAN_VMALLOC support

2021-03-30 Thread Geert Uytterhoeven
Hi Palmer, On Tue, Mar 30, 2021 at 7:08 AM Palmer Dabbelt wrote: > On Sat, 13 Mar 2021 00:45:05 PST (-0800), a...@ghiti.fr wrote: > > 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

Re: [PATCH v3 2/2] riscv: Cleanup KASAN_VMALLOC support

2021-03-29 Thread Palmer Dabbelt
On Sat, 13 Mar 2021 00:45:05 PST (-0800), a...@ghiti.fr wrote: 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

[PATCH v3 2/2] riscv: Cleanup KASAN_VMALLOC support

2021-03-13 Thread Alexandre Ghiti
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