Re: [PATCH] RISC-V: Acquire mmap lock before invoking walk_page_range

From: Michel Lespinasse
Date: Wed Jun 17 2020 - 20:01:44 EST


On Wed, Jun 17, 2020 at 1:38 PM Atish Patra <atish.patra@xxxxxxx> wrote:
> As per walk_page_range documentation, mmap lock should be acquired by the
> caller before invoking walk_page_range. mmap_assert_locked gets triggered
> without that. The details can be found here.
>
> http://lists.infradead.org/pipermail/linux-riscv/2020-June/010335.html
>
> Fixes: 395a21ff859c(riscv: add ARCH_HAS_SET_DIRECT_MAP support)
> Signed-off-by: Atish Patra <atish.patra@xxxxxxx>

Thanks for the fix.

Reviewed-by: Michel Lespinasse <walken@xxxxxxxxxx>