From: Rafael J. Wysocki Date: Sat, 11 Dec 2010 20:46:44 +0000 (+0100) Subject: PM / Hibernate: Restore old swap signature to avoid user space breakage X-Git-Tag: 2.1b_release~6051^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be8cd644c49dca4212e975455c8e7119b848ebe8;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git PM / Hibernate: Restore old swap signature to avoid user space breakage 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 Reported-by: Zhang Rui Reported-by: Pascal Chapperon Signed-off-by: Rafael J. Wysocki --- diff --git a/kernel/power/swap.c b/kernel/power/swap.c index baf667b..8c7e483 100644 --- a/kernel/power/swap.c +++ b/kernel/power/swap.c @@ -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