lkml.org 
[lkml]   [2014]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [RFC/PATCH 0/3] Add devicetree scanning for randomness
    Date
    On Wednesday 12 February 2014 12:45:54 Jason Cooper wrote:
    > I brought this up at last weeks devicetree irc meeting. My goal is to
    > provide early randomness for kaslr on ARM. Currently, my idea is modify
    > the init script to save an additional random seed from /dev/urandom to
    > /boot/random-seed.
    >
    > The bootloader would then load this file into ram, and pass the
    > address/size to the kernel either via dt, or commandline. kaslr (run in
    > the decompressor) would consume some of this randomness, and then
    > random.c would consume the rest in a non-crediting initialization.

    I like the idea, but wouldn't it be easier to pass actual random data
    using DT, rather than the address/size? That way we could even
    use the same DT binding for passing randomness from the bootloader,
    whereever it may have found that.

    If the bootloader has internet connectivity, it could even mix in
    some data from http://www.random.org/cgi-bin/randbyte?nbytes=256&format=f
    ;-)

    Arnd


    \
     
     \ /
      Last update: 2014-02-12 20:01    [W:4.296 / U:0.044 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site