mbox series

[0/2] Fix the page table size of KASAN use.

Message ID 20200207095245.21955-1-zong.li@sifive.com (mailing list archive)
Headers show
Series Fix the page table size of KASAN use. | expand

Message

Zong Li Feb. 7, 2020, 9:52 a.m. UTC
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. For example, if it only
allocates 200 pmd entries memory size for pmd page table, then the
original 201 entry will be used to other purpose, and cause the
unexpected fault when accessing the page table.

Zong Li (2):
  riscv: allocate a complete page size for each page table
  riscv: adjust the indent

 arch/riscv/mm/kasan_init.c | 53 ++++++++++++++++++++++----------------
 1 file changed, 31 insertions(+), 22 deletions(-)