]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
PM / Hibernate: Restore old swap signature to avoid user space breakage
authorRafael J. Wysocki <rjw@sisk.pl>
Sat, 11 Dec 2010 20:46:44 +0000 (21:46 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 16 Dec 2010 16:08:58 +0000 (17:08 +0100)
Commit 3624eb0 (PM / Hibernate: Modify signature used to mark swap)
attempted to modify hibernate signature used to mark swap partitions
containing hibernation images, so that old kernels don't try to
handle compressed images.  However, this change broke resume from
hibernation on Fedora 14 that apparently doesn't pass the resume=
argument to the kernel and tries to trigger resume from early user
space.  This doesn't work, because the signature is now different,
so the old signature has to be restored to avoid the problem.

Addresses https://bugzilla.kernel.org/show_bug.cgi?id=22732 .

Reported-by: Dr. David Alan Gilbert <linux@treblig.org>
Reported-by: Zhang Rui <rui.zhang@intel.com>
Reported-by: Pascal Chapperon <pascal.chapperon@wanadoo.fr>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
kernel/power/swap.c

index baf667bb2794c6880a834e060fd3a32943c80d68..8c7e4832b9be0f8e031fb07645f6ad8e955c0318 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "power.h"
 
-#define HIBERNATE_SIG  "LINHIB0001"
+#define HIBERNATE_SIG  "S1SUSPEND"
 
 /*
  *     The swap map is a data structure used for keeping track of each page