From: Greg KH <gregkh@linuxfoundation.org>
To: Natale Patriciello <natale.patriciello@gmail.com>
Cc: stable@vger.kernel.org
Subject: Re: docs: disable KASLR when debugging kernel
Date: Thu, 21 Sep 2017 16:54:58 +0200 [thread overview]
Message-ID: <20170921145458.GA23353@kroah.com> (raw)
In-Reply-To: <CAAyZ8npWy4R_UHN9vok6sStxEbOZ3YK9TWp6V=OZJkHCCoSATw@mail.gmail.com>
On Thu, Sep 21, 2017 at 04:20:22PM +0200, Natale Patriciello wrote:
> Hello,
>
> Using KASLR will confuse gdb which resolves kernel symbol address from
> symbol table of vmlinux. We should turn off KASLR for kernel
> debugging, even in the older kernels in which its presence is
> optional.
>
> If you think it is correct, please apply to the kernels:
>
> - 4.9 [ LTS ]
> - 4.13 [ stable ]
>
> The following commit already on the Linus tree:
>
> - e604f1cb85367d2e5fd4cf253296d190996da81a ("docs: disable KASLR when
> debugging kernel")
As this option was only enabled by default in 4.12, let's keep this only
in 4.13 and newer, 4.9 doesn't matter here as to turn it on, you had to
know what you were doing :)
thanks,
greg k-h
prev parent reply other threads:[~2017-09-21 14:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-21 14:20 docs: disable KASLR when debugging kernel Natale Patriciello
2017-09-21 14:54 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170921145458.GA23353@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=natale.patriciello@gmail.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).