提交 e6a23a8d 编写于 作者: Z Zhou Guanghui 提交者: Wang Wensheng

mm/sharepool: bugfix for 2M U2K

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5PZDX
CVE: NA

--------------------------------

We could determine if a userspace map is huge-mapped after walking its
pagetable. So the uva_align should be calculated again after walking
the pagetable if it is huge-mapped.
Signed-off-by: NZhou Guanghui <zhouguanghui1@huawei.com>
上级 d9687e45
......@@ -3188,6 +3188,9 @@ static int __sp_walk_page_range(unsigned long uva, unsigned long size,
sp_walk_data->pages = NULL;
}
if (sp_walk_data->is_hugepage)
sp_walk_data->uva_aligned = ALIGN_DOWN(uva, PMD_SIZE);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册