Merge ~paelzer/ubuntu/+source/qemu:lp-1878973-qga-assert-EOAN into ubuntu/+source/qemu:ubuntu/eoan-devel

Proposed by Christian Ehrhardt 
Status: Merged
Approved by: Christian Ehrhardt 
Approved revision: 77fd1b3fa19b373fdb3039343eeb36ac92ebfd29
Merge reported by: Christian Ehrhardt 
Merged at revision: 77fd1b3fa19b373fdb3039343eeb36ac92ebfd29
Proposed branch: ~paelzer/ubuntu/+source/qemu:lp-1878973-qga-assert-EOAN
Merge into: ubuntu/+source/qemu:ubuntu/eoan-devel
Diff against target: 71 lines (+49/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu/lp-1878973-fix-assert-regression.patch (+41/-0)
Reviewer Review Type Date Requested Status
Rafael David Tinoco (community) Approve
Canonical Server Pending
Canonical Server packageset reviewers Pending
Review via email: mp+385878@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Quick approval for a simple fix. Not testing install/upgrade paths.

+1

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

Thanks, tagged and uploaded to -unapproved

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

accepted into -proposed

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index 4450378..a51cec1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
1qemu (1:4.0+dfsg-0ubuntu9.8) eoan; urgency=medium
2
3 * debian/patches/ubuntu/lp-1878973-*: fix assert in qemu-guest-agent that
4 crashes it on shutdown (LP: #1878973)
5
6 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Tue, 02 Jun 2020 10:42:49 +0200
7
1qemu (1:4.0+dfsg-0ubuntu9.7) eoan; urgency=medium8qemu (1:4.0+dfsg-0ubuntu9.7) eoan; urgency=medium
29
3 * d/p/ubuntu/lp-1805256*: Fixes for QEMU on aarch64 ARM hosts10 * d/p/ubuntu/lp-1805256*: Fixes for QEMU on aarch64 ARM hosts
diff --git a/debian/patches/series b/debian/patches/series
index 43a5b90..0ab2ff2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -54,3 +54,4 @@ ubuntu/CVE-2020-10702.patch
54ubuntu/CVE-2020-1983.patch54ubuntu/CVE-2020-1983.patch
55ubuntu/lp-1805256-async_use_explicit_mem_barriers.patch55ubuntu/lp-1805256-async_use_explicit_mem_barriers.patch
56ubuntu/lp-1805256-aio-wait_delegate_poll_aioctx_bql.patch56ubuntu/lp-1805256-aio-wait_delegate_poll_aioctx_bql.patch
57ubuntu/lp-1878973-fix-assert-regression.patch
diff --git a/debian/patches/ubuntu/lp-1878973-fix-assert-regression.patch b/debian/patches/ubuntu/lp-1878973-fix-assert-regression.patch
57new file mode 10064458new file mode 100644
index 0000000..4d72c0b
--- /dev/null
+++ b/debian/patches/ubuntu/lp-1878973-fix-assert-regression.patch
@@ -0,0 +1,41 @@
1qga: fix assert regression on guest-shutdown
2From: Marc-André Lureau
3Subject: [PATCH] qga: fix assert regression on guest-shutdown
4Date: Thu, 4 Jun 2020 11:44:25 +0200
5
6Since commit 781f2b3d1e ("qga: process_event() simplification"),
7send_response() is called unconditionally, but will assert when "rsp" is
8NULL. This may happen with QCO_NO_SUCCESS_RESP commands, such as
9"guest-shutdown".
10
11Fixes: 781f2b3d1e5ef389b44016a897fd55e7a780bf35
12Cc: Michael Roth <mdroth@linux.vnet.ibm.com>
13Reported-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
14Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
15
16Origin: upstream, https://lists.nongnu.org/archive/html/qemu-devel/2020-06/msg00962.html
17Bug-Ubuntu: https://bugs.launchpad.net/bugs/1878973
18Last-Update: 2020-06-09
19---
20 qga/main.c | 6 +++++-
21 1 file changed, 5 insertions(+), 1 deletion(-)
22
23diff --git a/qga/main.c b/qga/main.c
24index f0e454f28d3..3febf3b0fdf 100644
25--- a/qga/main.c
26+++ b/qga/main.c
27@@ -531,7 +531,11 @@ static int send_response(GAState *s, const QDict *rsp)
28 QString *payload_qstr, *response_qstr;
29 GIOStatus status;
30
31- g_assert(rsp && s->channel);
32+ g_assert(s->channel);
33+
34+ if (!rsp) {
35+ return 0;
36+ }
37
38 payload_qstr = qobject_to_json(QOBJECT(rsp));
39 if (!payload_qstr) {
40--
412.26.2.561.g07d8ea56f2

Subscribers

People subscribed via source and target branches