From: pdns packagers Date: Fri, 21 Jun 2019 19:07:07 +0000 (+0100) Subject: CVE-2019-10163-4.1.8-busyloop X-Git-Tag: archive/raspbian/4.1.6-3+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ca7131cb6d2bd594d8575001b80e73098948589b;p=pdns.git CVE-2019-10163-4.1.8-busyloop Gbp-Pq: Name CVE-2019-10163-4.1.8-busyloop.patch --- diff --git a/pdns/communicator.cc b/pdns/communicator.cc index 7db5a3e..7fd59e4 100644 --- a/pdns/communicator.cc +++ b/pdns/communicator.cc @@ -136,7 +136,10 @@ void CommunicatorClass::mainloop(void) if (extraSlaveRefresh) slaveRefresh(&P); } - else { + else { + // eat up extra posts to avoid busy looping if many posts were done + while (d_any_sem.tryWait() == 0) { + } break; // something happened } // this gets executed at least once every second