Files
linux/kernel
Thomas Garnier 119c348a8e PM / hibernate: Restore processor state before using per-CPU variables
commit 62822e2ec4ad091ba31f823f577ef80db52e3c2c upstream.

Restore the processor state before calling any other functions to
ensure per-CPU variables can be used with KASLR memory randomization.

Tracing functions use per-CPU variables (GS based on x86) and one was
called just before restoring the processor state fully. It resulted
in a double fault when both the tracing & the exception handler
functions tried to use a per-CPU variable.

Fixes: bb3632c610 (PM / sleep: trace events for suspend/resume)
Reported-and-tested-by: Borislav Petkov <bp@suse.de>
Reported-by: Jiri Kosina <jikos@kernel.org>
Tested-by: Rafael J. Wysocki <rafael@kernel.org>
Tested-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Thomas Garnier <thgarnie@google.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-09-30 10:18:39 +02:00
..
2016-06-24 10:18:17 -07:00
2016-09-15 08:27:53 +02:00
2016-09-24 10:07:46 +02:00
2015-11-04 08:23:51 -05:00
2016-08-10 11:49:27 +02:00
2016-09-30 10:18:33 +02:00
2016-09-24 10:07:36 +02:00
2015-11-23 09:44:58 +01:00
2015-11-05 19:34:48 -08:00