]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "random: block in /dev/urandom"
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 16:17:20 +0000 (09:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 16:17:20 +0000 (09:17 -0700)
commite7b94d84f393ff5a26fb7c5596b15d140138c8ba
treebae948239e4a6ffe8917fb4ea045d144d70df971
parent2090b1e0a82416c14d37a2a048cc690dee1b5fbe
Revert "random: block in /dev/urandom"

This reverts commit eb4a063f883e9a7265ba87788fdb5d9134bc38f3.

It turns out we still can't do this.  Way too many platforms that don't
have any real source of randomness at boot and no jitter entropy because
they don't even have a cycle counter.

As reported by Guenter Roeck:

 "This causes a large number of qemu boot test failures for various
  architectures (arm, m68k, microblaze, sparc32, xtensa are the ones I
  observed).

  Common denominator is that boot hangs at 'Saving random seed:'"

This isn't hugely unexpected - we tried it, it failed, so now we'll
revert it.

Link: https://lore.kernel.org/all/20220322155820.GA1745955@roeck-us.net/
Reported-and-bisected-by: Guenter Roeck <linux@roeck-us.net>
Cc: Jason Donenfeld <Jason@zx2c4.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/mem.c
drivers/char/random.c
include/linux/random.h