[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 28b465d8c519 by Victor Stinner in branch 'default': Issue #22181: os.urandom() now releases the GIL when the getrandom() https://hg.python.org/cpython/rev/28b465d8c519 -- ___ Python tracker

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-30 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22181 ___

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-20 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: New changeset 4491bdb6527b by Victor Stinner in branch 'default': Issue #22181: The availability of the getrandom() is now checked in configure, https://hg.python.org/cpython/rev/4491bdb6527b You forgot to run aclocal, which resulted in

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset b8ceb071159f by Victor Stinner in branch 'default': Issue #22181: Run aclocal; autoconf; autoheader to regenerate configure https://hg.python.org/cpython/rev/b8ceb071159f -- ___ Python tracker

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8c73af0b3cd9 by Victor Stinner in branch 'default': Issue #22181: Fix dev_urandom_noraise(), try calling py_getrandom() before https://hg.python.org/cpython/rev/8c73af0b3cd9 -- ___ Python tracker

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- stage: needs patch - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22181 ___

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-19 Thread STINNER Victor
STINNER Victor added the comment: Oh, test_os now fails on Linux because os.urandom() doesn't use a file descriptor anymore. The test should be skipped when getrandom() is used. The test is already skipped when getentropy() is used. -- resolution: fixed - status: closed - open

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4491bdb6527b by Victor Stinner in branch 'default': Issue #22181: The availability of the getrandom() is now checked in configure, https://hg.python.org/cpython/rev/4491bdb6527b -- ___ Python tracker

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1fc32bf069ff by Victor Stinner in branch 'default': Issue #22181: On Linux, os.urandom() now uses the new getrandom() syscall if https://hg.python.org/cpython/rev/1fc32bf069ff -- nosy: +python-dev ___

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-18 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22181 ___

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-04 Thread STINNER Victor
STINNER Victor added the comment: random-2.patch: updated patch (I don't understand why random.patch doesn't apply cleanly). -- Added file: http://bugs.python.org/file38330/random-2.patch ___ Python tracker rep...@bugs.python.org

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-02 Thread STINNER Victor
STINNER Victor added the comment: Commit in the Linux kernel: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c6e9d6f38894798696f23c8084ca7edbf16ee895 -- Here is a patch to use the new getrandom() syscall of Linux 3.17 in the Python function os.urandom(). The

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-09 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- type: enhancement - security ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22181 ___ ___

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-09 Thread STINNER Victor
STINNER Victor added the comment: This issue is specific to Linux: it depends on the Linux kernel version and we are waiting until the new syscall is available in the C library (especially the glibc). For these reasons, I prefer to open a new specific issue for OpenBSD, since they release the

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-09 Thread STINNER Victor
STINNER Victor added the comment: Since this is a Linux-specific issue (see the title), you should create a separate issue for OpenBSD support. 700eb415 opened the issue #22542 for arc4random(). -- ___ Python tracker rep...@bugs.python.org

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-08 Thread Christian Heimes
Christian Heimes added the comment: Let's not be early adopters here. I suggest we wait until glibc has a proper interface. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22181 ___

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-08 Thread 700eb415
700eb415 added the comment: OpenBSD already provides high quality pseudorandom numbers from arc4random(). I don't think this would make us early adopters since it has been around for some time on this platform. It's also worth mentioning that getentropy() is not recommended in use for normal

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-08 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22181 ___

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: This issue is about Linux support. Does the glibc have arc4random? I can't find it on my Ubuntu 13.10 system. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22181

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-08 Thread Alex Gaynor
Alex Gaynor added the comment: As I said on the other ticket, using arc4random() indiscriminately would be a very poor idea, on some platforms (such as OS X) arc4random() really does use ARC4, which means there are serious security concerns with it. --

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-08 Thread 700eb415
700eb415 added the comment: While I agree it may not be wise to use arc4random() globally, OpenBSD is unlikely to create a duplicate interface since it's already available. Python is currently unusable in chroots on that platform without reducing the security of the host partition by removing

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Since this is a Linux-specific issue (see the title), you should create a separate issue for OpenBSD support. Bonus points if you want to submit a patch as well :-) -- ___ Python tracker rep...@bugs.python.org

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-06 Thread Charles-François Natali
Charles-François Natali added the comment: Note that I'm not fussed about it: far from simplifying the code, it will make it more complex, thus more error-prone. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22181

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-06 Thread STINNER Victor
STINNER Victor added the comment: The Linux kernel 3.17 has been released with the new getrandom() syscall. glibc request to implement the function in the C library: https://sourceware.org/bugzilla/show_bug.cgi?id=17252 Bug 17252 - getrandom and getentropy syscall It looks like nobody asks for

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-06 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22181 ___ ___ Python-bugs-list mailing list

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-05 Thread anand jeyahar
anand jeyahar added the comment: Hi, This will need latest kernel to develop, fix and test. I (on Debian 7) couldn't find the latest kernel, but picked up ubuntu kernel from here http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17-rc7-utopic/. I picked up the latest i.e:

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-02 Thread 700eb415
700eb415 added the comment: It's worth noting that LibreSSL has now enabled the blocked code. If anyone is interested, I would be willing to help port it. -- nosy: +700eb415 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22181

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-08-17 Thread Josh Rosenberg
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com: -- nosy: +josh.rosenberg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22181 ___ ___

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-08-15 Thread STINNER Victor
STINNER Victor added the comment: Manual page of the OpenBSD getentropy() function: http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man2/getentropy.2 LibreSSL didn't wait for the libc, search for getentropy_getrandom():

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-08-11 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22181 ___ ___

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-08-10 Thread STINNER Victor
New submission from STINNER Victor: The future Linux kernel 3.17 will have a new getrandom() syscall which avoids the need of a file descriptor: http://lwn.net/Articles/606141/ The file descriptor of os.urandom() causes perfomance issues and surprising bugs: #18756, #21207. I don't know when

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-08-10 Thread Alex Gaynor
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22181 ___ ___ Python-bugs-list mailing

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-08-10 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - needs patch type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22181 ___

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-08-10 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22181 ___ ___ Python-bugs-list mailing