Re: [RFC] swap image signature check upon resume

2007-12-09 Thread Borislav Petkov
On Sun, Dec 09, 2007 at 10:46:35PM +0100, Rafael J. Wysocki wrote: > On Sunday, 9 of December 2007, Borislav Petkov wrote: > > On Sun, Dec 09, 2007 at 03:27:57PM +0100, Rafael J. Wysocki wrote: > > ... > > > > > > Instead, I'd rather issue a warning that the swsusp header mismatches, > > > > say

Re: [RFC] swap image signature check upon resume

2007-12-09 Thread Rafael J. Wysocki
On Sunday, 9 of December 2007, Borislav Petkov wrote: > On Sun, Dec 09, 2007 at 03:27:57PM +0100, Rafael J. Wysocki wrote: > ... > > > > Instead, I'd rather issue a warning that the swsusp header mismatches, > > > say with > > > which kernel the machine got suspended with and then start the

Re: [RFC] swap image signature check upon resume

2007-12-09 Thread Borislav Petkov
On Sun, Dec 09, 2007 at 03:27:57PM +0100, Rafael J. Wysocki wrote: ... > > Instead, I'd rather issue a warning that the swsusp header mismatches, say > > with > > which kernel the machine got suspended with and then start the countdown > > for reboot. > > What exactly would that change? You

Re: [RFC] swap image signature check upon resume

2007-12-09 Thread Rafael J. Wysocki
On Sunday, 9 of December 2007, Rafael J. Wysocki wrote: > On Sunday, 9 of December 2007, Borislav Petkov wrote: > > On Sat, Dec 08, 2007 at 11:50:33PM +0100, Rafael J. Wysocki wrote: > > > On Saturday, 8 of December 2007, Borislav Petkov wrote: > > > > On Fri, Dec 07, 2007 at 09:19:09PM +0100,

Re: [RFC] swap image signature check upon resume

2007-12-09 Thread Rafael J. Wysocki
On Sunday, 9 of December 2007, Borislav Petkov wrote: > On Sat, Dec 08, 2007 at 11:50:33PM +0100, Rafael J. Wysocki wrote: > > On Saturday, 8 of December 2007, Borislav Petkov wrote: > > > On Fri, Dec 07, 2007 at 09:19:09PM +0100, Rafael J. Wysocki wrote: > > > > > > ... > > > > > > > > > Well,

Re: [RFC] swap image signature check upon resume

2007-12-09 Thread Rafael J. Wysocki
On Sunday, 9 of December 2007, Borislav Petkov wrote: On Sat, Dec 08, 2007 at 11:50:33PM +0100, Rafael J. Wysocki wrote: On Saturday, 8 of December 2007, Borislav Petkov wrote: On Fri, Dec 07, 2007 at 09:19:09PM +0100, Rafael J. Wysocki wrote: ... Well, there's a patchset in

Re: [RFC] swap image signature check upon resume

2007-12-09 Thread Rafael J. Wysocki
On Sunday, 9 of December 2007, Rafael J. Wysocki wrote: On Sunday, 9 of December 2007, Borislav Petkov wrote: On Sat, Dec 08, 2007 at 11:50:33PM +0100, Rafael J. Wysocki wrote: On Saturday, 8 of December 2007, Borislav Petkov wrote: On Fri, Dec 07, 2007 at 09:19:09PM +0100, Rafael J.

Re: [RFC] swap image signature check upon resume

2007-12-09 Thread Borislav Petkov
On Sun, Dec 09, 2007 at 03:27:57PM +0100, Rafael J. Wysocki wrote: ... Instead, I'd rather issue a warning that the swsusp header mismatches, say with which kernel the machine got suspended with and then start the countdown for reboot. What exactly would that change? You need to

Re: [RFC] swap image signature check upon resume

2007-12-09 Thread Rafael J. Wysocki
On Sunday, 9 of December 2007, Borislav Petkov wrote: On Sun, Dec 09, 2007 at 03:27:57PM +0100, Rafael J. Wysocki wrote: ... Instead, I'd rather issue a warning that the swsusp header mismatches, say with which kernel the machine got suspended with and then start the countdown

Re: [RFC] swap image signature check upon resume

2007-12-09 Thread Borislav Petkov
On Sun, Dec 09, 2007 at 10:46:35PM +0100, Rafael J. Wysocki wrote: On Sunday, 9 of December 2007, Borislav Petkov wrote: On Sun, Dec 09, 2007 at 03:27:57PM +0100, Rafael J. Wysocki wrote: ... Instead, I'd rather issue a warning that the swsusp header mismatches, say with which

Re: [RFC] swap image signature check upon resume

