-
Notifications
You must be signed in to change notification settings - Fork 44
rngd(8) does not accept /var/run/rtl_entropy.fifo #8
Comments
I seem to have this same issue. echo $? returns '1'. |
Can't replicate on my debian box. Can you please get me the relevant bits of /var/log/daemon.log or where ever it is your system sends the rngd logs? Heres the output I get from running the above, then doing a few runs of:
|
After looking closer at it, it appears that I needed to blacklist the "dvb_usb_rtl28xxu" module for it to work. Also, this is the first I have come back to it since I reported this bug, so something may have also changed in Debian between then and now. But, it seems to be working now, so I'll close the issue. |
So, interestingly enough, I have moved this to another machine. While it works great on my laptop, I cannot get rngd(8) to use the /var/run/rtl_entropy.fifo named pipe. Watching the data come into /var/run/rtl_entropy.fifo, it appears that it's bursting. IE- a burst of data comes in, then hangs, then a smaller burst, then hangs, then an even smaller burst, then hangs. Until eventually, it just hangs with no progress. I'm watching it with "xxd /var/run/rtl_entropy.fifo" These pauses might be what the issue was when I opened this bug, and what the problem is that I'm seeing now on my other computer. Do you know what could be creating these bursts, and how to stop them?
Should I reopen the issue, or is the fix for this already known? |
Okay, I've replicated this issue, first run of RNGD seems to work fine, then further runs get bursts from the named pipe exiting after a little bit. Appear to be getting rather round numbers of entropy read by rngd, around 2220000 bits, so it's probably some sort of output oddness in rtl-entropy :) |
it dosnt matter if its rngd or something else. if something is reading from the FIFO, then closes the handle and then open it again and try to read, it will break after a few kb sent trough the FIFO |
What the issue actually is it opens however if the entropy pool is stressed or has not had enough time to generate data rngd will pull from the fifo until there is no data left and then kill itself because there is no data left. |
I have tried with the -T flag with no effect. |
I think I've been having the same issue on CentOS 7. The pool goes down to a really low number from a really high number. |
So far what i have found is if you start rtl_entropy and then wait a few seconds ( i put 10 in my daemon ) before starting rngd the fifo has enough data in in that it will not dry up under normal operation. However , if the entropy pool is stressed rngd will run out of data and crash. The only workaround i see is incorporating the rngd code directly into rtl_entropy and adding the data directly to the random pool. |
Following the instructions on site:
It seems that rngd(8) is not accepting named pipe as a valid hardware RNG. As such, as it stands, I cannot feed the data into the kernel entropy pool for processing to /dev/random.
The text was updated successfully, but these errors were encountered: