collectd: ping - fix use-after-free when re-resolving a host
authorHannu Nyman <redacted>
Sun, 14 Jun 2026 07:03:41 +0000 (10:03 +0300)
committerHannu Nyman <redacted>
Sun, 14 Jun 2026 07:03:41 +0000 (10:03 +0300)
commiteb219825764e7e51039a3adc6bbaf57b6ea8a625
treecc1044ef3af3e0c4c16e33dda076ea706e907e08
parent82b94afb304c8e796897316b490656ea76390cf4
collectd: ping - fix use-after-free when re-resolving a host

Add a patch fixing a possible crash, when a non-responding host is
tried to be pinged and retry attempts are limited by MaxMissed option.

> daemon.err: collectd[14133]: ping plugin: host 192.168.1.99 has not answered 3 PING requests, triggering resolve
> daemon.info: procd: Instance collectd::instance1 s in a crash loop 7 crashes, 3 seconds since last crash

Fixes: #29649
* upstream bug created: https://github.com/collectd/collectd/issues/4406
* older upstream bug: https://github.com/collectd/collectd/issues/3079

Signed-off-by: Hannu Nyman <redacted>
utils/collectd/Makefile
utils/collectd/patches/090-fix-ping-plugin-use-after-free-when-re-resolving-a-h.patch [new file with mode: 0644]
git clone https://git.99rst.org/PROJECT