This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Safeness of arc4random while fork
- From: Kinichiro Inoguchi <kinichiro dot inoguchi at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 30 Apr 2017 22:12:42 +0900
- Subject: Safeness of arc4random while fork
- Authentication-results: sourceware.org; auth=none
Hello,
I saw this issue while building LibreSSL on Cygwin64.
I had downloaded LibreSSL tar ball from here.
https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.5.3.tar.gz
And I tried to build it, build was ok, but 1 regression test failed.
This test is testing the safeness of arc4random() while forking.
With other platforms, linux, *bsd, OSX, MinGW64, this test never fail.
I checked FAQ and ML archives, but couldn't find anything.
Has anyone experienced this already ?
Could someone check the implementation of arc4random functions, please ?
build log:
----------------------------------------------------------------------
$ uname -a
CYGWIN_NT-6.1 testpc001 2.8.0(0.309/5/3) 2017-04-01 20:47 x86_64 Cygwin
$ ./configure
...
checking for poll... yes
checking for socketpair... yes
checking for arc4random... yes
checking for arc4random_buf... yes
checking for arc4random_uniform... yes
checking for explicit_bzero... no
checking for getauxval... no
...
$ make check
...
PASS: aes_wrap.exe
FAIL: arc4randomforktest.sh
PASS: asn1test.exe
...
----------------------------------------------------------------------
I posted this issue to LibreSSL project, too.
https://github.com/libressl-portable/portable/issues/289
Best regards,
Kinichiro Inoguchi
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple