All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
@ 2010-12-05 22:24 Rafael J. Wysocki
  2010-12-05 23:36   ` Bojan Smojver
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Rafael J. Wysocki @ 2010-12-05 22:24 UTC (permalink / raw)
  To: Linux-pm mailing list
  Cc: LKML, Dr. David Alan Gilbert, Karel Zak, Pavel Machek

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.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Reported-by: Dr. David Alan Gilbert <linux@treblig.org>
---
 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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [linux-pm] [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
  2010-12-05 22:24 [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage Rafael J. Wysocki
@ 2010-12-05 23:36   ` Bojan Smojver
  2010-12-11 20:17 ` Rafael J. Wysocki
  2010-12-11 20:17 ` Rafael J. Wysocki
  2 siblings, 0 replies; 21+ messages in thread
From: Bojan Smojver @ 2010-12-05 23:36 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Linux-pm mailing list, Karel Zak, LKML, Dr. David Alan Gilbert

On Sun, 2010-12-05 at 23:24 +0100, Rafael J. Wysocki wrote:
> 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. 

Don't quite understand this change (sorry, probably just being obtuse).

The signature was changed to make sure older kernels don't handle
compressed images by accident, right? If so, this would seem like a bad
idea, because this is what can actually happen now.

Shouldn't user space learn how to handle both signatures instead?

-- 
Bojan


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
@ 2010-12-05 23:36   ` Bojan Smojver
  0 siblings, 0 replies; 21+ messages in thread
From: Bojan Smojver @ 2010-12-05 23:36 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Linux-pm mailing list, Karel Zak, LKML, Dr. David Alan Gilbert

On Sun, 2010-12-05 at 23:24 +0100, Rafael J. Wysocki wrote:
> 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. 

Don't quite understand this change (sorry, probably just being obtuse).

The signature was changed to make sure older kernels don't handle
compressed images by accident, right? If so, this would seem like a bad
idea, because this is what can actually happen now.

Shouldn't user space learn how to handle both signatures instead?

-- 
Bojan

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [linux-pm] [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
  2010-12-05 23:36   ` Bojan Smojver
  (?)
@ 2010-12-06 13:26   ` Karel Zak
  2010-12-06 22:22     ` Rafael J. Wysocki
  2010-12-06 22:22     ` Rafael J. Wysocki
  -1 siblings, 2 replies; 21+ messages in thread
From: Karel Zak @ 2010-12-06 13:26 UTC (permalink / raw)
  To: Bojan Smojver
  Cc: Rafael J. Wysocki, Linux-pm mailing list, LKML, Dr. David Alan Gilbert

On Mon, Dec 06, 2010 at 10:36:55AM +1100, Bojan Smojver wrote:
> On Sun, 2010-12-05 at 23:24 +0100, Rafael J. Wysocki wrote:
> > 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. 
> 
> Don't quite understand this change (sorry, probably just being obtuse).

 I too.

> The signature was changed to make sure older kernels don't handle
> compressed images by accident, right? If so, this would seem like a bad
> idea, because this is what can actually happen now.
> 
> Shouldn't user space learn how to handle both signatures instead?

 The upstream libblkid has been updated, there is not a problem to
 support more signatures.

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
  2010-12-05 23:36   ` Bojan Smojver
  (?)
  (?)
@ 2010-12-06 13:26   ` Karel Zak
  -1 siblings, 0 replies; 21+ messages in thread
From: Karel Zak @ 2010-12-06 13:26 UTC (permalink / raw)
  To: Bojan Smojver; +Cc: Linux-pm mailing list, LKML, Dr. David Alan Gilbert

On Mon, Dec 06, 2010 at 10:36:55AM +1100, Bojan Smojver wrote:
> On Sun, 2010-12-05 at 23:24 +0100, Rafael J. Wysocki wrote:
> > 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. 
> 
> Don't quite understand this change (sorry, probably just being obtuse).

 I too.

> The signature was changed to make sure older kernels don't handle
> compressed images by accident, right? If so, this would seem like a bad
> idea, because this is what can actually happen now.
> 
> Shouldn't user space learn how to handle both signatures instead?

 The upstream libblkid has been updated, there is not a problem to
 support more signatures.

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [linux-pm] [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
  2010-12-06 13:26   ` [linux-pm] " Karel Zak
