All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] random: Account for entropy loss due to overwrites
@ 2012-11-21  7:27 H. Peter Anvin
  2012-11-21  7:27 ` [PATCH v2 1/2] random: Statically compute poolbitshift, poolbytes, poolbits H. Peter Anvin
  2012-11-21  7:27 ` [PATCH v2 2/2] random: Account for entropy loss due to overwrites H. Peter Anvin
  0 siblings, 2 replies; 3+ messages in thread
From: H. Peter Anvin @ 2012-11-21  7:27 UTC (permalink / raw)
  To: Theodore Ts'o
  Cc: Linux Kernel Mailing List, DJ Johnston, H. Peter Anvin,
	H. Peter Anvin

From: "H. Peter Anvin" <hpa@linux.intel.com>

When we write entropy into a non-empty pool, we currently don't
account at all for the fact that we will probabilistically overwrite
some of the entropy in that pool.  This means that unless the pool is
fully empty, we are currently *guaranteed* to overestimate the amount
of entropy in the pool!

This version of the patchset avoids manually duplicating information
by using a macro.  This removes *all* dynamic computation of derived
pool information and replaces them with static information: on just
about every architecture accessing pointer+offset is no more expensive
than just plain pointer, and this lets us get the information we
actually need from the start.

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

end of thread, other threads:[~2012-11-21  7:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-21  7:27 [PATCH v2 0/2] random: Account for entropy loss due to overwrites H. Peter Anvin
2012-11-21  7:27 ` [PATCH v2 1/2] random: Statically compute poolbitshift, poolbytes, poolbits H. Peter Anvin
2012-11-21  7:27 ` [PATCH v2 2/2] random: Account for entropy loss due to overwrites H. Peter Anvin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.