]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
docs: disable KASLR when debugging kernel
authorZhouyi Zhou <zhouzhouyi@gmail.com>
Fri, 7 Jul 2017 08:51:45 +0000 (16:51 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 28 Sep 2017 14:34:53 +0000 (10:34 -0400)
commit24159749527afe4f32aaa11cc67d68e0e45d325e
treea746866038a5c8c653aea4173c783b73819d15cd
parentbccfeaa0931a082ecec74e756276688ece6ad9e8
docs: disable KASLR when debugging kernel

BugLink: http://bugs.launchpad.net/bugs/1720154
commit e604f1cb85367d2e5fd4cf253296d190996da81a upstream.

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>
Cc: Natale Patriciello <natale.patriciello@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Documentation/dev-tools/gdb-kernel-debugging.rst