1.9.8 fails to start: *** buffer overflow detected ***: terminated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
haveged (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Groovy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
1.9.8 fails to start like this:
(gdb) run
Starting program: /usr/sbin/haveged --Foreground --verbose=1
haveged: can not bind a name to UNIX socket
haveged: can not initialize command socket: Permission denied
haveged starting up
haveged: ver: 1.9.8; arch: x86; vend: GenuineIntel; build: (gcc 10.2.0 ITV); collect: 128K
haveged: cpu: (L4 VC); data: 32K (L2 L4 V); inst: 32K (L2 L4 V); idx: 24/40; sz: 32154/54079
haveged: tot tests(BA8): A:1/1 B:1/1 continuous tests(B): last entropy estimate 8.00001
haveged: fills: 0, generated: 0
*** buffer overflow detected ***: terminated
Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/
50 ../sysdeps/
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/
#1 0x00007f02ed903859 in __GI_abort () at abort.c:79
#2 0x00007f02ed96e44e in __libc_message (action=
at ../sysdeps/
#3 0x00007f02eda10c3a in __GI___fortify_fail (msg=msg@
#4 0x00007f02eda0f4d6 in __GI___chk_fail () at chk_fail.c:28
#5 0x00007f02eda10b7b in __fdelt_chk (d=<optimized out>) at fdelt_chk.c:25
#6 0x000055881936f454 in run_daemon (argv=0x7ffccea
#7 main (argc=<optimized out>, argv=<optimized out>) at haveged.c:470
tags: | removed: block-proposed-groovy |
We detected this in systemd's autopkgtest, which checks there are no failed units.
Ideally haveged would have caught this itself. The 'make check' autopkgtest, though, builds haveged fresh and then checks the thing it just built. It doesn't check the binaries that are in the archive, and neither does it check the systemd unit. That should be improved, I think.