summaryrefslogtreecommitdiff
path: root/mm/Kconfig.debug
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2022-05-26 14:33:50 +0300
committerakpm <akpm@linux-foundation.org>2022-05-27 18:55:18 +0300
commit24c8e27e63224ce832b4723cb60632d3eddb55de (patch)
tree7bfdfa301eb22eacbc930dbfc807823350146848 /mm/Kconfig.debug
parent3e35142ef99fe6b4fe5d834ad43ee13cca10a2dc (diff)
downloadlinux-24c8e27e63224ce832b4723cb60632d3eddb55de.tar.xz
mm/page_table_check: fix accessing unmapped ptep
ptep is unmapped too early, so ptep could theoretically be accessed while it's unmapped. This might become a problem if/when CONFIG_HIGHPTE becomes available on riscv. Fix it by deferring pte_unmap() until page table checking is done. [akpm@linux-foundation.org: account for ptep alteration, per Matthew] Link: https://lkml.kernel.org/r/20220526113350.30806-1-linmiaohe@huawei.com Fixes: 80110bbfbba6 ("mm/page_table_check: check entries at pmd levels") Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Acked-by: Pasha Tatashin <pasha.tatashin@soleen.com> Cc: Qi Zheng <zhengqi.arch@bytedance.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions