Merge ~paelzer/ubuntu/+source/qemu:lp-1908331-static-1907656-s390xpci-GROOVY into ubuntu/+source/qemu:ubuntu/groovy-devel

Proposed by Christian Ehrhardt 
Status: Merged
Approved by: Christian Ehrhardt 
Approved revision: 18e8aca4d66570bb042d41807bf0979b1db963d8
Merge reported by: Christian Ehrhardt 
Merged at revision: 991c26e140e889d6a32ec042934b5a2d385bb3bd
Proposed branch: ~paelzer/ubuntu/+source/qemu:lp-1908331-static-1907656-s390xpci-GROOVY
Merge into: ubuntu/+source/qemu:ubuntu/groovy-devel
Diff against target: 115 lines (+57/-15)
4 files modified
debian/changelog (+8/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu/lp-1907656-s390x-s390-virtio-ccw-Reset-PCI-devices-during-subsy.patch (+43/-0)
debian/rules (+5/-15)
Reviewer Review Type Date Requested Status
Sergio Durigan Junior (community) Needs Fixing
Canonical Server Pending
git-ubuntu developers Pending
Review via email: mp+395786@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
Christian Ehrhardt  (paelzer) wrote :

P.S. I know I need to create proper SRU bug texts, I'll add them before upload once I got to complete the tests and know what to write there.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Reviewing this one.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thanks for the MP, Christian!

The s390x bits are OK, but I found what seems to be a problem in the hunk that adds "--disable-pie" to the configure flags, so I'm marking this as Needs Fixing. Feel free to upload once this fixed.

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

Thanks Sergio, that indeed was an issue - Fixed (And period added).
It would have been spotted on testing, but that way it is much better - Thanks.

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

 * [new tag] upload/1%5.0-5ubuntu9.3 -> upload/1%5.0-5ubuntu9.3

Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading qemu_5.0-5ubuntu9.3.dsc: done.
  Uploading qemu_5.0-5ubuntu9.3.debian.tar.xz: done.
  Uploading qemu_5.0-5ubuntu9.3_source.buildinfo: done.
  Uploading qemu_5.0-5ubuntu9.3_source.changes: done.
Successfully uploaded packages.

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

Uploaded, setting state to "merged"

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 2d0422d..cb26d31 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+qemu (1:5.0-5ubuntu9.3) groovy; urgency=medium
7+
8+ * d/p/ubuntu/lp-1907656-s390x-s390-virtio-ccw-Reset-PCI-devices-during-subsy:
9+ avoid PCI devices to become unavailable on reset (LP: #1907656)
10+ * d/rules: fix qemu-user-static to really be static (LP: #1908331)
11+
12+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Tue, 05 Jan 2021 15:46:16 +0100
13+
14 qemu (1:5.0-5ubuntu9.2) groovy-security; urgency=medium
15
16 * SECURITY UPDATE: heap buffer overflow in sdhci_sdma_transfer_multi_blocks()
17diff --git a/debian/patches/series b/debian/patches/series
18index fed901f..3ddd537 100644
19--- a/debian/patches/series
20+++ b/debian/patches/series
21@@ -98,3 +98,4 @@ ubuntu/CVE-2020-25625.patch
22 ubuntu/CVE-2020-25723.patch
23 ubuntu/CVE-2020-27616.patch
24 ubuntu/CVE-2020-27617.patch
25+ubuntu/lp-1907656-s390x-s390-virtio-ccw-Reset-PCI-devices-during-subsy.patch
26diff --git a/debian/patches/ubuntu/lp-1907656-s390x-s390-virtio-ccw-Reset-PCI-devices-during-subsy.patch b/debian/patches/ubuntu/lp-1907656-s390x-s390-virtio-ccw-Reset-PCI-devices-during-subsy.patch
27new file mode 100644
28index 0000000..8fe8fa1
29--- /dev/null
30+++ b/debian/patches/ubuntu/lp-1907656-s390x-s390-virtio-ccw-Reset-PCI-devices-during-subsy.patch
31@@ -0,0 +1,43 @@
32+From db08244a3a7ec312dfed3fd9b88e114281215458 Mon Sep 17 00:00:00 2001
33+From: Matthew Rosato <mjrosato@linux.ibm.com>
34+Date: Thu, 15 Oct 2020 09:16:07 -0400
35+Subject: [PATCH] s390x/s390-virtio-ccw: Reset PCI devices during subsystem
36+ reset
37+
38+Currently, a subsystem reset event leaves PCI devices enabled, causing
39+issues post-reset in the guest (an example would be after a kexec). These
40+devices need to be reset during a subsystem reset, allowing them to be
41+properly re-enabled afterwards. Add the S390 PCI host bridge to the list
42+of qdevs to be reset during subsystem reset.
43+
44+Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
45+Reviewed-by: Eric Farman <farman@linux.ibm.com>
46+Acked-by: Halil Pasic <pasic@linux.ibm.com>
47+Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
48+Cc: qemu-stable@nongnu.org
49+Message-Id: <1602767767-32713-1-git-send-email-mjrosato@linux.ibm.com>
50+Signed-off-by: Cornelia Huck <cohuck@redhat.com>
51+
52+Origin: upstream, https://git.qemu.org/?p=qemu.git;a=commit;h=db08244a3a7ec312dfed3fd9b88e114281215458
53+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1907656
54+Last-Update: 2021-01-05
55+
56+---
57+ hw/s390x/s390-virtio-ccw.c | 1 +
58+ 1 file changed, 1 insertion(+)
59+
60+diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
61+index e52182f946..2e900335ea 100644
62+--- a/hw/s390x/s390-virtio-ccw.c
63++++ b/hw/s390x/s390-virtio-ccw.c
64+@@ -101,6 +101,7 @@ static const char *const reset_dev_types[] = {
65+ "s390-sclp-event-facility",
66+ "s390-flic",
67+ "diag288",
68++ TYPE_S390_PCI_HOST_BRIDGE,
69+ };
70+
71+ static void subsystem_reset(void)
72+--
73+2.30.0
74+
75diff --git a/debian/rules b/debian/rules
76index 87afc09..2d1fa4e 100755
77--- a/debian/rules
78+++ b/debian/rules
79@@ -111,19 +111,6 @@ user_targets = \
80
81 endif # enable_linux_user
82
83-ifneq ($(filter $(DEB_HOST_ARCH),i386 x32),)
84-# XXX as of 2020-04-29, i386 buildd fails to link -static-pie executable:
85-# /usr/bin/ld: /usr/lib/i386-linux-gnu/libc.a(memset_chk-nonshared.o):
86-# unsupported non-PIC call to IFUNC `memset'
87-# so disable PIE for qemu-user-static build on i386 for now.
88-# On x32 -static-pie fails in different way.
89-# On amd64 -static-pie appears to work fine.
90-# On other architectures qemu correctly detect that -static-pie is not available
91-XXXstaticpie = --disable-pie
92-else
93-XXXstaticpie =
94-endif
95-
96 b/configure-stamp: configure
97 dh_testdir
98
99@@ -215,11 +202,14 @@ endif
100
101 ifeq ($(enable_linux_user),enable)
102 # do not use debian/configure-opts here, all optional stuff will be enabled
103-# automatically, dependencies are already verified in the main build
104+# automatically, dependencies are already verified in the main build.
105+# By default this would detect linker option --static-pie, but that
106+# breaks some use cases of qemu-static builds (LP: #1908331), therefore
107+# add --disable-pie to get "real static" builds.
108 rm -rf b/user-static; mkdir b/user-static
109 cd b/user-static && \
110 ../../configure ${common_configure_opts} \
111- --static ${XXXstaticpie} --disable-system --disable-xen \
112+ --static --disable-pie --disable-system --disable-xen \
113 --target-list="$(addsuffix -linux-user,${user_targets})"
114 endif
115 touch $@

Subscribers

People subscribed via source and target branches