Re: kaslr relocation incompitable with kernel loaded high

2014-04-22 Thread Kees Cook
On Mon, Apr 21, 2014 at 10:28 PM, WANG Chao wrote: > On 04/21/14 at 09:58pm, Yinghai Lu wrote: >> On Mon, Apr 21, 2014 at 8:16 PM, WANG Chao wrote: >> > On 04/21/14 at 11:01am, Kees Cook wrote: >> >> On Mon, Apr 21, 2014 at 10:56 AM, Yinghai Lu wrote: >> >> > On Mon, Apr 21, 2014 at 3:52 AM,

Re: kaslr relocation incompitable with kernel loaded high

2014-04-22 Thread Kees Cook
On Mon, Apr 21, 2014 at 10:28 PM, WANG Chao chaow...@redhat.com wrote: On 04/21/14 at 09:58pm, Yinghai Lu wrote: On Mon, Apr 21, 2014 at 8:16 PM, WANG Chao chaow...@redhat.com wrote: On 04/21/14 at 11:01am, Kees Cook wrote: On Mon, Apr 21, 2014 at 10:56 AM, Yinghai Lu ying...@kernel.org

Re: kaslr relocation incompitable with kernel loaded high

2014-04-21 Thread WANG Chao
On 04/21/14 at 09:58pm, Yinghai Lu wrote: > On Mon, Apr 21, 2014 at 8:16 PM, WANG Chao wrote: > > On 04/21/14 at 11:01am, Kees Cook wrote: > >> On Mon, Apr 21, 2014 at 10:56 AM, Yinghai Lu wrote: > >> > On Mon, Apr 21, 2014 at 3:52 AM, WANG Chao wrote: > >> >> Hi, Kees > >> >> > >> >> When I'm

Re: kaslr relocation incompitable with kernel loaded high

2014-04-21 Thread Yinghai Lu
On Mon, Apr 21, 2014 at 8:16 PM, WANG Chao wrote: > On 04/21/14 at 11:01am, Kees Cook wrote: >> On Mon, Apr 21, 2014 at 10:56 AM, Yinghai Lu wrote: >> > On Mon, Apr 21, 2014 at 3:52 AM, WANG Chao wrote: >> >> Hi, Kees >> >> >> >> When I'm testing kaslr with kdump, I find that when 2nd kernel is

Re: kaslr relocation incompitable with kernel loaded high

2014-04-21 Thread WANG Chao
On 04/21/14 at 11:01am, Kees Cook wrote: > On Mon, Apr 21, 2014 at 10:56 AM, Yinghai Lu wrote: > > On Mon, Apr 21, 2014 at 3:52 AM, WANG Chao wrote: > >> Hi, Kees > >> > >> When I'm testing kaslr with kdump, I find that when 2nd kernel is loaded > >> high, it doesn't boot. > >> > >> I reserved

Re: kaslr relocation incompitable with kernel loaded high

2014-04-21 Thread Kees Cook
On Mon, Apr 21, 2014 at 10:56 AM, Yinghai Lu wrote: > On Mon, Apr 21, 2014 at 3:52 AM, WANG Chao wrote: >> Hi, Kees >> >> When I'm testing kaslr with kdump, I find that when 2nd kernel is loaded >> high, it doesn't boot. >> >> I reserved 128M memory at high with kernel cmdline >>

Re: kaslr relocation incompitable with kernel loaded high

2014-04-21 Thread H. Peter Anvin
On 04/21/2014 10:56 AM, Yinghai Lu wrote: >> >> 32-bit relocation outside of kernel! > > Interesting, when kernel get at "early console in decompress_kernel" > kernel already in 64 bit... > > what does it mean "32-bit relocation outside of kernel" ? > > why 32-bit is involved ? > Most

Re: kaslr relocation incompitable with kernel loaded high

2014-04-21 Thread Yinghai Lu
On Mon, Apr 21, 2014 at 3:52 AM, WANG Chao wrote: > Hi, Kees > > When I'm testing kaslr with kdump, I find that when 2nd kernel is loaded > high, it doesn't boot. > > I reserved 128M memory at high with kernel cmdline > "crashkernel=128M,high crashkernel=0,low", and for which I got: > > [

Re: kaslr relocation incompitable with kernel loaded high

2014-04-21 Thread Yinghai Lu
On Mon, Apr 21, 2014 at 3:52 AM, WANG Chao chaow...@redhat.com wrote: Hi, Kees When I'm testing kaslr with kdump, I find that when 2nd kernel is loaded high, it doesn't boot. I reserved 128M memory at high with kernel cmdline crashkernel=128M,high crashkernel=0,low, and for which I got: [

Re: kaslr relocation incompitable with kernel loaded high

2014-04-21 Thread H. Peter Anvin
On 04/21/2014 10:56 AM, Yinghai Lu wrote: 32-bit relocation outside of kernel! Interesting, when kernel get at early console in decompress_kernel kernel already in 64 bit... what does it mean 32-bit relocation outside of kernel ? why 32-bit is involved ? Most addresses and

Re: kaslr relocation incompitable with kernel loaded high

2014-04-21 Thread Kees Cook
On Mon, Apr 21, 2014 at 10:56 AM, Yinghai Lu ying...@kernel.org wrote: On Mon, Apr 21, 2014 at 3:52 AM, WANG Chao chaow...@redhat.com wrote: Hi, Kees When I'm testing kaslr with kdump, I find that when 2nd kernel is loaded high, it doesn't boot. I reserved 128M memory at high with kernel

Re: kaslr relocation incompitable with kernel loaded high

2014-04-21 Thread WANG Chao
On 04/21/14 at 11:01am, Kees Cook wrote: On Mon, Apr 21, 2014 at 10:56 AM, Yinghai Lu ying...@kernel.org wrote: On Mon, Apr 21, 2014 at 3:52 AM, WANG Chao chaow...@redhat.com wrote: Hi, Kees When I'm testing kaslr with kdump, I find that when 2nd kernel is loaded high, it doesn't boot.

Re: kaslr relocation incompitable with kernel loaded high

2014-04-21 Thread Yinghai Lu
On Mon, Apr 21, 2014 at 8:16 PM, WANG Chao chaow...@redhat.com wrote: On 04/21/14 at 11:01am, Kees Cook wrote: On Mon, Apr 21, 2014 at 10:56 AM, Yinghai Lu ying...@kernel.org wrote: On Mon, Apr 21, 2014 at 3:52 AM, WANG Chao chaow...@redhat.com wrote: Hi, Kees When I'm testing kaslr with

Re: kaslr relocation incompitable with kernel loaded high

2014-04-21 Thread WANG Chao
On 04/21/14 at 09:58pm, Yinghai Lu wrote: On Mon, Apr 21, 2014 at 8:16 PM, WANG Chao chaow...@redhat.com wrote: On 04/21/14 at 11:01am, Kees Cook wrote: On Mon, Apr 21, 2014 at 10:56 AM, Yinghai Lu ying...@kernel.org wrote: On Mon, Apr 21, 2014 at 3:52 AM, WANG Chao chaow...@redhat.com