Re: [PATCH] arm64: correct modules range of kernel virtual memory layout

2017-08-08 Thread Ard Biesheuvel
On 8 August 2017 at 15:18, Will Deacon wrote: > On Tue, Aug 08, 2017 at 03:04:55PM +0100, Ard Biesheuvel wrote: >> On 8 August 2017 at 14:19, Will Deacon wrote: >> > On Tue, Aug 08, 2017 at 01:27:25PM +0800, Miles Chen wrote: >> >> On Tue, 2017-08-08 at 12:44 +0800, Miles Chen wrote: >> >> > Agre

Re: [PATCH] arm64: correct modules range of kernel virtual memory layout

2017-08-08 Thread Will Deacon
On Tue, Aug 08, 2017 at 03:04:55PM +0100, Ard Biesheuvel wrote: > On 8 August 2017 at 14:19, Will Deacon wrote: > > On Tue, Aug 08, 2017 at 01:27:25PM +0800, Miles Chen wrote: > >> On Tue, 2017-08-08 at 12:44 +0800, Miles Chen wrote: > >> > Agreed.MODULES_VADDR should be phased out. Considering th

Re: [PATCH] arm64: correct modules range of kernel virtual memory layout

2017-08-08 Thread Ard Biesheuvel
On 8 August 2017 at 14:19, Will Deacon wrote: > On Tue, Aug 08, 2017 at 01:27:25PM +0800, Miles Chen wrote: >> On Tue, 2017-08-08 at 12:44 +0800, Miles Chen wrote: >> > On Mon, 2017-08-07 at 15:01 +0100, Will Deacon wrote: >> > > On Mon, Aug 07, 2017 at 02:18:00PM +0100, Ard Biesheuvel wrote: >> >

Re: [PATCH] arm64: correct modules range of kernel virtual memory layout

2017-08-08 Thread Will Deacon
On Tue, Aug 08, 2017 at 01:27:25PM +0800, Miles Chen wrote: > On Tue, 2017-08-08 at 12:44 +0800, Miles Chen wrote: > > On Mon, 2017-08-07 at 15:01 +0100, Will Deacon wrote: > > > On Mon, Aug 07, 2017 at 02:18:00PM +0100, Ard Biesheuvel wrote: > > > > On 7 August 2017 at 14:16, Will Deacon wrote: >

Re: [PATCH] arm64: correct modules range of kernel virtual memory layout

2017-08-07 Thread Miles Chen
On Tue, 2017-08-08 at 12:44 +0800, Miles Chen wrote: > On Mon, 2017-08-07 at 15:01 +0100, Will Deacon wrote: > > On Mon, Aug 07, 2017 at 02:18:00PM +0100, Ard Biesheuvel wrote: > > > On 7 August 2017 at 14:16, Will Deacon wrote: > > > > On Mon, Aug 07, 2017 at 07:04:46PM +0800, Miles Chen wrote: >

Re: [PATCH] arm64: correct modules range of kernel virtual memory layout

2017-08-07 Thread Miles Chen
On Mon, 2017-08-07 at 15:01 +0100, Will Deacon wrote: > On Mon, Aug 07, 2017 at 02:18:00PM +0100, Ard Biesheuvel wrote: > > On 7 August 2017 at 14:16, Will Deacon wrote: > > > On Mon, Aug 07, 2017 at 07:04:46PM +0800, Miles Chen wrote: > > >> The commit f80fb3a3d508 ("arm64: add support for kernel

Re: [PATCH] arm64: correct modules range of kernel virtual memory layout

2017-08-07 Thread Will Deacon
On Mon, Aug 07, 2017 at 02:18:00PM +0100, Ard Biesheuvel wrote: > On 7 August 2017 at 14:16, Will Deacon wrote: > > On Mon, Aug 07, 2017 at 07:04:46PM +0800, Miles Chen wrote: > >> The commit f80fb3a3d508 ("arm64: add support for kernel ASLR") > >> moved module virtual address to > >> [module_allo

Re: [PATCH] arm64: correct modules range of kernel virtual memory layout

2017-08-07 Thread Ard Biesheuvel
On 7 August 2017 at 14:36, Miles Chen wrote: > On Mon, 2017-08-07 at 14:18 +0100, Ard Biesheuvel wrote: >> On 7 August 2017 at 14:16, Will Deacon wrote: >> > On Mon, Aug 07, 2017 at 07:04:46PM +0800, Miles Chen wrote: >> >> The commit f80fb3a3d508 ("arm64: add support for kernel ASLR") >> >> move

Re: [PATCH] arm64: correct modules range of kernel virtual memory layout

2017-08-07 Thread Miles Chen
On Mon, 2017-08-07 at 14:18 +0100, Ard Biesheuvel wrote: > On 7 August 2017 at 14:16, Will Deacon wrote: > > On Mon, Aug 07, 2017 at 07:04:46PM +0800, Miles Chen wrote: > >> The commit f80fb3a3d508 ("arm64: add support for kernel ASLR") > >> moved module virtual address to > >> [module_alloc_base,

Re: [PATCH] arm64: correct modules range of kernel virtual memory layout

2017-08-07 Thread Ard Biesheuvel
On 7 August 2017 at 14:16, Will Deacon wrote: > On Mon, Aug 07, 2017 at 07:04:46PM +0800, Miles Chen wrote: >> The commit f80fb3a3d508 ("arm64: add support for kernel ASLR") >> moved module virtual address to >> [module_alloc_base, module_alloc_base + MODULES_VSIZE). >> >> Display module informati

Re: [PATCH] arm64: correct modules range of kernel virtual memory layout

2017-08-07 Thread Will Deacon
On Mon, Aug 07, 2017 at 07:04:46PM +0800, Miles Chen wrote: > The commit f80fb3a3d508 ("arm64: add support for kernel ASLR") > moved module virtual address to > [module_alloc_base, module_alloc_base + MODULES_VSIZE). > > Display module information of the virtual kernel > memory layout by using mod

[PATCH] arm64: correct modules range of kernel virtual memory layout

2017-08-07 Thread Miles Chen
The commit f80fb3a3d508 ("arm64: add support for kernel ASLR") moved module virtual address to [module_alloc_base, module_alloc_base + MODULES_VSIZE). Display module information of the virtual kernel memory layout by using module_alloc_base. testing output: 1) Current implementation: Virtual kern