Bug 170096 - [WTF][Linux] Use getrandom once unsupported Linux kernels disappear
Summary: [WTF][Linux] Use getrandom once unsupported Linux kernels disappear
Status: REOPENED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yusuke Suzuki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-25 02:09 PDT by Yusuke Suzuki
Modified: 2017-03-28 13:20 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuke Suzuki 2017-03-25 02:09:18 PDT
We can use getrandom after 3.17.
I think Ubuntu 14.04's kernel is a bit old...
Comment 1 Michael Catanzaro 2017-03-25 07:55:39 PDT
Kernel is not the limiting factor here, but glibc, which took a very long time to add support for getrandom(). Unless you want to use getrandom() via syscall() directly.
Comment 2 Yusuke Suzuki 2017-03-25 08:04:30 PDT
(In reply to Michael Catanzaro from comment #1)
> Kernel is not the limiting factor here, but glibc, which took a very long
> time to add support for getrandom(). Unless you want to use getrandom() via
> syscall() directly.

If so, syscall(SYS_getrandom, buf, length, 0) should work :)
Comment 3 Yusuke Suzuki 2017-03-28 12:28:23 PDT
OK, so, I'll do this in RandomDevice patch.

*** This bug has been marked as a duplicate of bug 170095 ***
Comment 4 Yusuke Suzuki 2017-03-28 13:20:33 PDT
Buildbot seems not supporting SYS_getrandom.