From: Milan Broz <mbroz@redhat.com>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Dmcrypt and hibernate key disclosure
Date: Tue, 11 Jan 2011 11:31:37 +0100 [thread overview]
Message-ID: <4D2C3189.8080708@redhat.com> (raw)
In-Reply-To: <20110111091147.GA4260@tansi.org>
On 01/11/2011 10:11 AM, Arno Wagner wrote:
> On Tue, Jan 11, 2011 at 01:08:16AM +0100, Richard wrote:
>> On Fri, Jan 07, 2011 at 09:40:09AM +0800, Aaron Lewis wrote:
>>> Hi,
>>> If i hibernate with an device opened , before i resume , an image was
>>> written on swap partition , will there be a problem with my secret key's
>>> disclosure ?
>>>
>>> Just an off-line attack , if swap is not encrypted.
>>
>> swap must be encrypted. Works nicely on Fedora, one boot partition and a
>> big encrypted dm0 device with several LVM partitions on top of it.
>>
>
> Well, if you are not asked for the swap encryption key on
> wakeup, basically everything is open. That would be a rather
> obvious implementation error though.
>
> If you get asked, then it depends on the implementation, but
> they do have the right idea.
Sorry I do not follow this thread but Fedora uses by default
(= "encrypt the whole system" checkbox in installer) unencrypted
boot partition (where initramdisk resides) and LUKS encrypted PV on
the second partition, on top of it is root and swap LVs.
(So the whole system is encrypted except boot initramfs.)
The same is quite common in other distros too.
During boot, initramfs must ask for passphrase to PV, the same for hibernate
(suspend to disk - ram image is stored to swap partition LV).
What is not safe is suspend to RAM. Maybe someone should start to use
luksSuspend to at least clear encryption key from memory but it is not
as easy implement as it seems:)
Btw do not afraid of LVM in this scheme - mapping is just linear, so
the only mapping operation in kernel is adding offset and switching device
so there should be no measurable performance problem (there is no cache
or so).
Milan
next prev parent reply other threads:[~2011-01-11 10:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-07 1:40 [dm-crypt] Dmcrypt and hibernate key disclosure Aaron Lewis
2011-01-07 2:49 ` Arno Wagner
2011-01-07 4:08 ` Bryan Kadzban
2011-01-07 4:39 ` Arno Wagner
2011-01-08 4:45 ` Bryan Kadzban
2011-01-08 11:53 ` Heiko Rosemann
2011-01-08 14:55 ` iggy
2011-01-07 10:42 ` Heiko Rosemann
2011-01-11 0:08 ` Richard
2011-01-11 9:11 ` Arno Wagner
2011-01-11 10:31 ` Milan Broz [this message]
2011-01-11 16:35 ` Richard
2011-01-11 17:08 ` Milan Broz
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=4D2C3189.8080708@redhat.com \
--to=mbroz@redhat.com \
--cc=dm-crypt@saout.de \
/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