]> git.baikalelectronics.ru Git - kernel.git/commit
mm, hwpoison: check PageTable() explicitly in hwpoison_user_mappings()
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 30 Aug 2022 12:36:03 +0000 (20:36 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 27 Sep 2022 02:46:04 +0000 (19:46 -0700)
commita3a7b617f0d867bb4f57413214ebfbfedbb47706
tree64c1f94458215b85846f9ed6ef1853b0d74ad4aa
parentc3775feb7a25277e8f2195007bad89f3e0337de0
mm, hwpoison: check PageTable() explicitly in hwpoison_user_mappings()

PageTable can't be handled by memory_failure(). Filter it out explicitly in
hwpoison_user_mappings(). This will also make code more consistent with the
relevant check in unpoison_memory().

Link: https://lkml.kernel.org/r/20220830123604.25763-6-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory-failure.c