Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1577253

Re: [PATCH] Revert "hwrng: core - zeroize buffers with random data"

From Linus Torvalds <torvalds@linux-foundation.org>
Newsgroups linux.kernel
Subject Re: [PATCH] Revert "hwrng: core - zeroize buffers with random data"
Date 2017-02-09 03:00 +0100
Message-ID <t8MbE-81G-5@gated-at.bofh.it> (permalink)
References <t8MbE-81G-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Stephan, Herbert? The zeroes in /dev/hwrng output are obviously
complete crap, so there's something badly wrong somewhere.

The locking, for example, is completely buggered. There's even a
comment about it, but that comment makes the correct observation of
"but y'know: randomness". But the memset() also being outside the lock
makes a complete joke of the whole thing.

Is the hwrng thing even worth maintaining? Compared to something like
/dev/urandom, it clearly does not do a very good job.

So I'm inclined to take the revert, but I'm also somewhat inclined to
simply mark this crud broken when we have other things that clearly do
a lot better.

              Linus

On Tue, Feb 7, 2017 at 4:23 PM, David Daney <david.daney@cavium.com> wrote:
> This reverts commit 2cc751545854d7bd7eedf4d7e377bb52e176cd07.

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] Revert "hwrng: core - zeroize buffers with random data" Linus Torvalds <torvalds@linux-foundation.org> - 2017-02-09 03:00 +0100
  Re: [PATCH] Revert "hwrng: core - zeroize buffers with random data" Stephan Müller <smueller@chronox.de> - 2017-02-09 10:40 +0100

csiph-web