Re: [PATCH 2/2] x86/KASLR/64: Determine kernel text mapping size at runtime

2016-12-08 Thread Baoquan He
Thanks, have changed. Will repost after i386 test is OK. On 12/08/16 at 05:41pm, kbuild test robot wrote: > Hi Baoquan, > > [auto build test ERROR on tip/x86/core] > [also build test ERROR on v4.9-rc8 next-20161208] > [if your patch is applied to the wrong git tree, please drop us a note to >

Re: [PATCH 2/2] x86/KASLR/64: Determine kernel text mapping size at runtime

2016-12-08 Thread Baoquan He
Thanks, have changed. Will repost after i386 test is OK. On 12/08/16 at 05:41pm, kbuild test robot wrote: > Hi Baoquan, > > [auto build test ERROR on tip/x86/core] > [also build test ERROR on v4.9-rc8 next-20161208] > [if your patch is applied to the wrong git tree, please drop us a note to >

Re: [PATCH 2/2] x86/KASLR/64: Determine kernel text mapping size at runtime

2016-12-08 Thread kbuild test robot
Hi Baoquan, [auto build test WARNING on tip/x86/core] [also build test WARNING on v4.9-rc8 next-20161208] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH 2/2] x86/KASLR/64: Determine kernel text mapping size at runtime

2016-12-08 Thread kbuild test robot
Hi Baoquan, [auto build test ERROR on tip/x86/core] [also build test ERROR on v4.9-rc8 next-20161208] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH 2/2] x86/KASLR/64: Determine kernel text mapping size at runtime

2016-12-08 Thread kbuild test robot
Hi Baoquan, [auto build test WARNING on tip/x86/core] [also build test WARNING on v4.9-rc8 next-20161208] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH 2/2] x86/KASLR/64: Determine kernel text mapping size at runtime

2016-12-08 Thread kbuild test robot
Hi Baoquan, [auto build test ERROR on tip/x86/core] [also build test ERROR on v4.9-rc8 next-20161208] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH 2/2] x86/KASLR/64: Determine kernel text mapping size at runtime

2016-12-08 Thread Baoquan He
On 12/08/16 at 02:17pm, Alexnader Kuleshov wrote: > Hello, > > On 12-08-16, Baoquan He wrote: > > #define KERNEL_MAPPING_SIZE_EXT(1024 * 1024 * 1024) > > -#if defined(CONFIG_RANDOMIZE_BASE) > > -#define KERNEL_IMAGE_SIZE KERNEL_MAPPING_SIZE_EXT > > -#else > > -#define KERNEL_IMAGE_SIZE

Re: [PATCH 2/2] x86/KASLR/64: Determine kernel text mapping size at runtime

2016-12-08 Thread Baoquan He
On 12/08/16 at 02:17pm, Alexnader Kuleshov wrote: > Hello, > > On 12-08-16, Baoquan He wrote: > > #define KERNEL_MAPPING_SIZE_EXT(1024 * 1024 * 1024) > > -#if defined(CONFIG_RANDOMIZE_BASE) > > -#define KERNEL_IMAGE_SIZE KERNEL_MAPPING_SIZE_EXT > > -#else > > -#define KERNEL_IMAGE_SIZE

Re: [PATCH 2/2] x86/KASLR/64: Determine kernel text mapping size at runtime

2016-12-08 Thread Alexnader Kuleshov
Hello, On 12-08-16, Baoquan He wrote: > X86 64 kernel takes KERNEL_IMAGE_SIZE as the kernel text mapping size, > and it's fixed as compiling time, changing from 512M to 1G as long as > CONFIG_RANDOMIZE_BASE is enabled, though people specify kernel option > "nokaslr" explicitly. > > This could be

Re: [PATCH 2/2] x86/KASLR/64: Determine kernel text mapping size at runtime

2016-12-08 Thread Alexnader Kuleshov
Hello, On 12-08-16, Baoquan He wrote: > X86 64 kernel takes KERNEL_IMAGE_SIZE as the kernel text mapping size, > and it's fixed as compiling time, changing from 512M to 1G as long as > CONFIG_RANDOMIZE_BASE is enabled, though people specify kernel option > "nokaslr" explicitly. > > This could be

[PATCH 2/2] x86/KASLR/64: Determine kernel text mapping size at runtime

2016-12-07 Thread Baoquan He
X86 64 kernel takes KERNEL_IMAGE_SIZE as the kernel text mapping size, and it's fixed as compiling time, changing from 512M to 1G as long as CONFIG_RANDOMIZE_BASE is enabled, though people specify kernel option "nokaslr" explicitly. This could be a wrong behaviour. CONFIG_RANDOMIZE_BASE should

[PATCH 2/2] x86/KASLR/64: Determine kernel text mapping size at runtime

2016-12-07 Thread Baoquan He
X86 64 kernel takes KERNEL_IMAGE_SIZE as the kernel text mapping size, and it's fixed as compiling time, changing from 512M to 1G as long as CONFIG_RANDOMIZE_BASE is enabled, though people specify kernel option "nokaslr" explicitly. This could be a wrong behaviour. CONFIG_RANDOMIZE_BASE should