]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/hash: hard disable irq in the SLB insert path
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Fri, 1 Jun 2018 08:24:02 +0000 (13:54 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:40:38 +0000 (20:40 +1000)
commit091a2aedcf10333a0da1f1ea79a5faa5ad2e7bc9
tree1cfc27d0f084d34cc21978d63aa8e97fb4ba28ff
parent8617d37386921794976fdcb8e445f362212c33bd
powerpc/mm/hash: hard disable irq in the SLB insert path

When inserting SLB entries for EA above 512TB, we need to hard disable irq.
This will make sure we don't take a PMU interrupt that can possibly touch
user space address via a stack dump. To prevent this, we need to hard disable
the interrupt.

Also add a comment explaining why we don't need context synchronizing isync
with slbmte.

Fixes: 8cecdd48a ("powerpc/mm: Add support for handling > 512TB address in SLB miss")
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/slb.c