lkml.org 
[lkml]   [2002]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] (0/4) Entropy accounting fixes
Most of this thread is about on-going sources of entropy, but what
about initial state? Yes, distributions such as Red Hat save the pool
when shutting down and restore it on booting. But what about initial
initial state? What about those poor headless servers that get built
by Kickstart? What about the individual blades in a server? What
about poor embedded routers that are really impoverished: Nothing but
a CPU, timers, ethernet hardware, and ROM. And DRAM!

Why not use the power-on state of DRAM as a source of initial pool
entropy?

Sure, DRAM isn't very random in its power-up state, but say it is as
much as 5-nines predicatable (which I seriously doubt it is), that is
still over 300-bytes of valuable entropy for a box with a mere 4MB of
DRAM. I could easily imagine the number to be 10-times that: If just
one in 8192 bits changed from one power up to the next that would
match the full 4096-bits currently kept in the Linux entropy pool.

Even if a given DRAM chip doesn't change very much from one boot to
the next, different DRAM chips (in different boxes), will vary from
each other by much more and that is useful.

And, even if a given DRAM chip doesn't vary much from one power-on to
another 10-minutes later, DRAM does vary over time: some paranoids
worry that keys stored in RAM might be recoverable because of long
term changes to the chips. If this is a reasonable worry, then isn't
this kind of imprinting also another source of uniqueness for a given
box? Yes, if you let the Bad Guy analyze your RAM you some much of
this benefit, but if you let the Bad Guy have your hardware to play
with you are in bigger trouble.

Anyone know of measurements of DRAM power-on variability?

Wouldn't everyone benefit from initializing the pool with a hash of
(at least some of--don't want to be too slow) RAM? Even big
installations that save state on disk shouldn't mind. And make this a
configuration option for those embedded folks who have a slow CPU and
a need for fast booting (and a disinterest in entropy).


-kb
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.132 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site