浏览代码

arm64/mm: remove unnecessary boundary check

Remove the unnecessary boundary check since there is a huge
gap between user and kernel address that they would never overlap.
(arm64 does not have enough levels of page tables to cover 64-bit
virtual address)

See Documentation/arm64/memory.txt

Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Miles Chen 9 年之前
父节点
当前提交
b7dc8d16e7
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      arch/arm64/mm/init.c

+ 0 - 2
arch/arm64/mm/init.c

@@ -401,8 +401,6 @@ void __init mem_init(void)
 #ifdef CONFIG_COMPAT
 #ifdef CONFIG_COMPAT
 	BUILD_BUG_ON(TASK_SIZE_32			> TASK_SIZE_64);
 	BUILD_BUG_ON(TASK_SIZE_32			> TASK_SIZE_64);
 #endif
 #endif
-	BUILD_BUG_ON(TASK_SIZE_64			> MODULES_VADDR);
-	BUG_ON(TASK_SIZE_64				> MODULES_VADDR);
 
 
 	if (PAGE_SIZE >= 16384 && get_num_physpages() <= 128) {
 	if (PAGE_SIZE >= 16384 && get_num_physpages() <= 128) {
 		extern int sysctl_overcommit_memory;
 		extern int sysctl_overcommit_memory;