]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitafae5d614ae69d952643062a08fe2e31c4f6ece5
tree6cdd0438bd890d614a043891de86290fcd3efb3f
parent96c780970becae0c38ab6f1e50657479d38ed16c
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