mm, thp: do not set PTE_SPECIAL for huge zero page
authorSung-hun Kim <sfoon.kim@samsung.com>
Fri, 1 Oct 2021 04:06:07 +0000 (13:06 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 7 Feb 2022 08:01:41 +0000 (17:01 +0900)
commitf93b06761aa75cfc2e8b91fe700d254bbdf76405
tree76fccabab4a96d95f997da142393e38744cecc3a
parentba78f1fc86a7bdfd875bbdafd4b66cac58638809
mm, thp: do not set PTE_SPECIAL for huge zero page

In previous version of the kernel, a huge zero page is remapped
to normal pte mappings with PTE_SPECIAL flag when the split of
hugepage is requested. It makes a buggy situation when the
kernel tries to find a page with vm_normal_page.

This patch resolves this problem by adding a condition to if-
statement.

Change-Id: I62946d3c3e92be309ccbe987f24a33503a7e23dc
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
mm/huge_memory.c