* [PATCH] arm64/mm: remove unnecessary boundary check @ 2016-02-25 3:44 miles.chen at mediatek.com 2016-02-26 9:47 ` Will Deacon 2016-02-26 13:40 ` Catalin Marinas 0 siblings, 2 replies; 3+ messages in thread From: miles.chen at mediatek.com @ 2016-02-25 3:44 UTC (permalink / raw) To: linux-arm-kernel From: Miles Chen <miles.chen@mediatek.com> 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> --- arch/arm64/mm/init.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index f3b061e..4579604 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -343,8 +343,6 @@ void __init mem_init(void) #ifdef CONFIG_COMPAT BUILD_BUG_ON(TASK_SIZE_32 > TASK_SIZE_64); #endif - BUILD_BUG_ON(TASK_SIZE_64 > MODULES_VADDR); - BUG_ON(TASK_SIZE_64 > MODULES_VADDR); if (PAGE_SIZE >= 16384 && get_num_physpages() <= 128) { extern int sysctl_overcommit_memory; -- 1.9.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] arm64/mm: remove unnecessary boundary check 2016-02-25 3:44 [PATCH] arm64/mm: remove unnecessary boundary check miles.chen at mediatek.com @ 2016-02-26 9:47 ` Will Deacon 2016-02-26 13:40 ` Catalin Marinas 1 sibling, 0 replies; 3+ messages in thread From: Will Deacon @ 2016-02-26 9:47 UTC (permalink / raw) To: linux-arm-kernel On Thu, Feb 25, 2016 at 11:44:34AM +0800, miles.chen at mediatek.com wrote: > From: Miles Chen <miles.chen@mediatek.com> > > 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> > --- > arch/arm64/mm/init.c | 2 -- > 1 file changed, 2 deletions(-) Acked-by: Will Deacon <will.deacon@arm.com> Will ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] arm64/mm: remove unnecessary boundary check 2016-02-25 3:44 [PATCH] arm64/mm: remove unnecessary boundary check miles.chen at mediatek.com 2016-02-26 9:47 ` Will Deacon @ 2016-02-26 13:40 ` Catalin Marinas 1 sibling, 0 replies; 3+ messages in thread From: Catalin Marinas @ 2016-02-26 13:40 UTC (permalink / raw) To: linux-arm-kernel On Thu, Feb 25, 2016 at 11:44:34AM +0800, miles.chen at mediatek.com wrote: > From: Miles Chen <miles.chen@mediatek.com> > > 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> Applied. Thanks. -- Catalin ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-02-26 13:40 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-02-25 3:44 [PATCH] arm64/mm: remove unnecessary boundary check miles.chen at mediatek.com 2016-02-26 9:47 ` Will Deacon 2016-02-26 13:40 ` Catalin Marinas
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).