* [PATCH] arm64/mm: remove unnecessary boundary check
@ 2016-02-25 3:44 ` miles.chen
0 siblings, 0 replies; 8+ messages in thread
From: miles.chen @ 2016-02-25 3:44 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon
Cc: linux-arm-kernel, linux-kernel, srv_wsdupstream, linux-mediatek,
Miles Chen
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] 8+ messages in thread
* [PATCH] arm64/mm: remove unnecessary boundary check
@ 2016-02-25 3:44 ` miles.chen
0 siblings, 0 replies; 8+ messages in thread
From: miles.chen @ 2016-02-25 3:44 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon
Cc: linux-arm-kernel, linux-kernel, srv_wsdupstream, linux-mediatek,
Miles Chen
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] 8+ messages in thread
* [PATCH] arm64/mm: remove unnecessary boundary check
@ 2016-02-25 3:44 ` miles.chen
0 siblings, 0 replies; 8+ 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] 8+ messages in thread
* Re: [PATCH] arm64/mm: remove unnecessary boundary check
2016-02-25 3:44 ` miles.chen
@ 2016-02-26 9:47 ` Will Deacon
-1 siblings, 0 replies; 8+ messages in thread
From: Will Deacon @ 2016-02-26 9:47 UTC (permalink / raw)
To: miles.chen
Cc: Catalin Marinas, linux-arm-kernel, linux-kernel, srv_wsdupstream,
linux-mediatek
On Thu, Feb 25, 2016 at 11:44:34AM +0800, miles.chen@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] 8+ messages in thread
* [PATCH] arm64/mm: remove unnecessary boundary check
@ 2016-02-26 9:47 ` Will Deacon
0 siblings, 0 replies; 8+ 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] 8+ messages in thread
* Re: [PATCH] arm64/mm: remove unnecessary boundary check
@ 2016-02-26 13:40 ` Catalin Marinas
0 siblings, 0 replies; 8+ messages in thread
From: Catalin Marinas @ 2016-02-26 13:40 UTC (permalink / raw)
To: miles.chen
Cc: Will Deacon, srv_wsdupstream, linux-mediatek, linux-kernel,
linux-arm-kernel
On Thu, Feb 25, 2016 at 11:44:34AM +0800, miles.chen@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] 8+ messages in thread
* Re: [PATCH] arm64/mm: remove unnecessary boundary check
@ 2016-02-26 13:40 ` Catalin Marinas
0 siblings, 0 replies; 8+ messages in thread
From: Catalin Marinas @ 2016-02-26 13:40 UTC (permalink / raw)
To: miles.chen-NuS5LvNUpcJWk0Htik3J/w
Cc: srv_wsdupstream-NuS5LvNUpcJWk0Htik3J/w,
linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Will Deacon,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
On Thu, Feb 25, 2016 at 11:44:34AM +0800, miles.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org wrote:
> From: Miles Chen <miles.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
>
> 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-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
Applied. Thanks.
--
Catalin
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] arm64/mm: remove unnecessary boundary check
@ 2016-02-26 13:40 ` Catalin Marinas
0 siblings, 0 replies; 8+ 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] 8+ messages in thread
end of thread, other threads:[~2016-02-26 13:40 UTC | newest]
Thread overview: 8+ 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
2016-02-25 3:44 ` miles.chen at mediatek.com
2016-02-25 3:44 ` miles.chen
2016-02-26 9:47 ` Will Deacon
2016-02-26 9:47 ` Will Deacon
2016-02-26 13:40 ` Catalin Marinas
2016-02-26 13:40 ` Catalin Marinas
2016-02-26 13:40 ` Catalin Marinas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.