public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: netdev@vger.kernel.org, linux-pm@lists.linux-foundation.org,
	Ferenc Wagner <wferi@niif.hu>,
	Andrew Morton <akpm@linux-foundation.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: s2disk encryption was Re: intermittent suspend problem	again
Date: Sat, 12 Dec 2009 20:27:12 +0100	[thread overview]
Message-ID: <20091212192712.GB1308@ucw.cz> (raw)
In-Reply-To: <200912012232.50951.rjw@sisk.pl>

Hi!

> > >> On the other hand, I reverted 8fbd962e3, recompiled and replaced the
> > >> module, and got the freeze during hibernation.  And that was the bulk of
> > >> the changes since 2.6.31...  I'll revert the rest and test again, but
> > >> that seems purely cosmetic, so no high hopes.
> > >> 
> > >>> In addition to that, you can run multiple hibernation/resume cycles in
> > >>> a tight loop using the RTC wakealarm.
> > >> 
> > >> I'll do so, as soon as I find a way to automatically supply the dm-crypt
> > >> passphrase... or even better, learn to hibernate to ramdisk from the
> > >> initramfs. :)
> > >
> > > Well, you don't need to use swap encryption for _testing_. :-)
> > 
> > I use partition encryption, everything except for /boot is encrypted.
> 
> If /boot is big enough, you could use a swap file in /boot for the testing.
> 
> > Apropos: does s2disk perform encryption with a temporary key even if I
> > don't supply and RSA key, to protect mlocked application data from being
> > present in the swap after restore?
> 
> It can do that, but you need to provide a key during suspend and resume.
> 
> Otherwise it doesn't use a random key, because it would have to store it in
> the clear in the image header.

I believe it can use random key, stored in clear in image
header. Reason is... image header is easier to overwrite than removing
whole image.

That was original motivation for encryption... not having to overwrite
swap data with zeros.
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

      parent reply	other threads:[~2009-12-12 19:27 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-28 11:43 intermittent suspend problem again Ferenc Wagner
2009-10-28 18:56 ` Rafael J. Wysocki
2009-10-29  0:11   ` Ferenc Wagner
2009-10-29 18:36     ` Rafael J. Wysocki
     [not found]     ` <200910291936.14082.rjw@sisk.pl>
2009-10-29 22:31       ` Ferenc Wagner
     [not found]       ` <87fx91q1bc.fsf@tac.ki.iif.hu>
2009-10-30 18:18         ` Rafael J. Wysocki
     [not found]         ` <200910301918.53301.rjw@sisk.pl>
2009-10-30 19:03           ` Ferenc Wagner
2009-10-30 20:38             ` Rafael J. Wysocki
     [not found]             ` <200910302138.37938.rjw@sisk.pl>
2009-10-31 12:02               ` Alan Jenkins
     [not found]               ` <9b2b86520910310502p7fe8e0edmff09220632fab5e2@mail.gmail.com>
2009-10-31 14:06                 ` Ferenc Wagner
     [not found]                 ` <874opfwtde.fsf@tac.ki.iif.hu>
2009-10-31 19:11                   ` Rafael J. Wysocki
     [not found]                   ` <200910312011.04005.rjw@sisk.pl>
2009-11-01 21:53                     ` Ferenc Wagner
     [not found]                     ` <87iqdtvrn6.fsf@tac.ki.iif.hu>
2009-11-03 11:02                       ` Ferenc Wagner
2009-11-11 11:29       ` Ferenc Wagner
     [not found]       ` <87my2tnvtu.fsf@tac.ki.iif.hu>
2009-11-11 11:38         ` Rafael J. Wysocki
     [not found]         ` <200911111238.22696.rjw@sisk.pl>
2009-11-11 13:29           ` Ferenc Wagner
     [not found]           ` <87pr7pi40p.fsf@tac.ki.iif.hu>
2009-11-11 14:47             ` Rafael J. Wysocki
     [not found]             ` <200911111547.21149.rjw@sisk.pl>
2009-11-13 16:35               ` Ferenc Wagner
     [not found]               ` <87my2qwff8.fsf@tac.ki.iif.hu>
2009-11-13 19:59                 ` Rafael J. Wysocki
     [not found]                 ` <200911132059.46377.rjw@sisk.pl>
2009-11-14  1:50                   ` Ferenc Wagner
     [not found]                   ` <874ooxho2b.fsf@tac.ki.iif.hu>
2009-11-14 18:52                     ` Rafael J. Wysocki
     [not found]                     ` <200911141952.50030.rjw@sisk.pl>
2009-11-18  1:12                       ` Ferenc Wagner
2009-11-18 14:05                       ` Ferenc Wagner
     [not found]                       ` <87r5rwrkqs.fsf@tac.ki.iif.hu>
2009-11-18 22:13                         ` Rafael J. Wysocki
     [not found]                         ` <200911182313.14092.rjw@sisk.pl>
2009-11-18 22:54                           ` Ferenc Wagner
2009-11-19 12:00                           ` Ferenc Wagner
2009-11-19 13:02                             ` Ferenc Wagner
     [not found]                             ` <87zl6ipt0p.fsf@tac.ki.iif.hu>
2009-11-19 19:42                               ` Rafael J. Wysocki
2009-11-21 23:59                           ` Ferenc Wagner
2009-11-28 19:01                           ` Ferenc Wagner
     [not found]                           ` <87d4324gp7.fsf@tac.ki.iif.hu>
2009-11-29  0:29                             ` Rafael J. Wysocki
     [not found]                             ` <200911290129.25505.rjw@sisk.pl>
2009-11-29 10:12                               ` Ferenc Wagner
     [not found]                               ` <873a3x4p36.fsf@tac.ki.iif.hu>
2009-11-29 15:07                                 ` Rafael J. Wysocki
     [not found]                                 ` <200911291607.05348.rjw@sisk.pl>
2009-12-01 10:29                                   ` Ferenc Wagner
     [not found]                                   ` <87y6ln0yxp.fsf@tac.ki.iif.hu>
2009-12-01 12:28                                     ` Rafael J. Wysocki
     [not found]                                     ` <200912011328.15551.rjw@sisk.pl>
2009-12-01 17:46                                       ` Ferenc Wagner
     [not found]                                       ` <877ht68u4h.fsf@tac.ki.iif.hu>
2009-12-01 21:32                                         ` Rafael J. Wysocki
     [not found]                                         ` <200912012232.50951.rjw@sisk.pl>
2009-12-02  1:58                                           ` Ferenc Wagner
     [not found]                                           ` <87638qw2zy.fsf@tac.ki.iif.hu>
2009-12-02 10:55                                             ` Ferenc Wagner
2009-12-02 12:27                                             ` Stefan Seyfried
     [not found]                                             ` <87skbtve5w.fsf@tac.ki.iif.hu>
2009-12-02 21:33                                               ` Rafael J. Wysocki
     [not found]                                               ` <200912022233.16138.rjw@sisk.pl>
2009-12-02 21:41                                                 ` Mikael Abrahamsson
2009-12-02 21:49                                               ` Rafael J. Wysocki
2009-12-12 19:31                                               ` Pavel Machek
2009-12-12 19:27                                           ` Pavel Machek [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=20091212192712.GB1308@ucw.cz \
    --to=pavel@ucw.cz \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=netdev@vger.kernel.org \
    --cc=rjw@sisk.pl \
    --cc=wferi@niif.hu \
    /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