docs: disable KASLR when debugging kernel
authorZhouyi Zhou <zhouzhouyi@gmail.com>
Fri, 7 Jul 2017 08:51:45 +0000 (16:51 +0800)
committerJonathan Corbet <corbet@lwn.net>
Mon, 17 Jul 2017 20:49:01 +0000 (14:49 -0600)
commite604f1cb85367d2e5fd4cf253296d190996da81a
treec481484c5793fd6936f823054e3bb68e4795b51d
parent14994a9bb4f4f042da9f1195ec76677552801eee
docs: disable KASLR when debugging kernel

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 <zhouzhouyi@gmail.com>
Reviewed-by: Kieran Bingham <kbingham@kernel.org>
Acked-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/dev-tools/gdb-kernel-debugging.rst