From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:34330 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751669AbdIUOys (ORCPT ); Thu, 21 Sep 2017 10:54:48 -0400 Date: Thu, 21 Sep 2017 16:54:58 +0200 From: Greg KH To: Natale Patriciello Cc: stable@vger.kernel.org Subject: Re: docs: disable KASLR when debugging kernel Message-ID: <20170921145458.GA23353@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: stable-owner@vger.kernel.org List-ID: 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