Comments (7)
they are revealing that your urandom source isn't producing very random data. Transient failures like this are possible (and thats not expressly problematic), but it does suggest that the entropy pool in your host is running low. Are you running rngd in the host?
from rng-tools.
rngd running on the builder host doesn't address the issue.
The entropy pool fill level is almost stable while running tests in build environment:
$ while :; do cat /proc/sys/kernel/random/entropy_avail; done
3387
3387
3387
3387
3387
3387
3387
3387
3387
3387
3387
3387
3387
but random test failures still persist.
from rng-tools.
you said you are running in a chroot..Are you also running in a VM?
from rng-tools.
I'm running both. My experiments (with above resulting logs) are being performed in a VM. But the reason to start the experiments was a failure of auto test during build on real HW.
from rng-tools.
so, to be clear, this test failure doesn't appear to be a failing in the rng-tools suite itself, but a detection of non-random data in your urandom pool. That said, urandom is meant to be a best effort operation as far as random data is concerned, meaning that occasional failures like this may occur. Perhaps it would be better to document those transient unexpected outcomes as XPASS results, meaning they pass, but for unexpected reasons. Do you think that would be a reasonable solution?
from rng-tools.
If there is nothing left to be done to make the auto tests' results more stable in my described environments, and you consider this is not a rng-tools codebase bug, then introducing some border "XPASS" state as a solution seems reasonable to me.
But I wonder, whether you are going to change auto tests code to output some additional result code to represent XPASS state? Should I expect that in future releases to change my spec file appropriately? Or it's up to me to decide how to treat random /dev/urandom test failures?
Thank you for your time to discuss the issue.
from rng-tools.
Closing as following commit introduces the agreed XPASS state:
ce96ccb
Thank you.
from rng-tools.
Related Issues (20)
- rngd takes more CPU when writing to /dev/urandom than /dev/random HOT 7
- Inconsistent behaviour between all rngd version flags HOT 3
- Is rngd_rndr using correct rng_options index? HOT 2
- v6.15 build fails with jitterentropy 3.4 HOT 4
- rng-tools stopped to build with jitterentropy v3.4.0 HOT 16
- kernel handling of hwrng versus rngd HOT 3
- [6.14] rngd --list not showing full list and hangs HOT 31
- rngd and the LRNG HOT 14
- rngtestjitter.sh failures after recent changes HOT 23
- building without qrypt fails HOT 1
- Is it useful with kernel 5.18 (new rng blake2 output - entropy_avail always equal to 256)? HOT 1
- rngd fails with gcrypt library HOT 2
- 'rngd -l' | sources associated to an incorrect index HOT 1
- Add mention of kernel version when referring to it in documentation HOT 6
- External tool as entropy source for Jetson devices HOT 3
- Consider a new release for compatibility with jitterentropy-3.4 HOT 1
- Is it possible to add an option to capture the random data from the source to a file rather than adding it to the kernel entropy pool ? HOT 2
- 6.16: test suie runs forever HOT 2
- Change poolsize definition for recent Linux kernels? HOT 5
- Socket interface for hardware TRNGs HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rng-tools.