]> 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)
commit908aa7599f80ae2a1773b6273d0720f42487422f
tree6cdd0438bd890d614a043891de86290fcd3efb3f
parent83cebef3b52581f9dfe0486d4b9a43db2ba76ec9
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