2007-12-08 Thread Borislav Petkov
On Sat, Dec 08, 2007 at 11:50:33PM +0100, Rafael J. Wysocki wrote: > On Saturday, 8 of December 2007, Borislav Petkov wrote: > > On Fri, Dec 07, 2007 at 09:19:09PM +0100, Rafael J. Wysocki wrote: > > > > ... > > > > > > > Well, there's a patchset in the current mainline that allows you to > > >

Re: [RFC] swap image signature check upon resume

2007-12-08 Thread Rafael J. Wysocki
On Saturday, 8 of December 2007, Borislav Petkov wrote: > On Fri, Dec 07, 2007 at 09:19:09PM +0100, Rafael J. Wysocki wrote: > > ... > > > > > Well, there's a patchset in the current mainline that allows you to use > > > > arbitrary (sufficiently new) kernel to load the image and then restore >

Re: [RFC] swap image signature check upon resume

2007-12-08 Thread Borislav Petkov
On Fri, Dec 07, 2007 at 09:19:09PM +0100, Rafael J. Wysocki wrote: ... > > > Well, there's a patchset in the current mainline that allows you to use > > > arbitrary (sufficiently new) kernel to load the image and then restore the > > > image kernel. So, you can hibernate 2.6.24-rc3 and use

Re: [RFC] swap image signature check upon resume

2007-12-08 Thread Borislav Petkov
On Fri, Dec 07, 2007 at 09:19:09PM +0100, Rafael J. Wysocki wrote: ... Well, there's a patchset in the current mainline that allows you to use arbitrary (sufficiently new) kernel to load the image and then restore the image kernel. So, you can hibernate 2.6.24-rc3 and use 2.6.24-rc2 to

Re: [RFC] swap image signature check upon resume

2007-12-08 Thread Rafael J. Wysocki
On Saturday, 8 of December 2007, Borislav Petkov wrote: On Fri, Dec 07, 2007 at 09:19:09PM +0100, Rafael J. Wysocki wrote: ... Well, there's a patchset in the current mainline that allows you to use arbitrary (sufficiently new) kernel to load the image and then restore the

Re: [RFC] swap image signature check upon resume

2007-12-08 Thread Borislav Petkov
On Sat, Dec 08, 2007 at 11:50:33PM +0100, Rafael J. Wysocki wrote: On Saturday, 8 of December 2007, Borislav Petkov wrote: On Fri, Dec 07, 2007 at 09:19:09PM +0100, Rafael J. Wysocki wrote: ... Well, there's a patchset in the current mainline that allows you to use

Re: [RFC] swap image signature check upon resume

2007-12-07 Thread Rafael J. Wysocki
On Friday, 7 of December 2007, Borislav Petkov wrote: > On Thu, Dec 06, 2007 at 10:46:48PM +0100, Rafael J. Wysocki wrote: > > On Thursday, 6 of December 2007, Borislav Petkov wrote: > > > Hi Pavel, > > > hi Rafael, > > > > > > after a quick search i couldn't find anything dealing with the topic

Re: [RFC] swap image signature check upon resume

2007-12-07 Thread Borislav Petkov
On Thu, Dec 06, 2007 at 10:46:48PM +0100, Rafael J. Wysocki wrote: > On Thursday, 6 of December 2007, Borislav Petkov wrote: > > Hi Pavel, > > hi Rafael, > > > > after a quick search i couldn't find anything dealing with the topic in the > > subject line so here we go: > > > > One sometimes can

Re: [RFC] swap image signature check upon resume

2007-12-07 Thread Borislav Petkov
On Thu, Dec 06, 2007 at 10:46:48PM +0100, Rafael J. Wysocki wrote: On Thursday, 6 of December 2007, Borislav Petkov wrote: Hi Pavel, hi Rafael, after a quick search i couldn't find anything dealing with the topic in the subject line so here we go: One sometimes can mix up (and by

Re: [RFC] swap image signature check upon resume

2007-12-07 Thread Rafael J. Wysocki
On Friday, 7 of December 2007, Borislav Petkov wrote: On Thu, Dec 06, 2007 at 10:46:48PM +0100, Rafael J. Wysocki wrote: On Thursday, 6 of December 2007, Borislav Petkov wrote: Hi Pavel, hi Rafael, after a quick search i couldn't find anything dealing with the topic in the

Re: [RFC] swap image signature check upon resume

2007-12-06 Thread Rafael J. Wysocki
On Thursday, 6 of December 2007, Borislav Petkov wrote: > Hi Pavel, > hi Rafael, > > after a quick search i couldn't find anything dealing with the topic in the > subject line so here we go: > > One sometimes can mix up (and by one i mean me) the > kernel images one boots after having suspended

Re: [RFC] swap image signature check upon resume

2007-12-06 Thread Rafael J. Wysocki
On Thursday, 6 of December 2007, Borislav Petkov wrote: Hi Pavel, hi Rafael, after a quick search i couldn't find anything dealing with the topic in the subject line so here we go: One sometimes can mix up (and by one i mean me) the kernel images one boots after having suspended the