Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 738842 - =net-misc/iputils-20200821 : infinite loop with linux kernel <3.17
Summary: =net-misc/iputils-20200821 : infinite loop with linux kernel <3.17
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 766980
  Show dependency tree
 
Reported: 2020-08-24 19:29 UTC by Nuno
Modified: 2021-01-25 03:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nuno 2020-08-24 19:29:32 UTC
net-misc/iputils-20200821, started seeding a pseudo-random number generator using the getrandom function. This function was introduced in version 3.17 of the Linux kernel.

A fallback is in place for when the function fails (e.g. is not implemented), but there is a bug which results in an infinite loop.

This affects only systems running a Linux kernel <3.17.

More info upstream: https://github.com/iputils/iputils/issues/291
Patch:
 - https://github.com/iputils/iputils/pull/292
 - https://github.com/iputils/iputils/commit/9f665249e2108.patch
Comment 1 Larry the Git Cow gentoo-dev 2021-01-25 03:29:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f70bc63e84eb5797b02ec3aa6d972d2f1f8bc55a

commit f70bc63e84eb5797b02ec3aa6d972d2f1f8bc55a
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-01-25 03:27:29 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-01-25 03:27:51 +0000

    net-misc/iputils: fix fallback code when getrandom fails
    
    Closes: https://bugs.gentoo.org/738842
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 .../iputils-20200821-getrandom-fallback.patch      | 43 ++++++++++++++++++++++
 ...-20200821.ebuild => iputils-20200821-r1.ebuild} |  6 ++-
 2 files changed, 47 insertions(+), 2 deletions(-)