linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Fix the page table size of KASAN use.
@ 2020-02-10  5:56 Zong Li
  2020-02-10  5:56 ` [PATCH v2 1/2] riscv: allocate a complete page size for each page table Zong Li
  2020-02-10  5:56 ` [PATCH v2 2/2] riscv: adjust the indent Zong Li
  0 siblings, 2 replies; 3+ messages in thread
From: Zong Li @ 2020-02-10  5:56 UTC (permalink / raw)
  To: paul.walmsley, palmer, aou, linux-riscv, linux-kernel, joe, nickhu
  Cc: Zong Li

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-10  5:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-10  5:56 [PATCH v2 0/2] Fix the page table size of KASAN use Zong Li
2020-02-10  5:56 ` [PATCH v2 1/2] riscv: allocate a complete page size for each page table Zong Li
2020-02-10  5:56 ` [PATCH v2 2/2] riscv: adjust the indent Zong Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).