jirka-h / haveged

Entropy daemon ![Continuous Integration](https://github.com/jirka-h/haveged/workflows/Continuous%20Integration/badge.svg)
GNU General Public License v3.0
273 stars 34 forks source link

Fix segfault on arm machines #7

Closed ncopa closed 5 years ago

ncopa commented 6 years ago

Some ARM cpus does not report the cache size or say it is -1 in sysfs. It has been observed on xgene and thunderx machines.

Fall back to the generic cache size when that happens so we don't segfault.

Should fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866306

itdaniher commented 6 years ago

Tested, works great for me! Thanks :)

vagrantc commented 6 years ago

It didn't resolve the issue for me reported in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866306

Which cache size sysfs interface was this referring to?

I'm testing on an Odroid-C2, which uses an amlogic cortex-a53 cpu.