Re: [PATCH 2/2] docs: disable KASLR when debugging kernel

2017-07-07 Thread Zhouyi Zhou
Hi Kieran, Thanks for your review and invaluable advise, I will prepare a new version immediately. On Fri, Jul 7, 2017 at 4:05 PM, Kieran Bingham wrote: > Hi Zhouyi > > Thankyou for the patch, > > On 07/07/17 08:14, Zhouyi Zhou wrote: >> commit 6807c84652b0 ("x86: Enable KASLR by default") en

Re: [PATCH 2/2] docs: disable KASLR when debugging kernel

2017-07-07 Thread Kieran Bingham
Hi Zhouyi Thankyou for the patch, On 07/07/17 08:14, Zhouyi Zhou wrote: > commit 6807c84652b0 ("x86: Enable KASLR by default") enables KASLR > by default on x86. While KASLR will confuse gdb which resolve kernel > symbol address from symbol table of vmlinux. We should turn off KASLR for > kernel

[PATCH 2/2] docs: disable KASLR when debugging kernel

2017-07-07 Thread Zhouyi Zhou
commit 6807c84652b0 ("x86: Enable KASLR by default") enables KASLR by default on x86. While KASLR will confuse gdb which resolve kernel symbol address from symbol table of vmlinux. We should turn off KASLR for kernel debugging. Signed-off-by: Zhouyi Zhou --- Documentation/dev-tools/gdb-kernel-