Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-27 Thread Rafael J. Wysocki
On Thursday, July 28, 2016 01:20:53 AM Rafael J. Wysocki wrote: > On Wednesday, July 27, 2016 05:17:38 PM Josh Poimboeuf wrote: > > On Thu, Jul 28, 2016 at 12:12:15AM +0200, Rafael J. Wysocki wrote: > > > On Wednesday, July 27, 2016 12:59:18 PM Josh Poimboeuf wrote: > > > > Hm... I have a theory,

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-27 Thread Rafael J. Wysocki
On Thursday, July 28, 2016 01:20:53 AM Rafael J. Wysocki wrote: > On Wednesday, July 27, 2016 05:17:38 PM Josh Poimboeuf wrote: > > On Thu, Jul 28, 2016 at 12:12:15AM +0200, Rafael J. Wysocki wrote: > > > On Wednesday, July 27, 2016 12:59:18 PM Josh Poimboeuf wrote: > > > > Hm... I have a theory,

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-27 Thread Rafael J. Wysocki
On Wednesday, July 27, 2016 05:17:38 PM Josh Poimboeuf wrote: > On Thu, Jul 28, 2016 at 12:12:15AM +0200, Rafael J. Wysocki wrote: > > On Wednesday, July 27, 2016 12:59:18 PM Josh Poimboeuf wrote: > > > Hm... I have a theory, but I'm not sure about it. I noticed that > > >

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-27 Thread Rafael J. Wysocki
On Wednesday, July 27, 2016 05:17:38 PM Josh Poimboeuf wrote: > On Thu, Jul 28, 2016 at 12:12:15AM +0200, Rafael J. Wysocki wrote: > > On Wednesday, July 27, 2016 12:59:18 PM Josh Poimboeuf wrote: > > > Hm... I have a theory, but I'm not sure about it. I noticed that > > >

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-27 Thread Josh Poimboeuf
On Thu, Jul 28, 2016 at 12:12:15AM +0200, Rafael J. Wysocki wrote: > On Wednesday, July 27, 2016 12:59:18 PM Josh Poimboeuf wrote: > > Hm... I have a theory, but I'm not sure about it. I noticed that > > x86_acpi_enter_sleep_state(), > > I think you mean x86_acpi_suspend_lowlevel(). Oops! > >

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-27 Thread Josh Poimboeuf
On Thu, Jul 28, 2016 at 12:12:15AM +0200, Rafael J. Wysocki wrote: > On Wednesday, July 27, 2016 12:59:18 PM Josh Poimboeuf wrote: > > Hm... I have a theory, but I'm not sure about it. I noticed that > > x86_acpi_enter_sleep_state(), > > I think you mean x86_acpi_suspend_lowlevel(). Oops! > >

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-27 Thread Rafael J. Wysocki
On Thursday, July 28, 2016 12:12:15 AM Rafael J. Wysocki wrote: > On Wednesday, July 27, 2016 12:59:18 PM Josh Poimboeuf wrote: > > On Wed, Jul 27, 2016 at 01:08:21AM +0200, Rafael J. Wysocki wrote: > > > On Wed, Jul 27, 2016 at 12:42 AM, Rafael J. Wysocki > > > wrote: > > >

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-27 Thread Rafael J. Wysocki
On Thursday, July 28, 2016 12:12:15 AM Rafael J. Wysocki wrote: > On Wednesday, July 27, 2016 12:59:18 PM Josh Poimboeuf wrote: > > On Wed, Jul 27, 2016 at 01:08:21AM +0200, Rafael J. Wysocki wrote: > > > On Wed, Jul 27, 2016 at 12:42 AM, Rafael J. Wysocki > > > wrote: > > > > On Tuesday, July

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-27 Thread Rafael J. Wysocki
On Wednesday, July 27, 2016 12:59:18 PM Josh Poimboeuf wrote: > On Wed, Jul 27, 2016 at 01:08:21AM +0200, Rafael J. Wysocki wrote: > > On Wed, Jul 27, 2016 at 12:42 AM, Rafael J. Wysocki > > wrote: > > > On Tuesday, July 26, 2016 04:53:19 PM Josh Poimboeuf wrote: > > >> On

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-27 Thread Rafael J. Wysocki
On Wednesday, July 27, 2016 12:59:18 PM Josh Poimboeuf wrote: > On Wed, Jul 27, 2016 at 01:08:21AM +0200, Rafael J. Wysocki wrote: > > On Wed, Jul 27, 2016 at 12:42 AM, Rafael J. Wysocki > > wrote: > > > On Tuesday, July 26, 2016 04:53:19 PM Josh Poimboeuf wrote: > > >> On Tue, Jul 26, 2016 at

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-27 Thread Josh Poimboeuf
On Wed, Jul 27, 2016 at 01:08:21AM +0200, Rafael J. Wysocki wrote: > On Wed, Jul 27, 2016 at 12:42 AM, Rafael J. Wysocki > wrote: > > On Tuesday, July 26, 2016 04:53:19 PM Josh Poimboeuf wrote: > >> On Tue, Jul 26, 2016 at 10:15:39PM +0200, Rafael J. Wysocki wrote: > >> > On

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-27 Thread Josh Poimboeuf
On Wed, Jul 27, 2016 at 01:08:21AM +0200, Rafael J. Wysocki wrote: > On Wed, Jul 27, 2016 at 12:42 AM, Rafael J. Wysocki > wrote: > > On Tuesday, July 26, 2016 04:53:19 PM Josh Poimboeuf wrote: > >> On Tue, Jul 26, 2016 at 10:15:39PM +0200, Rafael J. Wysocki wrote: > >> > On Tuesday, July 26,

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Borislav Petkov
On Tue, Jul 26, 2016 at 02:17:29PM -0700, Thomas Garnier wrote: > I am sorry, there has been parallel work between KASLR memory > randomization and hibernation support. That's why hibernation was not > tested, it was not supported when the feature was created. > Communication will be better next

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Borislav Petkov
On Tue, Jul 26, 2016 at 02:17:29PM -0700, Thomas Garnier wrote: > I am sorry, there has been parallel work between KASLR memory > randomization and hibernation support. That's why hibernation was not > tested, it was not supported when the feature was created. > Communication will be better next

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
On Wed, Jul 27, 2016 at 12:42 AM, Rafael J. Wysocki wrote: > On Tuesday, July 26, 2016 04:53:19 PM Josh Poimboeuf wrote: >> On Tue, Jul 26, 2016 at 10:15:39PM +0200, Rafael J. Wysocki wrote: >> > On Tuesday, July 26, 2016 09:39:05 AM Josh Poimboeuf wrote: >> > > On Tue, Jul

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
On Wed, Jul 27, 2016 at 12:42 AM, Rafael J. Wysocki wrote: > On Tuesday, July 26, 2016 04:53:19 PM Josh Poimboeuf wrote: >> On Tue, Jul 26, 2016 at 10:15:39PM +0200, Rafael J. Wysocki wrote: >> > On Tuesday, July 26, 2016 09:39:05 AM Josh Poimboeuf wrote: >> > > On Tue, Jul 26, 2016 at 01:32:28PM

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
On Tuesday, July 26, 2016 04:53:19 PM Josh Poimboeuf wrote: > On Tue, Jul 26, 2016 at 10:15:39PM +0200, Rafael J. Wysocki wrote: > > On Tuesday, July 26, 2016 09:39:05 AM Josh Poimboeuf wrote: > > > On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > > > > Hi, > > > > > > > > The

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
On Tuesday, July 26, 2016 04:53:19 PM Josh Poimboeuf wrote: > On Tue, Jul 26, 2016 at 10:15:39PM +0200, Rafael J. Wysocki wrote: > > On Tuesday, July 26, 2016 09:39:05 AM Josh Poimboeuf wrote: > > > On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > > > > Hi, > > > > > > > > The

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Josh Poimboeuf
On Tue, Jul 26, 2016 at 10:15:39PM +0200, Rafael J. Wysocki wrote: > On Tuesday, July 26, 2016 09:39:05 AM Josh Poimboeuf wrote: > > On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > > > Hi, > > > > > > The following commit: > > > > > > commit

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Josh Poimboeuf
On Tue, Jul 26, 2016 at 10:15:39PM +0200, Rafael J. Wysocki wrote: > On Tuesday, July 26, 2016 09:39:05 AM Josh Poimboeuf wrote: > > On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > > > Hi, > > > > > > The following commit: > > > > > > commit

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Thomas Garnier
I am sorry, there has been parallel work between KASLR memory randomization and hibernation support. That's why hibernation was not tested, it was not supported when the feature was created. Communication will be better next time. I will work on identifying the problem and pushing a fix. Thanks

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Thomas Garnier
I am sorry, there has been parallel work between KASLR memory randomization and hibernation support. That's why hibernation was not tested, it was not supported when the feature was created. Communication will be better next time. I will work on identifying the problem and pushing a fix. Thanks

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Kees Cook
On Tue, Jul 26, 2016 at 1:53 PM, Rafael J. Wysocki wrote: > On Tuesday, July 26, 2016 01:33:02 PM Kees Cook wrote: >> On Tue, Jul 26, 2016 at 1:24 PM, Rafael J. Wysocki >> wrote: >> > On Tuesday, July 26, 2016 04:04:42 PM Borislav Petkov wrote: >> >> On

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Kees Cook
On Tue, Jul 26, 2016 at 1:53 PM, Rafael J. Wysocki wrote: > On Tuesday, July 26, 2016 01:33:02 PM Kees Cook wrote: >> On Tue, Jul 26, 2016 at 1:24 PM, Rafael J. Wysocki >> wrote: >> > On Tuesday, July 26, 2016 04:04:42 PM Borislav Petkov wrote: >> >> On Tue, Jul 26, 2016 at 01:32:28PM +0200,

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
On Tuesday, July 26, 2016 01:33:02 PM Kees Cook wrote: > On Tue, Jul 26, 2016 at 1:24 PM, Rafael J. Wysocki wrote: > > On Tuesday, July 26, 2016 04:04:42 PM Borislav Petkov wrote: > >> On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > >> > Hi, > >> > > >> >

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
On Tuesday, July 26, 2016 01:33:02 PM Kees Cook wrote: > On Tue, Jul 26, 2016 at 1:24 PM, Rafael J. Wysocki wrote: > > On Tuesday, July 26, 2016 04:04:42 PM Borislav Petkov wrote: > >> On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > >> > Hi, > >> > > >> > The following

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
On Tuesday, July 26, 2016 01:31:00 PM Kees Cook wrote: > On Tue, Jul 26, 2016 at 1:15 PM, Rafael J. Wysocki wrote: > > On Tuesday, July 26, 2016 09:39:05 AM Josh Poimboeuf wrote: > >> On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > >> > Hi, > >> > > >> >

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
On Tuesday, July 26, 2016 01:31:00 PM Kees Cook wrote: > On Tue, Jul 26, 2016 at 1:15 PM, Rafael J. Wysocki wrote: > > On Tuesday, July 26, 2016 09:39:05 AM Josh Poimboeuf wrote: > >> On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > >> > Hi, > >> > > >> > The following commit:

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Kees Cook
On Tue, Jul 26, 2016 at 1:24 PM, Rafael J. Wysocki wrote: > On Tuesday, July 26, 2016 04:04:42 PM Borislav Petkov wrote: >> On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: >> > Hi, >> > >> > The following commit: >> > >> > commit

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Kees Cook
On Tue, Jul 26, 2016 at 1:24 PM, Rafael J. Wysocki wrote: > On Tuesday, July 26, 2016 04:04:42 PM Borislav Petkov wrote: >> On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: >> > Hi, >> > >> > The following commit: >> > >> > commit 13523309495cdbd57a0d344c0d5d574987af007f >> >

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Kees Cook
On Tue, Jul 26, 2016 at 1:15 PM, Rafael J. Wysocki wrote: > On Tuesday, July 26, 2016 09:39:05 AM Josh Poimboeuf wrote: >> On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: >> > Hi, >> > >> > The following commit: >> > >> > commit

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Kees Cook
On Tue, Jul 26, 2016 at 1:15 PM, Rafael J. Wysocki wrote: > On Tuesday, July 26, 2016 09:39:05 AM Josh Poimboeuf wrote: >> On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: >> > Hi, >> > >> > The following commit: >> > >> > commit 13523309495cdbd57a0d344c0d5d574987af007f >> >

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
On Tuesday, July 26, 2016 04:04:42 PM Borislav Petkov wrote: > On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > > Hi, > > > > The following commit: > > > > commit 13523309495cdbd57a0d344c0d5d574987af007f > > Author: Josh Poimboeuf > > Date: Thu Jan 21

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
On Tuesday, July 26, 2016 04:04:42 PM Borislav Petkov wrote: > On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > > Hi, > > > > The following commit: > > > > commit 13523309495cdbd57a0d344c0d5d574987af007f > > Author: Josh Poimboeuf > > Date: Thu Jan 21 16:49:21 2016 -0600 >

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
On Tuesday, July 26, 2016 09:39:05 AM Josh Poimboeuf wrote: > On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > > Hi, > > > > The following commit: > > > > commit 13523309495cdbd57a0d344c0d5d574987af007f > > Author: Josh Poimboeuf > > Date: Thu Jan 21

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
On Tuesday, July 26, 2016 09:39:05 AM Josh Poimboeuf wrote: > On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > > Hi, > > > > The following commit: > > > > commit 13523309495cdbd57a0d344c0d5d574987af007f > > Author: Josh Poimboeuf > > Date: Thu Jan 21 16:49:21 2016 -0600 >

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Josh Poimboeuf
On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > Hi, > > The following commit: > > commit 13523309495cdbd57a0d344c0d5d574987af007f > Author: Josh Poimboeuf > Date: Thu Jan 21 16:49:21 2016 -0600 > > x86/asm/acpi: Create a stack frame in

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Josh Poimboeuf
On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > Hi, > > The following commit: > > commit 13523309495cdbd57a0d344c0d5d574987af007f > Author: Josh Poimboeuf > Date: Thu Jan 21 16:49:21 2016 -0600 > > x86/asm/acpi: Create a stack frame in do_suspend_lowlevel() > >

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Borislav Petkov
On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > Hi, > > The following commit: > > commit 13523309495cdbd57a0d344c0d5d574987af007f > Author: Josh Poimboeuf > Date: Thu Jan 21 16:49:21 2016 -0600 > > x86/asm/acpi: Create a stack frame in

Re: Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Borislav Petkov
On Tue, Jul 26, 2016 at 01:32:28PM +0200, Rafael J. Wysocki wrote: > Hi, > > The following commit: > > commit 13523309495cdbd57a0d344c0d5d574987af007f > Author: Josh Poimboeuf > Date: Thu Jan 21 16:49:21 2016 -0600 > > x86/asm/acpi: Create a stack frame in do_suspend_lowlevel() > >

Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
Hi, The following commit: commit 13523309495cdbd57a0d344c0d5d574987af007f Author: Josh Poimboeuf Date: Thu Jan 21 16:49:21 2016 -0600 x86/asm/acpi: Create a stack frame in do_suspend_lowlevel() do_suspend_lowlevel() is a callable non-leaf function which

Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
Hi, The following commit: commit 13523309495cdbd57a0d344c0d5d574987af007f Author: Josh Poimboeuf Date: Thu Jan 21 16:49:21 2016 -0600 x86/asm/acpi: Create a stack frame in do_suspend_lowlevel() do_suspend_lowlevel() is a callable non-leaf function which doesn't honor