linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: The disappearing sys_call_table export.
@ 2003-05-13 13:58 Yoav Weiss
  2003-05-13 22:51 ` Ahmed Masud
  0 siblings, 1 reply; 22+ messages in thread
From: Yoav Weiss @ 2003-05-13 13:58 UTC (permalink / raw)
  To: masud; +Cc: linux-kernel

Masud wrote:

> But isn't swap crypting fun ? :-) Running encrypted swap is okay so long
> as we throw away the key after each session.  This can be easily (famous
> last words) achieved under crypto kernels. I am not certain if such
> functionaility is being contemplated for the Linux kernel along with the
> new cryptoloop stuff, if there isn't i can volunteer to put something
> like that in - if we are interested. Are we?

See http://loop-aes.sourceforge.net/
The README already explains how to use it as encrypted swap.  I've been
using it for quite a while without problems.

If you feel like volunteering for an encrypted swap, I suggest the model
used by OpenBSD.  Instead of using an encrypted swap dev with one random
key, they seem to have a per-process key and encrypt swap areas of the
process with its key.  When a process dies, its key dies with it, so the
swap space it used is considered clean without having to wait for an
override or a reboot.

Another fun project is encrypted hibernation (suspend-to-disk).  Once the
kernel contains a stable hibernation option, I'm certainly going to
encrypt it.



^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: encrypted swap [was: The disappearing sys_call_table export.] (fwd)
@ 2003-05-16  8:19 Ahmed Masud
  2003-05-16 23:09 ` encrypted swap [was: The disappearing sys_call_table export.] Yoav Weiss
  0 siblings, 1 reply; 22+ messages in thread
From: Ahmed Masud @ 2003-05-16  8:19 UTC (permalink / raw)
  To: Yoav Weiss; +Cc: Linux Kernel Mailing List



On Fri, 16 May 2003, Yoav Weiss wrote:

> Hi,
>
> I got the below from some guy, off the list.
> He may has a point, at least when writable pages are shared between
> processes.
>
> What do you think ?
>
> 	Yoav
>
>  My apologies; I was unclear.
>
>  I think that you need to associate swap encryption keys with memory
> spaces, not with processes, precisely because you need to be able to
> swap out and swap in from any process using that memory space. And
> correspondingly the key can't die on a per-process basis, it has to
> die if and only if the associated memory space is torn down (which
> may be long after the PID that originally creates it goes away).

Hi Yoav,

After sort of thinking about it at this early friday hour (well late
thursday for me), it occurs to me that we may want to maintain keys
either in the vm_area_struct (vma) or for a vma group.

We want to decrypt mostlikely after a page-fault, which triggers a vma
nopage (code here?), has loaded the page so vma key, and swapping out of
course is still in vma domain.

Since we can always go from process to vma to page and back again i think
it is not going to cause any tracking issues.

Further, we have different vma's for shared and other interesting pages
so various optimizations are also doable on a case to case basis.

Does this make any sense? or am I off the cuckoo train at this hour :)

Please comment.

Cheers,

Ahmed.


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2003-06-15 22:23 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-13 13:58 The disappearing sys_call_table export Yoav Weiss
2003-05-13 22:51 ` Ahmed Masud
2003-05-13 23:58   ` Yoav Weiss
2003-05-14 10:06     ` encrypted swap [was: The disappearing sys_call_table export.] Ahmed Masud
2003-05-14 12:43       ` Yoav Weiss
2003-05-14 14:02         ` Ahmed Masud
2003-05-14 15:12           ` Yoav Weiss
2003-05-14 14:06         ` Ahmed Masud
2003-05-14 15:20           ` Yoav Weiss
2003-05-14 15:57       ` Jörn Engel
2003-05-14 16:13         ` Ahmed Masud
2003-05-14 16:23           ` Jörn Engel
2003-05-14 16:32             ` Ahmed Masud
2003-05-14 16:38             ` Ahmed Masud
2003-05-14 18:59             ` Yoav Weiss
2003-05-15  7:24               ` Jörn Engel
2003-05-15 10:16                 ` Yoav Weiss
2003-06-12 23:20     ` The disappearing sys_call_table export Nigel Cunningham
2003-06-15 22:37       ` Yoav Weiss
2003-05-16  8:19 encrypted swap [was: The disappearing sys_call_table export.] (fwd) Ahmed Masud
2003-05-16 23:09 ` encrypted swap [was: The disappearing sys_call_table export.] Yoav Weiss
2003-05-16 23:39   ` Yoav Weiss
2003-05-17 16:32     ` Hugh Dickins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).