From: Stefan Seyfried <seife@suse.de>
To: Andy Isaacson <adi@hexapodia.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: resuming swsusp twice
Date: Thu, 14 Jul 2005 20:36:15 +0200 [thread overview]
Message-ID: <42D6B09F.2090800@suse.de> (raw)
In-Reply-To: <20050714175447.GA16651@hexapodia.org>
Andy Isaacson wrote:
> Perhaps the image should be more rigorously checked? I'm wishing that
> it would verify that the header and the image matched, after it finishes
in your case, the header and the image matched. There was no new image
on disk. And no new header.
> reading the image. For example, computing the hash
>
> MD5(header || image) (|| denotes "concatenate" in crypto pseudocode.)
>
> and storing that hash in a final trailing block. Additionally, of
> course, as soon as the resume has read the image it should overwrite the
> header; and the header should include jiffies or something along those
the header is actually overwritten _prior_ to reading the image back. Or
it should be, obviously it was not in your casee.
> lines to ensure that it won't accidentally have the same contents as the
> previous image's header.
>
> The hash doesn't have to be MD5; even a CRC should suffice I think...
But the failure you have seen now - failure to invalidate the resume
header - could also happen as long as we do not fix the reason for your
failure. If we fix it, we don't need additional security nets ;-)
But i have no idea what went wrong for you, i'll have a look at the code
but i doubt that i'll find much of interest.
One thing which would be interesting:
You don't eventually have multiple swap partitions?
--
Stefan Seyfried \ "I didn't want to write for pay. I
QA / R&D Team Mobile Devices \ wanted to be paid for what I write."
SUSE LINUX Products GmbH, Nürnberg \ -- Leonard Cohen
next prev parent reply other threads:[~2005-07-14 18:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-13 18:59 resuming swsusp twice Andy Isaacson
2005-07-14 14:58 ` Stefan Seyfried
2005-07-14 17:54 ` Andy Isaacson
2005-07-14 18:36 ` Stefan Seyfried [this message]
2005-07-14 21:45 ` Andy Isaacson
2005-07-15 8:35 ` Pavel Machek
2005-07-15 8:38 ` Pavel Machek
2005-07-15 8:33 ` Pavel Machek
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=42D6B09F.2090800@suse.de \
--to=seife@suse.de \
--cc=adi@hexapodia.org \
--cc=linux-kernel@vger.kernel.org \
/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