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
diff --git a/debian/changelog b/debian/changelog
index 2d0422d..cb26d31 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
1qemu (1:5.0-5ubuntu9.3) groovy; urgency=medium
2
3 * d/p/ubuntu/lp-1907656-s390x-s390-virtio-ccw-Reset-PCI-devices-during-subsy:
4 avoid PCI devices to become unavailable on reset (LP: #1907656)
5 * d/rules: fix qemu-user-static to really be static (LP: #1908331)
6
7 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Tue, 05 Jan 2021 15:46:16 +0100
8
1qemu (1:5.0-5ubuntu9.2) groovy-security; urgency=medium9qemu (1:5.0-5ubuntu9.2) groovy-security; urgency=medium
210
3 * SECURITY UPDATE: heap buffer overflow in sdhci_sdma_transfer_multi_blocks()11 * SECURITY UPDATE: heap buffer overflow in sdhci_sdma_transfer_multi_blocks()
diff --git a/debian/patches/series b/debian/patches/series
index fed901f..3ddd537 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -98,3 +98,4 @@ ubuntu/CVE-2020-25625.patch
98ubuntu/CVE-2020-25723.patch98ubuntu/CVE-2020-25723.patch
99ubuntu/CVE-2020-27616.patch99ubuntu/CVE-2020-27616.patch
100ubuntu/CVE-2020-27617.patch100ubuntu/CVE-2020-27617.patch
101ubuntu/lp-1907656-s390x-s390-virtio-ccw-Reset-PCI-devices-during-subsy.patch
diff --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
101new file mode 100644102new file mode 100644
index 0000000..8fe8fa1
--- /dev/null
+++ b/debian/patches/ubuntu/lp-1907656-s390x-s390-virtio-ccw-Reset-PCI-devices-during-subsy.patch
@@ -0,0 +1,43 @@
1From db08244a3a7ec312dfed3fd9b88e114281215458 Mon Sep 17 00:00:00 2001
2From: Matthew Rosato <mjrosato@linux.ibm.com>
3Date: Thu, 15 Oct 2020 09:16:07 -0400
4Subject: [PATCH] s390x/s390-virtio-ccw: Reset PCI devices during subsystem
5 reset
6
7Currently, a subsystem reset event leaves PCI devices enabled, causing
8issues post-reset in the guest (an example would be after a kexec). These
9devices need to be reset during a subsystem reset, allowing them to be
10properly re-enabled afterwards. Add the S390 PCI host bridge to the list
11of qdevs to be reset during subsystem reset.
12
13Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
14Reviewed-by: Eric Farman <farman@linux.ibm.com>
15Acked-by: Halil Pasic <pasic@linux.ibm.com>
16Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
17Cc: qemu-stable@nongnu.org
18Message-Id: <1602767767-32713-1-git-send-email-mjrosato@linux.ibm.com>
19Signed-off-by: Cornelia Huck <cohuck@redhat.com>
20
21Origin: upstream, https://git.qemu.org/?p=qemu.git;a=commit;h=db08244a3a7ec312dfed3fd9b88e114281215458
22Bug-Ubuntu: https://bugs.launchpad.net/bugs/1907656
23Last-Update: 2021-01-05
24
25---
26 hw/s390x/s390-virtio-ccw.c | 1 +
27 1 file changed, 1 insertion(+)
28
29diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
30index e52182f946..2e900335ea 100644
31--- a/hw/s390x/s390-virtio-ccw.c
32+++ b/hw/s390x/s390-virtio-ccw.c
33@@ -101,6 +101,7 @@ static const char *const reset_dev_types[] = {
34 "s390-sclp-event-facility",
35 "s390-flic",
36 "diag288",
37+ TYPE_S390_PCI_HOST_BRIDGE,
38 };
39
40 static void subsystem_reset(void)
41--
422.30.0
43
diff --git a/debian/rules b/debian/rules
index 87afc09..2d1fa4e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -111,19 +111,6 @@ user_targets = \
111111
112endif # enable_linux_user112endif # enable_linux_user
113113
114ifneq ($(filter $(DEB_HOST_ARCH),i386 x32),)
115# XXX as of 2020-04-29, i386 buildd fails to link -static-pie executable:
116# /usr/bin/ld: /usr/lib/i386-linux-gnu/libc.a(memset_chk-nonshared.o):
117# unsupported non-PIC call to IFUNC `memset'
118# so disable PIE for qemu-user-static build on i386 for now.
119# On x32 -static-pie fails in different way.
120# On amd64 -static-pie appears to work fine.
121# On other architectures qemu correctly detect that -static-pie is not available
122XXXstaticpie = --disable-pie
123else
124XXXstaticpie =
125endif
126
127b/configure-stamp: configure114b/configure-stamp: configure
128 dh_testdir115 dh_testdir
129116
@@ -215,11 +202,14 @@ endif
215202
216ifeq ($(enable_linux_user),enable)203ifeq ($(enable_linux_user),enable)
217# do not use debian/configure-opts here, all optional stuff will be enabled204# do not use debian/configure-opts here, all optional stuff will be enabled
218# automatically, dependencies are already verified in the main build205# automatically, dependencies are already verified in the main build.
206# By default this would detect linker option --static-pie, but that
207# breaks some use cases of qemu-static builds (LP: #1908331), therefore
208# add --disable-pie to get "real static" builds.
219 rm -rf b/user-static; mkdir b/user-static209 rm -rf b/user-static; mkdir b/user-static
220 cd b/user-static && \210 cd b/user-static && \
221 ../../configure ${common_configure_opts} \211 ../../configure ${common_configure_opts} \
222 --static ${XXXstaticpie} --disable-system --disable-xen \212 --static --disable-pie --disable-system --disable-xen \
223 --target-list="$(addsuffix -linux-user,${user_targets})"213 --target-list="$(addsuffix -linux-user,${user_targets})"
224endif214endif
225 touch $@215 touch $@

Subscribers

People subscribed via source and target branches