[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200210055654.96725-1-zong.li@sifive.com>
Date: Mon, 10 Feb 2020 13:56:52 +0800
From: Zong Li <zong.li@...ive.com>
To: paul.walmsley@...ive.com, palmer@...belt.com,
aou@...s.berkeley.edu, linux-riscv@...ts.infradead.org,
linux-kernel@...r.kernel.org, joe@...ches.com, nickhu@...estech.com
Cc: Zong Li <zong.li@...ive.com>
Subject: [PATCH v2 0/2] Fix the page table size of KASAN use.
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 | 52 ++++++++++++++++++++++----------------
1 file changed, 30 insertions(+), 22 deletions(-)
--
2.25.0
Powered by blists - more mailing lists