@ 2010-12-06 22:22     ` Rafael J. Wysocki
  2010-12-06 22:22     ` Rafael J. Wysocki
  1 sibling, 0 replies; 21+ messages in thread
From: Rafael J. Wysocki @ 2010-12-06 22:22 UTC (permalink / raw)
  To: Karel Zak
  Cc: Bojan Smojver, Linux-pm mailing list, LKML, Dr. David Alan Gilbert

On Monday, December 06, 2010, Karel Zak wrote:
> On Mon, Dec 06, 2010 at 10:36:55AM +1100, Bojan Smojver wrote:
> > On Sun, 2010-12-05 at 23:24 +0100, Rafael J. Wysocki wrote:
> > > 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. 
> > 
> > Don't quite understand this change (sorry, probably just being obtuse).
> 
>  I too.
> 
> > The signature was changed to make sure older kernels don't handle
> > compressed images by accident, right? If so, this would seem like a bad
> > idea, because this is what can actually happen now.
> > 
> > Shouldn't user space learn how to handle both signatures instead?
> 
>  The upstream libblkid has been updated, there is not a problem to
>  support more signatures.

Cool.

I'm withdrawing the patch, then.

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
  2010-12-06 13:26   ` [linux-pm] " Karel Zak
  2010-12-06 22:22     ` Rafael J. Wysocki
@ 2010-12-06 22:22     ` Rafael J. Wysocki
  1 sibling, 0 replies; 21+ messages in thread
From: Rafael J. Wysocki @ 2010-12-06 22:22 UTC (permalink / raw)
  To: Karel Zak; +Cc: Linux-pm mailing list, Dr. David Alan Gilbert, LKML

On Monday, December 06, 2010, Karel Zak wrote:
> On Mon, Dec 06, 2010 at 10:36:55AM +1100, Bojan Smojver wrote:
> > On Sun, 2010-12-05 at 23:24 +0100, Rafael J. Wysocki wrote:
> > > 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. 
> > 
> > Don't quite understand this change (sorry, probably just being obtuse).
> 
>  I too.
> 
> > The signature was changed to make sure older kernels don't handle
> > compressed images by accident, right? If so, this would seem like a bad
> > idea, because this is what can actually happen now.
> > 
> > Shouldn't user space learn how to handle both signatures instead?
> 
>  The upstream libblkid has been updated, there is not a problem to
>  support more signatures.

Cool.

I'm withdrawing the patch, then.

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [linux-pm] [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
  2010-12-05 23:36   ` Bojan Smojver
                     ` (3 preceding siblings ...)
  (?)
@ 2010-12-11 19:58   ` Rafael J. Wysocki
  2010-12-11 20:30     ` Bojan Smojver
  2010-12-11 20:30     ` [linux-pm] " Bojan Smojver
  -1 siblings, 2 replies; 21+ messages in thread
From: Rafael J. Wysocki @ 2010-12-11 19:58 UTC (permalink / raw)
  To: Bojan Smojver
  Cc: Linux-pm mailing list, Karel Zak, LKML, Dr. David Alan Gilbert

On Monday, December 06, 2010, Bojan Smojver wrote:
> On Sun, 2010-12-05 at 23:24 +0100, Rafael J. Wysocki wrote:
> > 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. 
> 
> Don't quite understand this change (sorry, probably just being obtuse).
> 
> The signature was changed to make sure older kernels don't handle
> compressed images by accident, right? If so, this would seem like a bad
> idea, because this is what can actually happen now.
> 
> Shouldn't user space learn how to handle both signatures instead?

I'm afraid I'll have to push this patch to Linus.  Turns out that Fedora 14
doesn't pass the resume= argument to the kernel and tries to trigger the resume
from initramfs.  Since the signature changed, it can't find the image and the
resume fails, even if both the resume and image kernels are the same.

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
  2010-12-05 23:36   ` Bojan Smojver
                     ` (2 preceding siblings ...)
  (?)
