Re: [RFC] swap image signature check upon resume

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <bbpetkov@...>
Cc: Pavel Machek <pavel@...>, <linux-kernel@...>
Date: Sunday, December 9, 2007 - 5:46 pm

On Sunday, 9 of December 2007, Borislav Petkov wrote:

Yes, you are. :-)

With the new code (which BTW I'm assuming we are talking about) the images are
not matched against the kernel they were created by, but against a hard-coded
magic number (defined in suspend_64.c) playing the role of the "header protocol
version" and against some system parameters, like the amount of RAM etc.
Since all kernels containing the new code use the same magic number, all of
them will match or none of them will match.

Of course, we may want to change the magic at some point and in that case
there you will have some non-matching kernels.  If you're worried about that,
use the userland hibernation tools from suspend.sf.net (they handle such
situations quite well).

Greetings,
Rafael
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] swap image signature check upon resume, Borislav Petkov, (Thu Dec 6, 5:13 pm)
Re: [RFC] swap image signature check upon resume, Rafael J. Wysocki, (Thu Dec 6, 5:46 pm)
Re: [RFC] swap image signature check upon resume, Borislav Petkov, (Fri Dec 7, 3:12 am)
Re: [RFC] swap image signature check upon resume, Rafael J. Wysocki, (Fri Dec 7, 4:19 pm)
Re: [RFC] swap image signature check upon resume, Borislav Petkov, (Sat Dec 8, 7:33 am)
Re: [RFC] swap image signature check upon resume, Rafael J. Wysocki, (Sat Dec 8, 6:50 pm)
Re: [RFC] swap image signature check upon resume, Borislav Petkov, (Sun Dec 9, 2:55 am)
Re: [RFC] swap image signature check upon resume, Rafael J. Wysocki, (Sun Dec 9, 10:27 am)
Re: [RFC] swap image signature check upon resume, Borislav Petkov, (Sun Dec 9, 12:09 pm)
Re: [RFC] swap image signature check upon resume, Rafael J. Wysocki, (Sun Dec 9, 5:46 pm)
Re: [RFC] swap image signature check upon resume, Borislav Petkov, (Mon Dec 10, 12:51 am)
Re: [RFC] swap image signature check upon resume, Rafael J. Wysocki, (Sun Dec 9, 10:32 am)