Merge ~paelzer/ubuntu/+source/unbound:lp-1788622-fix-unbound-systemd-reload into ubuntu/+source/unbound:ubuntu/bionic-devel

Proposed by Christian Ehrhardt 
Status: Merged
Approved by: Christian Ehrhardt 
Approved revision: 38d1dd2f178688ca7677e30a8df3ad7a762c8150
Merged at revision: 38d1dd2f178688ca7677e30a8df3ad7a762c8150
Proposed branch: ~paelzer/ubuntu/+source/unbound:lp-1788622-fix-unbound-systemd-reload
Merge into: ubuntu/+source/unbound:ubuntu/bionic-devel
Diff against target: 66 lines (+45/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/lp-1788622-fix-systemd-reload.patch (+37/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Andreas Hasenack Approve
Canonical Server packageset reviewers Pending
git-ubuntu developers Pending
Review via email: mp+353786@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Test Descriptions in the SRU Template at bug: https://bugs.launchpad.net/ubuntu/+source/unbound/+bug/1788622
Test PPA: https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/3382

Reivew-Note: there is some magic in
  $ cat debian/source/options
  single-debian-patch
To work with git ubuntu "the usual" way we have to prepend the patch in debian/patch/series before the generic "debian-changes". Otherwise it would be double included and fail to build.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

+1, and TIL about single-debian-patch

Fix confirmed using the test from the SRU template.

review: Approve
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

There is another unbound SRU I was tempted to combine, but its test steps are not complete yet and one by one they will be easier for the SRU Team to review.
So uploading this - thanks for the review.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

To ssh://git.launchpad.net/~usd-import-team/ubuntu/+source/unbound
 * [new tag] upload/1.6.7-1ubuntu2.2 -> upload/1.6.7-1ubuntu2.2

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading unbound_1.6.7-1ubuntu2.2.dsc: done.
  Uploading unbound_1.6.7-1ubuntu2.2.debian.tar.xz: done.
  Uploading unbound_1.6.7-1ubuntu2.2_source.buildinfo: done.
  Uploading unbound_1.6.7-1ubuntu2.2_source.changes: done.
Successfully uploaded packages.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 0e45455..e8b5c2c 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+unbound (1.6.7-1ubuntu2.2) bionic; urgency=medium
7+
8+ * d/p/lp-1788622-fix-systemd-reload.patch: Fix hang due to all worker threads
9+ stopping on reload (LP: #1788622)
10+
11+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Mon, 27 Aug 2018 14:12:29 +0200
12+
13 unbound (1.6.7-1ubuntu2.1) bionic-security; urgency=medium
14
15 * SECURITY UPDATE: vulnerability in the processing of wildcard
16diff --git a/debian/patches/lp-1788622-fix-systemd-reload.patch b/debian/patches/lp-1788622-fix-systemd-reload.patch
17new file mode 100644
18index 0000000..ec50993
19--- /dev/null
20+++ b/debian/patches/lp-1788622-fix-systemd-reload.patch
21@@ -0,0 +1,37 @@
22+From 5106ad7a2c8460d5bb9cb619d360dfe1f259eac2 Mon Sep 17 00:00:00 2001
23+From: Wouter Wijngaards <wouter@nlnetlabs.nl>
24+Date: Thu, 21 Jun 2018 07:11:12 +0000
25+Subject: [PATCH] - #4108: systemd reload hang fix.
26+
27+git-svn-id: file:///svn/unbound/trunk@4747 be551aaa-1e26-0410-a405-d3ace91eadb9
28+
29+Backport Note: This isn't released by upstream yet but on upstream
30+master. Debian picked the fix a while ago, due to that it is in Cosmic
31+already.
32+
33+Author: Christian Ehrhardt <christian.ehrhardt@canonical.com>
34+Original-Author: Wouter Wijngaards <wouter@nlnetlabs.nl>
35+Origin: backport, https://github.com/NLnetLabs/unbound/commit/5106ad7a2c8460d5bb9cb619d360dfe1f259eac2
36+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1788622
37+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892914
38+Last-Update: 2018-08-27
39+
40+---
41+ daemon/daemon.c | 5 ++++-
42+ doc/Changelog | 3 +++
43+ 2 files changed, 7 insertions(+), 1 deletion(-)
44+
45+--- a/daemon/daemon.c
46++++ b/daemon/daemon.c
47+@@ -650,7 +650,10 @@ daemon_fork(struct daemon* daemon)
48+ log_info("start of service (%s).", PACKAGE_STRING);
49+ worker_work(daemon->workers[0]);
50+ #ifdef HAVE_SYSTEMD
51+- sd_notify(0, "STOPPING=1");
52++ if (daemon->workers[0]->need_to_exit)
53++ sd_notify(0, "STOPPING=1");
54++ else
55++ sd_notify(0, "RELOADING=1");
56+ #endif
57+ log_info("service stopped (%s).", PACKAGE_STRING);
58+
59diff --git a/debian/patches/series b/debian/patches/series
60index c21e312..597d6e1 100644
61--- a/debian/patches/series
62+++ b/debian/patches/series
63@@ -1,2 +1,3 @@
64 CVE-2017-15105.patch
65+lp-1788622-fix-systemd-reload.patch
66 debian-changes

Subscribers

People subscribed via source and target branches