History

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 .

Rafael J. Wysocki committed 15 years ago

Commit be8cd641 parent 1497dd11 file · +1 −1Browse files

Unified · Split

kernel/power/swap.c+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
30 30
31#include "power.h"31#include "power.h"
32 32
33#define HIBERNATE_SIG "LINHIB0001"33#define HIBERNATE_SIG "S1SUSPEND"
34 34
35/*35/*
36 * The swap map is a data structure used for keeping track of each page36 * The swap map is a data structure used for keeping track of each page