2020-08-12 22:15:02 |
Balint Reczey |
bug |
|
|
added bug |
2020-08-12 22:15:57 |
Balint Reczey |
bug task added |
|
auto-package-testing |
|
2020-08-12 22:17:15 |
Balint Reczey |
description |
[Impact]
* Builds and autpkgtests frequently fail due to failing tst-getrandom probably due to insufficient source of entropy on Launchpad. This causes extra work by requiring retriggering failing builds and autopkgtests.
[Test Case]
* Observe tst-getrandom tests being marked XFAIL in build logs.
[Regression Potential]
* The fix does not change run-time behaviour of glibc, just ignores a test. This lets potential breakages in getrandom()'s implementation or in kernel's random source being undetected, but the test results can still be observed in the logs if needed and the random implementation is also most likely exercised in other tests, too.
[Other Info]
The issue can be reproduced locally in a built glibc package tree without haveged or any other good entropy source installed:
rbalint@gaia:~/projects/deb/build-area/glibc-2.31$ for i in $(seq 1000); do ./build-tree/amd64-libc/stdlib/tst-getrandom; done
Timed out: killed the child process
Termination time: 2020-08-12T21:05:28.234517252
Last write to standard output: 2020-08-12T21:05:04.069616637
Timed out: killed the child process
Termination time: 2020-08-12T21:05:48.337084141
Last write to standard output: 2020-08-12T21:05:28.069616637
Timed out: killed the child process
Termination time: 2020-08-12T21:06:08.439695563
Last write to standard output: 2020-08-12T21:05:48.069616637
Timed out: killed the child process
Termination time: 2020-08-12T21:06:28.542962616
Last write to standard output: 2020-08-12T21:06:08.069616637
Timed out: killed the child process
...
With haveged installed the tests pass quickly and without error:
rbalint@gaia:~/projects/deb/build-area/glibc-2.31$ for i in $(seq 1000); do ./build-tree/amd64-libc/stdlib/tst-getrandom; done
rbalint@gaia:~/projects/deb/build-area/glibc-2.31$ |
[Impact]
* Builds and autpkgtests frequently fail due to failing tst-getrandom probably due to insufficient source of entropy on Launchpad. This causes extra work by requiring retriggering failing builds and autopkgtests.
[Test Case]
* Observe tst-getrandom tests being marked XFAIL in build logs.
[Regression Potential]
* The fix does not change run-time behaviour of glibc, just ignores a test. This lets potential breakages in getrandom()'s implementation or in kernel's random source being undetected, but the test results can still be observed in the logs if needed and the random implementation is also most likely exercised in other tests, too.
[Other Info]
The issue can be reproduced locally in a built glibc package tree without haveged or any other good entropy source installed:
rbalint@gaia:~/projects/deb/build-area/glibc-2.31$ for i in $(seq 1000); do ./build-tree/amd64-libc/stdlib/tst-getrandom; done
Timed out: killed the child process
Termination time: 2020-08-12T21:05:28.234517252
Last write to standard output: 2020-08-12T21:05:04.069616637
Timed out: killed the child process
Termination time: 2020-08-12T21:05:48.337084141
Last write to standard output: 2020-08-12T21:05:28.069616637
Timed out: killed the child process
Termination time: 2020-08-12T21:06:08.439695563
Last write to standard output: 2020-08-12T21:05:48.069616637
Timed out: killed the child process
Termination time: 2020-08-12T21:06:28.542962616
Last write to standard output: 2020-08-12T21:06:08.069616637
Timed out: killed the child process
...
With haveged installed the tests pass quickly and without error:
rbalint@gaia:~/projects/deb/build-area/glibc-2.31$ for i in $(seq 1000); do ./build-tree/amd64-libc/stdlib/tst-getrandom; done
rbalint@gaia:~/projects/deb/build-area/glibc-2.31$
An other way of fixing the issue would be installing better entropy sources in the build and autopkgtest infrastructure. |
|
2020-08-12 22:48:33 |
Balint Reczey |
summary |
glibc tests needs more entropy causing tst-getrandom failures |
glibc tst-getrandom test needs more entropy causing test failures |
|
2020-08-13 10:54:17 |
Julian Andres Klode |
bug task added |
|
launchpad-buildd |
|
2020-08-13 11:03:09 |
Julian Andres Klode |
auto-package-testing: status |
New |
Fix Released |
|
2020-08-13 11:03:13 |
Julian Andres Klode |
auto-package-testing: status |
Fix Released |
Fix Committed |
|
2020-08-14 12:14:30 |
Ioana Lasc |
launchpad-buildd: importance |
Undecided |
Critical |
|
2020-08-14 12:14:35 |
Ioana Lasc |
launchpad-buildd: status |
New |
Triaged |
|
2020-09-02 14:37:16 |
Robie Basak |
glibc (Ubuntu Focal): status |
New |
Fix Committed |
|
2020-09-02 14:37:17 |
Robie Basak |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2020-09-02 14:37:19 |
Robie Basak |
bug |
|
|
added subscriber SRU Verification |
2020-09-02 14:37:22 |
Robie Basak |
tags |
|
verification-needed verification-needed-focal |
|
2020-09-02 17:12:22 |
Launchpad Janitor |
glibc (Ubuntu): status |
New |
Fix Released |
|
2020-09-07 17:22:38 |
Balint Reczey |
tags |
verification-needed verification-needed-focal |
verification-done verification-done-focal |
|
2020-09-10 23:05:31 |
Steve Langasek |
glibc (Ubuntu Bionic): status |
New |
Fix Committed |
|
2020-09-10 23:05:38 |
Steve Langasek |
tags |
verification-done verification-done-focal |
verification-done-focal verification-needed verification-needed-bionic |
|
2020-09-18 11:32:25 |
Balint Reczey |
branch linked |
|
lp:~rbalint/britney/hints-ubuntu-focal |
|
2020-09-22 15:30:18 |
Launchpad Janitor |
glibc (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|
2020-09-22 15:30:54 |
Brian Murray |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2020-10-09 15:17:17 |
Balint Reczey |
tags |
verification-done-focal verification-needed verification-needed-bionic |
verification-done verification-done-bionic verification-done-focal |
|
2020-10-27 13:27:14 |
Balint Reczey |
branch unlinked |
lp:~rbalint/britney/hints-ubuntu-focal |
|
|
2020-11-02 18:40:35 |
Launchpad Janitor |
glibc (Ubuntu Bionic): status |
Fix Committed |
Fix Released |
|
2020-11-02 18:40:35 |
Launchpad Janitor |
cve linked |
|
2017-18269 |
|