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