@ 2010-12-11 19:58   ` Rafael J. Wysocki
  -1 siblings, 0 replies; 21+ messages in thread
From: Rafael J. Wysocki @ 2010-12-11 19:58 UTC (permalink / raw)
  To: Bojan Smojver
  Cc: Linux-pm mailing list, Karel Zak, LKML, Dr. David Alan Gilbert

On Monday, December 06, 2010, Bojan Smojver wrote:
> On Sun, 2010-12-05 at 23:24 +0100, Rafael J. Wysocki wrote:
> > 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. 
> 
> Don't quite understand this change (sorry, probably just being obtuse).
> 
> The signature was changed to make sure older kernels don't handle
> compressed images by accident, right? If so, this would seem like a bad
> idea, because this is what can actually happen now.
> 
> Shouldn't user space learn how to handle both signatures instead?

I'm afraid I'll have to push this patch to Linus.  Turns out that Fedora 14
doesn't pass the resume= argument to the kernel and tries to trigger the resume
from initramfs.  Since the signature changed, it can't find the image and the
resume fails, even if both the resume and image kernels are the same.

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
  2010-12-05 22:24 [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage Rafael J. Wysocki
  2010-12-05 23:36   ` Bojan Smojver
@ 2010-12-11 20:17 ` Rafael J. Wysocki
  2010-12-11 20:17 ` Rafael J. Wysocki
  2 siblings, 0 replies; 21+ messages in thread
