[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140501150549.GA24388@thunk.org>
Date: Thu, 1 May 2014 15:05:49 +0000
From: tytso@....edu
To: "H. Peter Anvin" <hpa@...or.com>
Cc: Andy Lutomirski <luto@...capital.net>,
Florian Weimer <fweimer@...hat.com>,
linux-kernel@...r.kernel.org, Kees Cook <kees@...flux.net>
Subject: Re: [PATCH] random: Add "initialized" variable to proc
On Wed, Apr 30, 2014 at 09:05:00PM -0700, H. Peter Anvin wrote:
>
> Giving the guest a seed would be highly useful, though. There are a
> number of ways to do that; changing the boot protocol is probably
> only useful if Qemu itself bouts the kernel as opposed to an in-VM
> bootloader.
So how about simply passing a memory address and an optional offset on
the boot command line? That way the hypervisor can drop the seed in
some convenient real memory location, and the kernel can just copy it
someplace safe, or in the case of kernel ASLR, the relocator can use
it to seed its CRNG, and then after it relocates the kernel, it can
crank the CRNG to pass a seed to the kernel's urandom driver.
That way, we don't have to do something which is ACPI or DT dependent.
Maybe there will be embedded architectures where using DT might be
more convenient, but this would probably be simplest for KVM/qumu-based
VM's, I would think.
- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists