-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
haveged core dump on Raspberry Pi with Arch Linux ARM #41
Comments
|
Noticed this to happend also on the latest Version |
|
I've also noticed the same behaviour on a x86_64 system. |
|
Also happening on a Pi model B (rev. 1) |
|
Thanks for the report! It's running fine on my Fedora x86_64 system. @Broeckelmaier - could you please share more details about the problem on your system? haveged version and /usr/lib/systemd/system/haveged.service file? I really would like to get a reproducer. @haraldkoch - could you please try to add "@System-service" to the white-list? Modified SystemCallFilter line: Please add also this line: Documentation: Thanks for your help to debug this! @nbraud - Nicolas, could you please help to resolve this? The SystemCallFilter has been added in pull request #26 Thanks! |
|
I've modified the
|
|
Thanks a lot for testing it! I'm glad that it's working. This is the verified systemd SystemCall setup: I have checked the output of
and
I'm now testing this setup, as recommended here:
@Broeckelmaier - could you please test this simplified setup? Thanks! I will wait for Nicholas to comment on this before committing the change. Thanks to everybody! |
|
the simplified
|
|
Thank you, @Broeckelmaier! Let's see what Nicolas thinks about it. (Cc: @nbraud ) |
This change works on my systems also. Thank you! |
|
Great! Thanks for the update! |
|
I am seeing this too on rpi0, and in the log: Also I just noticed that the cpu usage changed quite a bit after the batch updates that included haveged It's haveged fault, right ? |
|
Regarding the crash: Could you please try to update the systemd service file ( instead of I'm going to release a new version of haveged with systemd file updated (assuming I will get no negative comments on this change). Regarding the CPU usage: there is no change in the code to explain the higher CPU usage. Looking at the graph you have shared, there is now a high "nice" load - it's % of CPU time occupied by user-level processes with a positive nice value. haveged CPU usage will get higher, if there is some process which demands lots of entropy, just requesting haveged to refill the entropy pool. Could it be the case? Thanks |
|
I forgot to mention that after I changed the systemd .service file with the changed mentionned earlier: It went back to normal About the cpu usage, you should note also, there is a high cpu usage of "system" of about 40-50%, which does not seems normal. But, yes it should be noted that I run But I was already running that before the update of haveged to 1.9.11, so that could not explain the change I am making the change you requested and report back as soon as possible if there is any negative effect |
|
@haraldkoch you should not have been affected (?) because it is recommended to run rngd from rng-tools on rpi3 on archlinux-arm, as mentionned on the wiki. It seems you can even run it on rpi0. But I am wondering about the accuracy of the wiki "Hardware Random Number Generator" paragraph though |
|
@solsticedhiver - thanks for the testing! Regarding high CPU usage - could you please check htop/top output to see what is causing high CPU load? Jirka |
|
it's a system (aka kernel) process called Because haveged was crashing at the rate of 5 times per second... being restarted each time it crashed. |
|
OK, now it makes sense. I'm sorry for the inconvenience. I think systemd should not try to restart a daemon when it fails 5 times in a row. Anyhow, I'm preparing a new release, it should be ready by tomorrow. Thanks |
|
Fixed with commit 159dcde |
|
Released in v1.9.13 |
Raspberry Pi 3 (ARM8) Running Arch Linux ARM. Linux kernel 5.4.45-1-ARCH. Arch uses
init.d/fedora.servicefrom this repo to start the daemon.systemctl start havegedhas started core dumping:I can make this go away by commenting out (or removing) the two
SystemCallFilterlines, but I don't know which extra system calls are being invoked in a Raspberry Pi environment. Others have reported that reverting to 1.9.8 also fixes the core dumps - this was before the SystemCallFilter lines were added.I'm happy to help debug this, but I don't know how to determine which system call is missing from the filter - if you have advice, I can run tests.
Thanks!
The text was updated successfully, but these errors were encountered: