riscv: allocate a complete page size for each page table
authorZong Li <zong.li@sifive.com>
Fri, 7 Feb 2020 09:52:44 +0000 (17:52 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Mon, 24 Feb 2020 21:12:49 +0000 (13:12 -0800)
commita0a31fd84f8f66828790d860545d4167777d58c6
tree6cdd0438bd890d614a043891de86290fcd3efb3f
parente7167043ee508739fc9c5030494f94bea48cee23
riscv: allocate a complete page size for each page table

Each page table should be created by allocating a complete page size
for it. Otherwise, the content of the page table would be corrupted
somewhere through memory allocation which allocates the memory at the
middle of the page table for other use.

Signed-off-by: Zong Li <zong.li@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/kasan_init.c