Re: [PATCH] lib/test_printf.c: call wait_for_random_bytes() before plain %p tests

2018-05-22 Thread Tobin C . Harding
On Tue, May 22, 2018 at 07:41:14PM +0200, Thierry Escande wrote: > If the test_printf module is loaded before the crng is initialized, the > plain 'p' tests will fail because the printed address will not be hashed > and the buffer will contain '(ptrval)' instead. > This patch adds a call to

Re: [PATCH] lib/test_printf.c: call wait_for_random_bytes() before plain %p tests

2018-05-22 Thread Tobin C . Harding
On Tue, May 22, 2018 at 07:41:14PM +0200, Thierry Escande wrote: > If the test_printf module is loaded before the crng is initialized, the > plain 'p' tests will fail because the printed address will not be hashed > and the buffer will contain '(ptrval)' instead. > This patch adds a call to

[PATCH] lib/test_printf.c: call wait_for_random_bytes() before plain %p tests

2018-05-22 Thread Thierry Escande
If the test_printf module is loaded before the crng is initialized, the plain 'p' tests will fail because the printed address will not be hashed and the buffer will contain '(ptrval)' instead. This patch adds a call to wait_for_random_bytes() before plain 'p' tests to make sure the crng is

[PATCH] lib/test_printf.c: call wait_for_random_bytes() before plain %p tests

2018-05-22 Thread Thierry Escande
If the test_printf module is loaded before the crng is initialized, the plain 'p' tests will fail because the printed address will not be hashed and the buffer will contain '(ptrval)' instead. This patch adds a call to wait_for_random_bytes() before plain 'p' tests to make sure the crng is