Thread (2 messages) flat view 2 messages, 2 authors, 2019-08-22

Re: [PATCH] powerpc/kasan: fix parallele loading of modules.

From: Michael Ellerman <hidden>
Date: 2019-08-22 13:37:37

On Fri, 2019-08-09 at 14:58:09 UTC, Christophe Leroy wrote:
Parallele loading of modules may lead to bad setup of shadow
page table entries.

First, lets align modules so that two modules never share the same
shadow page.

Second, ensure that two modules cannot allocate two page tables for
the same PMD entry at the same time. This is done by using
init_mm.page_table_lock in the same way as __pte_alloc_kernel()

Fixes: 2edb16efc899 ("powerpc/32: Add KASAN support")
Cc: stable@vger.kernel.org
Signed-off-by: Christophe Leroy <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/45ff3c55958542c3b76075d59741297b8cb31cbb

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help