[merged] revert-lib-test_printfc-call-wait_for_random_bytes-before-plain-%p-tests.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: Revert "lib/test_printf.c: call wait_for_random_bytes() before plain %p tests"
has been removed from the -mm tree.  Its filename was
     revert-lib-test_printfc-call-wait_for_random_bytes-before-plain-%p-tests.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Petr Mladek <pmladek@xxxxxxxx>
Subject: Revert "lib/test_printf.c: call wait_for_random_bytes() before plain %p tests"

Revert ee410f15b1418f2f442 ("lib/test_printf.c: call
wait_for_random_bytes() before plain %p tests").

It might prevent the machine from booting.  It would wait for enough
randomness at the very beginning of kernel_init().  But there is basically
nothing running in parallel that would help to produce any randomness.

Link: http://lkml.kernel.org/r/20180625120454.rtf7ram4euvgdc6w@xxxxxxxxxxxxxxx
Fixes: ee410f15b1418f2f442 ("lib/test_printf.c: call wait_for_random_bytes() before plain %p tests")
Signed-off-by: Petr Mladek <pmladek@xxxxxxxx>
Reported-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>
Cc: Thierry Escande <thierry.escande@xxxxxxxxxx>
Cc: David Miller <davem@xxxxxxxxxxxxx>
Cc: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx>
Cc: "Tobin C . Harding" <me@xxxxxxxx>
Cc: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---


diff -puN lib/test_printf.c~revert-lib-test_printfc-call-wait_for_random_bytes-before-plain-%p-tests lib/test_printf.c
--- a/lib/test_printf.c~revert-lib-test_printfc-call-wait_for_random_bytes-before-plain-%p-tests
+++ a/lib/test_printf.c
@@ -260,13 +260,6 @@ plain(void)
 {
 	int err;
 
-	/*
-	 * Make sure crng is ready. Otherwise we get "(ptrval)" instead
-	 * of a hashed address when printing '%p' in plain_hash() and
-	 * plain_format().
-	 */
-	wait_for_random_bytes();
-
 	err = plain_hash();
 	if (err) {
 		pr_warn("plain 'p' does not appear to be hashed\n");
_

Patches currently in -mm which might be from pmladek@xxxxxxxx are


--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux