]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
powerpc/mm/mce: Keep irqs disabled during lockless page table walk
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Wed, 18 Sep 2019 14:53:28 +0000 (20:23 +0530)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit419d5ed57a5ce4d2bed65e22d9634e3f316c0f46
treeae32986e7423a18a6b54b502ec6852a3c0971687
parentf87d1ccc2c7e1cf6da8b153a969f81e7cfb6161c
powerpc/mm/mce: Keep irqs disabled during lockless page table walk

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit d9101bfa6adc831bda8836c4d774820553c14942 ]

__find_linux_mm_pte() returns a page table entry pointer after walking
the page table without holding locks. To make it safe against a THP
split and/or collapse, we disable interrupts around the lockless page
table walk. However we need to keep interrupts disabled as long as we
use the page table entry pointer that is returned.

Fix addr_to_pfn() to do that.

Fixes: ba41e1e1ccb9 ("powerpc/mce: Hookup derror (load/store) UE errors")
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
[mpe: Rearrange code slightly and tweak change log wording]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190918145328.28602-1-aneesh.kumar@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/powerpc/kernel/mce_power.c