From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: "Linux-pm mailing list" <linux-pm@lists.linux-foundation.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
"Dr. David Alan Gilbert" <linux@treblig.org>,
Karel Zak <kzak@redhat.com>, Pavel Machek <pavel@ucw.cz>,
Pascal Chapperon <pascal.chapperon@wanadoo.fr>
Subject: Re: [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
Date: Sat, 11 Dec 2010 21:17:06 +0100 [thread overview]
Message-ID: <201012112117.06636.rjw@sisk.pl> (raw)
In-Reply-To: <201012052324.30231.rjw@sisk.pl>
On Sunday, December 05, 2010, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rjw@sisk.pl>
>
> Commit 3624eb0 (PM / Hibernate: Modify signature used to mark swap)
> modified hibernate signature used to mark swap partitions containing
> hibernation images, but that turns out to have caused problems in
> libblkid on recent Ubuntu. Restore the old signature to avoid those
> problems.
Below is the same patch with modified changelog reflecting the recent findings.
Thanks,
Rafael
---
From: Rafael J. Wysocki <rjw@sisk.pl>
Subject: 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.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Reported-by: Dr. David Alan Gilbert <linux@treblig.org>
Reported-by: Pascal Chapperon <pascal.chapperon@wanadoo.fr>
---
kernel/power/swap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6/kernel/power/swap.c
===================================================================
--- linux-2.6.orig/kernel/power/swap.c
+++ linux-2.6/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
prev parent reply other threads:[~2010-12-11 20:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-05 22:24 Rafael J. Wysocki
2010-12-05 23:36 ` [linux-pm] " Bojan Smojver
2010-12-06 13:26 ` Karel Zak
2010-12-06 22:22 ` Rafael J. Wysocki
2010-12-11 19:58 ` Rafael J. Wysocki
2010-12-11 20:30 ` Bojan Smojver
2010-12-11 20:36 ` Rafael J. Wysocki
2010-12-11 20:47 ` Bojan Smojver
2010-12-11 20:49 ` R. J. Wysocki
2010-12-11 21:10 ` Bojan Smojver
2010-12-11 20:17 ` Rafael J. Wysocki [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201012112117.06636.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=kzak@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=linux@treblig.org \
--cc=pascal.chapperon@wanadoo.fr \
--cc=pavel@ucw.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®