Package: release.debian.org
Severity: normal
User: [email protected]
Usertags: unblock

Please unblock package bind9-libs

  * Add patch from Jorge Niedbalski to stop redundant DHCP servers
    from crashing. (Closes: #968298)

isc-dhcp is only user of the bind9-libs libraries.

This patch is in Ubuntu LTS since August 2020.

unblock bind9-libs/1:9.11.19+dfsg-2.1
diff -Nru bind9-libs-9.11.19+dfsg/debian/changelog 
bind9-libs-9.11.19+dfsg/debian/changelog
--- bind9-libs-9.11.19+dfsg/debian/changelog    2021-02-16 10:35:53.000000000 
+0200
+++ bind9-libs-9.11.19+dfsg/debian/changelog    2021-07-25 23:22:48.000000000 
+0300
@@ -1,3 +1,11 @@
+bind9-libs (1:9.11.19+dfsg-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add patch from Jorge Niedbalski to stop redundant DHCP servers
+    from crashing. (Closes: #968298)
+
+ -- Adrian Bunk <[email protected]>  Sun, 25 Jul 2021 23:22:48 +0300
+
 bind9-libs (1:9.11.19+dfsg-2) unstable; urgency=high
 
   * Although none of these CVEs affect the ISC DHCP, it's better to have
diff -Nru bind9-libs-9.11.19+dfsg/debian/patches/0013-fix-1872118.patch 
bind9-libs-9.11.19+dfsg/debian/patches/0013-fix-1872118.patch
--- bind9-libs-9.11.19+dfsg/debian/patches/0013-fix-1872118.patch       
1970-01-01 02:00:00.000000000 +0200
+++ bind9-libs-9.11.19+dfsg/debian/patches/0013-fix-1872118.patch       
2021-07-25 23:22:48.000000000 +0300
@@ -0,0 +1,22 @@
+Description: Check if sock->pending_send is set
+before calling dispatch_send(). This would prevent
+the assertion failure in cases where a socket is not dead (closed)
+and its still pending to send data and the process_fd
+event gets triggered due a wakeup.
+
+Author: Jorge Niedbalski <[email protected]>
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1872118
+Forwarded: no
+Last-Update: 2020-08-03
+
+--- bind9-libs-9.11.16+dfsg.orig/lib/isc/unix/socket.c
++++ bind9-libs-9.11.16+dfsg/lib/isc/unix/socket.c
+@@ -4050,7 +4050,7 @@ check_write:
+               if (!SOCK_DEAD(sock)) {
+                       if (sock->connecting)
+                               dispatch_connect(sock);
+-                      else
++                      else if (!sock->pending_send)
+                               dispatch_send(sock);
+               }
+               unwatch_write = true;
diff -Nru bind9-libs-9.11.19+dfsg/debian/patches/series 
bind9-libs-9.11.19+dfsg/debian/patches/series
--- bind9-libs-9.11.19+dfsg/debian/patches/series       2021-02-16 
10:35:53.000000000 +0200
+++ bind9-libs-9.11.19+dfsg/debian/patches/series       2021-07-25 
23:22:48.000000000 +0300
@@ -10,3 +10,4 @@
 0010-Always-keep-a-copy-of-the-message.patch
 0011-Update-policy-subdomain-was-incorrectly-treated-as-z.patch
 0012-ISC-BIND-TKEY-Query-Heap-based-Buffer-Overflow-RCE-V.patch
+0013-fix-1872118.patch

Reply via email to