pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/xenkernel411 Add upstream patch for XSA355. B...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c7583267e250
branches:  trunk
changeset: 446115:c7583267e250
user:      bouyer <bouyer%pkgsrc.org@localhost>
date:      Thu Feb 04 11:41:38 2021 +0000

description:
Add upstream patch for XSA355. Bump PKGREVISION

diffstat:

 sysutils/xenkernel411/Makefile             |   4 ++--
 sysutils/xenkernel411/distinfo             |   3 ++-
 sysutils/xenkernel411/patches/patch-XSA355 |  25 +++++++++++++++++++++++++
 3 files changed, 29 insertions(+), 3 deletions(-)

diffs (60 lines):

diff -r 021f5af67a34 -r c7583267e250 sysutils/xenkernel411/Makefile
--- a/sysutils/xenkernel411/Makefile    Thu Feb 04 11:23:03 2021 +0000
+++ b/sysutils/xenkernel411/Makefile    Thu Feb 04 11:41:38 2021 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.19 2020/12/17 16:47:30 bouyer Exp $
+# $NetBSD: Makefile,v 1.20 2021/02/04 11:41:38 bouyer Exp $
 
 VERSION=       4.11.4
 #keep >= 1 if we have security patches
-PKGREVISION=   5
+PKGREVISION=   6
 DISTNAME=      xen-${VERSION}
 PKGNAME=       xenkernel411-${VERSION}
 CATEGORIES=    sysutils
diff -r 021f5af67a34 -r c7583267e250 sysutils/xenkernel411/distinfo
--- a/sysutils/xenkernel411/distinfo    Thu Feb 04 11:23:03 2021 +0000
+++ b/sysutils/xenkernel411/distinfo    Thu Feb 04 11:41:38 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2020/12/17 16:47:30 bouyer Exp $
+$NetBSD: distinfo,v 1.18 2021/02/04 11:41:38 bouyer Exp $
 
 SHA1 (xen411/xen-4.11.4.tar.gz) = 6c8cdf441621c14dc5345196b48df6982c060c4f
 RMD160 (xen411/xen-4.11.4.tar.gz) = 49819fcd1de3985d4dea370be962548c862f2933
@@ -25,6 +25,7 @@
 SHA1 (patch-XSA347) = f3f98a794584d5d4321b95c2b1b9c88821fa567e
 SHA1 (patch-XSA348) = 2a1128e86e31eff4596958324cbaab82830b51a8
 SHA1 (patch-XSA351) = fca8d8c5c77ba8d6007d7643330be7f8835bbc5a
+SHA1 (patch-XSA355) = 73ca5dff042a4a54b06af36e6ace7d09673c05f0
 SHA1 (patch-XSA358) = 3831faa429ac35fa993a60c426fca877bea35bbd
 SHA1 (patch-XSA359) = 4b778a86fffbe0e2a364e1589d573bbc7c27ff99
 SHA1 (patch-xen_Makefile) = 465388d80de414ca3bb84faefa0f52d817e423a6
diff -r 021f5af67a34 -r c7583267e250 sysutils/xenkernel411/patches/patch-XSA355
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel411/patches/patch-XSA355        Thu Feb 04 11:41:38 2021 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-XSA355,v 1.1 2021/02/04 11:41:38 bouyer Exp $
+
+From: Jan Beulich <jbeulich%suse.com@localhost>
+Subject: memory: fix off-by-one in XSA-346 change
+
+The comparison against ARRAY_SIZE() needs to be >= in order to avoid
+overrunning the pages[] array.
+
+This is XSA-355.
+
+Fixes: 5777a3742d88 ("IOMMU: hold page ref until after deferred TLB flush")
+Signed-off-by: Jan Beulich <jbeulich%suse.com@localhost>
+Reviewed-by: Julien Grall <jgrall%amazon.com@localhost>
+
+--- xen/common/memory.c.orig
++++ xen/common/memory.c
+@@ -854,7 +854,7 @@ int xenmem_add_to_physmap(struct domain
+             ++extra.ppage;
+ 
+         /* Check for continuation if it's not the last iteration. */
+-        if ( (++done > ARRAY_SIZE(pages) && extra.ppage) ||
++        if ( (++done >= ARRAY_SIZE(pages) && extra.ppage) ||
+              (xatp->size > done && hypercall_preempt_check()) )
+         {
+             rc = start + done;



Home | Main Index | Thread Index | Old Index