From: Rafael J. Wysocki @ 2010-12-11 20:17 UTC (permalink / raw)
  To: Linux-pm mailing list
  Cc: LKML, Dr. David Alan Gilbert, Karel Zak, Pavel Machek, Pascal Chapperon

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
  2010-12-05 22:24 [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage Rafael J. Wysocki
  2010-12-05 23:36   ` Bojan Smojver
  2010-12-11 20:17 ` Rafael J. Wysocki
@ 2010-12-11 20:17 ` Rafael J. Wysocki
  2 siblings, 0 replies; 21+ messages in thread
From: Rafael J. Wysocki @ 2010-12-11 20:17 UTC (permalink / raw)
  To: Linux-pm mailing list
  Cc: Karel Zak, LKML, Dr. David Alan Gilbert, Pascal Chapperon

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [linux-pm] [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
  2010-12-11 19:58   ` [linux-pm] " Rafael J. Wysocki
  2010-12-11 20:30     ` Bojan Smojver
@ 2010-12-11 20:30     ` Bojan Smojver
  2010-12-11 20:36       ` Rafael J. Wysocki
  2010-12-11 20:36       ` Rafael J. Wysocki
  1 sibling, 2 replies; 21+ messages in thread
From: Bojan Smojver @ 2010-12-11 20:30 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Linux-pm mailing list, Karel Zak, LKML, Dr. David Alan Gilbert

On Sat, 2010-12-11 at 20:58 +0100, Rafael J. Wysocki wrote:
> I'm afraid I'll have to push this patch to Linus.  Turns out that
> Fedora 14 doesn't pass the resume= argument to the kernel and tries to
> trigger the resume from initramfs.  Since the signature changed, it
> can't find the image and the resume fails, even if both the resume and
> image kernels are the same. 

Why don't you just file a Fedora bug asking for the library to be
upgraded or patched?

PS. Karel, who also replied to this thread, has a Red Hat address and he
seems to be the maintainer of util-linux-ng package. He should be able
to fix this.

-- 
Bojan


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
  2010-12-11 19:58   ` [linux-pm] " Rafael J. Wysocki
@ 2010-12-11 20:30     ` Bojan Smojver
  2010-12-11 20:30     ` [linux-pm] " Bojan Smojver
  1 sibling, 0 replies; 21+ messages in thread
From: Bojan Smojver @ 2010-12-11 20:30 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Linux-pm mailing list, Karel Zak, LKML, Dr. David Alan Gilbert

On Sat, 2010-12-11 at 20:58 +0100, Rafael J. Wysocki wrote:
> I'm afraid I'll have to push this patch to Linus.  Turns out that
> Fedora 14 doesn't pass the resume= argument to the kernel and tries to
> trigger the resume from initramfs.  Since the signature changed, it
> can't find the image and the resume fails, even if both the resume and
> image kernels are the same. 

Why don't you just file a Fedora bug asking for the library to be
upgraded or patched?

PS. Karel, who also replied to this thread, has a Red Hat address and he
seems to be the maintainer of util-linux-ng package. He should be able
to fix this.

-- 
Bojan

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [linux-pm] [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
  2010-12-11 20:30     ` [linux-pm] " Bojan Smojver
@ 2010-12-11 20:36       ` Rafael J. Wysocki
  2010-12-11 20:47         ` Bojan Smojver
  2010-12-11 20:47         ` [linux-pm] " Bojan Smojver
  2010-12-11 20:36       ` Rafael J. Wysocki
  1 sibling, 2 replies; 21+ messages in thread
From: Rafael J. Wysocki @ 2010-12-11 20:36 UTC (permalink / raw)
  To: Bojan Smojver
  Cc: Linux-pm mailing list, Karel Zak, LKML, Dr. David Alan Gilbert

On Saturday, December 11, 2010, Bojan Smojver wrote:
> On Sat, 2010-12-11 at 20:58 +0100, Rafael J. Wysocki wrote:
> > I'm afraid I'll have to push this patch to Linus.  Turns out that
> > Fedora 14 doesn't pass the resume= argument to the kernel and tries to
> > trigger the resume from initramfs.  Since the signature changed, it
> > can't find the image and the resume fails, even if both the resume and
> > image kernels are the same. 
> 
> Why don't you just file a Fedora bug asking for the library to be
> upgraded or patched?

Because that wouldn't fix the user space that _already_ is out there.

> PS. Karel, who also replied to this thread, has a Red Hat address and he
> seems to be the maintainer of util-linux-ng package. He should be able
> to fix this.

That doesn't matter.  The rule is we don't break user space, even if it does
unreasonable things.

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
  2010-12-11 20:30     ` [linux-pm] " Bojan Smojver
  2010-12-11 20:36       ` Rafael J. Wysocki
@ 2010-12-11 20:36       ` Rafael J. Wysocki
  1 sibling, 0 replies; 21+ messages in thread
From: Rafael J. Wysocki @ 2010-12-11 20:36 UTC (permalink / raw)
  To: Bojan Smojver
  Cc: Linux-pm mailing list, Karel Zak, LKML, Dr. David Alan Gilbert

On Saturday, December 11, 2010, Bojan Smojver wrote:
> On Sat, 2010-12-11 at 20:58 +0100, Rafael J. Wysocki wrote:
> > I'm afraid I'll have to push this patch to Linus.  Turns out that
> > Fedora 14 doesn't pass the resume= argument to the kernel and tries to
> > trigger the resume from initramfs.  Since the signature changed, it
> > can't find the image and the resume fails, even if both the resume and
> > image kernels are the same. 
> 
> Why don't you just file a Fedora bug asking for the library to be
> upgraded or patched?

Because that wouldn't fix the user space that _already_ is out there.

> PS. Karel, who also replied to this thread, has a Red Hat address and he
> seems to be the maintainer of util-linux-ng package. He should be able
> to fix this.

That doesn't matter.  The rule is we don't break user space, even if it does
unreasonable things.

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [linux-pm] [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
  2010-12-11 20:36       ` Rafael J. Wysocki
  2010-12-11 20:47         ` Bojan Smojver
@ 2010-12-11 20:47         ` Bojan Smojver
  2010-12-11 20:49             ` R. J. Wysocki
  1 sibling, 1 reply; 21+ messages in thread
From: Bojan Smojver @ 2010-12-11 20:47 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Linux-pm mailing list, Karel Zak, LKML, Dr. David Alan Gilbert

On Sat, 2010-12-11 at 21:36 +0100, Rafael J. Wysocki wrote:

> Because that wouldn't fix the user space that _already_ is out there.

Of course. I'm sure there are other things in various new kernel that
older user space isn't aware of. It just depends on how far back you
wish to go.

> That doesn't matter.  The rule is we don't break user space, even if it does
> unreasonable things.

But it won't really be broken. I actually tested compression patches on
F-14. All you need to do is pass resume argument to grub for 2.6.37
kernel you installed by hand (and at present, you can only do this by
hand). If Fedora folks decide to upgrade the kernel to 2.6.37 for F-14
(they already have for F-15, so they must be aware of the issue), I'm
sure they'll fix util-linux-ng, dracut and whatever else is required for
this to work.

PS. Koji build of the kernel for F-15, based in 2.6.37-rc5:

http://koji.fedoraproject.org/koji/buildinfo?buildID=208625

-- 
Bojan


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
  2010-12-11 20:36       ` Rafael J. Wysocki
@ 2010-12-11 20:47         ` Bojan Smojver
  2010-12-11 20:47         ` [linux-pm] " Bojan Smojver
  1 sibling, 0 replies; 21+ messages in thread
From: Bojan Smojver @ 2010-12-11 20:47 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Linux-pm mailing list, Karel Zak, LKML, Dr. David Alan Gilbert

On Sat, 2010-12-11 at 21:36 +0100, Rafael J. Wysocki wrote:

> Because that wouldn't fix the user space that _already_ is out there.

Of course. I'm sure there are other things in various new kernel that
older user space isn't aware of. It just depends on how far back you
wish to go.

> That doesn't matter.  The rule is we don't break user space, even if it does
> unreasonable things.

But it won't really be broken. I actually tested compression patches on
F-14. All you need to do is pass resume argument to grub for 2.6.37
kernel you installed by hand (and at present, you can only do this by
hand). If Fedora folks decide to upgrade the kernel to 2.6.37 for F-14
(they already have for F-15, so they must be aware of the issue), I'm
sure they'll fix util-linux-ng, dracut and whatever else is required for
this to work.

PS. Koji build of the kernel for F-15, based in 2.6.37-rc5:

http://koji.fedoraproject.org/koji/buildinfo?buildID=208625

-- 
Bojan

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [linux-pm] [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
  2010-12-11 20:47         ` [linux-pm] " Bojan Smojver
@ 2010-12-11 20:49             ` R. J. Wysocki
  0 siblings, 0 replies; 21+ messages in thread
From: R. J. Wysocki @ 2010-12-11 20:49 UTC (permalink / raw)
  To: Bojan Smojver
  Cc: Linux-pm mailing list, Karel Zak, LKML, Dr. David Alan Gilbert

On Saturday, December 11, 2010, Bojan Smojver wrote:
> On Sat, 2010-12-11 at 21:36 +0100, Rafael J. Wysocki wrote:
> 
> > Because that wouldn't fix the user space that _already_ is out there.
> 
> Of course. I'm sure there are other things in various new kernel that
> older user space isn't aware of. It just depends on how far back you
> wish to go.
> 
> > That doesn't matter.  The rule is we don't break user space, even if it does
> > unreasonable things.
> 
> But it won't really be broken. I actually tested compression patches on
> F-14. All you need to do is pass resume argument to grub for 2.6.37
> kernel you installed by hand (and at present, you can only do this by
> hand). If Fedora folks decide to upgrade the kernel to 2.6.37 for F-14
> (they already have for F-15, so they must be aware of the issue), I'm
> sure they'll fix util-linux-ng, dracut and whatever else is required for
> this to work.

Then we can change the signature, no earlier.

> PS. Koji build of the kernel for F-15, based in 2.6.37-rc5:
> 
> http://koji.fedoraproject.org/koji/buildinfo?buildID=208625

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
@ 2010-12-11 20:49             ` R. J. Wysocki
  0 siblings, 0 replies; 21+ messages in thread
From: R. J. Wysocki @ 2010-12-11 20:49 UTC (permalink / raw)
  To: Bojan Smojver
  Cc: Linux-pm mailing list, Karel Zak, LKML, Dr. David Alan Gilbert

On Saturday, December 11, 2010, Bojan Smojver wrote:
> On Sat, 2010-12-11 at 21:36 +0100, Rafael J. Wysocki wrote:
> 
> > Because that wouldn't fix the user space that _already_ is out there.
> 
> Of course. I'm sure there are other things in various new kernel that
> older user space isn't aware of. It just depends on how far back you
> wish to go.
> 
> > That doesn't matter.  The rule is we don't break user space, even if it does
> > unreasonable things.
> 
> But it won't really be broken. I actually tested compression patches on
> F-14. All you need to do is pass resume argument to grub for 2.6.37
> kernel you installed by hand (and at present, you can only do this by
> hand). If Fedora folks decide to upgrade the kernel to 2.6.37 for F-14
> (they already have for F-15, so they must be aware of the issue), I'm
> sure they'll fix util-linux-ng, dracut and whatever else is required for
> this to work.

Then we can change the signature, no earlier.

> PS. Koji build of the kernel for F-15, based in 2.6.37-rc5:
> 
> http://koji.fedoraproject.org/koji/buildinfo?buildID=208625

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [linux-pm] [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
  2010-12-11 20:49             ` R. J. Wysocki
  (?)
  (?)
@ 2010-12-11 21:10             ` Bojan Smojver
  -1 siblings, 0 replies; 21+ messages in thread
From: Bojan Smojver @ 2010-12-11 21:10 UTC (permalink / raw)
  To: R. J. Wysocki
  Cc: Linux-pm mailing list, Karel Zak, LKML, Dr. David Alan Gilbert

On Sat, 2010-12-11 at 21:49 +0100, R. J. Wysocki wrote:
> Then we can change the signature, no earlier.

OK, no skin off my back :-)

-- 
Bojan


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage
  2010-12-11 20:49             ` R. J. Wysocki
  (?)
@ 2010-12-11 21:10             ` Bojan Smojver
  -1 siblings, 0 replies; 21+ messages in thread
From: Bojan Smojver @ 2010-12-11 21:10 UTC (permalink / raw)
  To: R. J. Wysocki
  Cc: Linux-pm mailing list, Karel Zak, LKML, Dr. David Alan Gilbert

On Sat, 2010-12-11 at 21:49 +0100, R. J. Wysocki wrote:
> Then we can change the signature, no earlier.

OK, no skin off my back :-)

-- 
Bojan

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2010-12-11 21:10 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-05 22:24 [PATCH] PM / Hibernate: Restore old swap signature to avoid user space breakage Rafael J. Wysocki
2010-12-05 23:36 ` [linux-pm] " Bojan Smojver
2010-12-05 23:36   ` Bojan Smojver
2010-12-06 13:26   ` [linux-pm] " Karel Zak
2010-12-06 22:22     ` Rafael J. Wysocki
2010-12-06 22:22     ` Rafael J. Wysocki
2010-12-06 13:26   ` Karel Zak
2010-12-11 19:58   ` Rafael J. Wysocki
2010-12-11 19:58   ` [linux-pm] " Rafael J. Wysocki
2010-12-11 20:30     ` Bojan Smojver
2010-12-11 20:30     ` [linux-pm] " Bojan Smojver
2010-12-11 20:36       ` Rafael J. Wysocki
2010-12-11 20:47         ` Bojan Smojver
2010-12-11 20:47         ` [linux-pm] " Bojan Smojver
2010-12-11 20:49           ` R. J. Wysocki
2010-12-11 20:49             ` R. J. Wysocki
2010-12-11 21:10             ` Bojan Smojver
2010-12-11 21:10             ` [linux-pm] " Bojan Smojver
2010-12-11 20:36       ` Rafael J. Wysocki
2010-12-11 20:17 ` Rafael J. Wysocki
2010-12-11 20:17 ` Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.