pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/xenkernel411



Module Name:    pkgsrc
Committed By:   bouyer
Date:           Thu Feb  4 11:41:38 UTC 2021

Modified Files:
        pkgsrc/sysutils/xenkernel411: Makefile distinfo
Added Files:
        pkgsrc/sysutils/xenkernel411/patches: patch-XSA355

Log Message:
Add upstream patch for XSA355. Bump PKGREVISION


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/sysutils/xenkernel411/Makefile
cvs rdiff -u -r1.17 -r1.18 pkgsrc/sysutils/xenkernel411/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/xenkernel411/patches/patch-XSA355

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/xenkernel411/Makefile
diff -u pkgsrc/sysutils/xenkernel411/Makefile:1.19 pkgsrc/sysutils/xenkernel411/Makefile:1.20
--- pkgsrc/sysutils/xenkernel411/Makefile:1.19  Thu Dec 17 16:47:30 2020
+++ pkgsrc/sysutils/xenkernel411/Makefile       Thu Feb  4 11:41:38 2021
@@ -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

Index: pkgsrc/sysutils/xenkernel411/distinfo
diff -u pkgsrc/sysutils/xenkernel411/distinfo:1.17 pkgsrc/sysutils/xenkernel411/distinfo:1.18
--- pkgsrc/sysutils/xenkernel411/distinfo:1.17  Thu Dec 17 16:47:30 2020
+++ pkgsrc/sysutils/xenkernel411/distinfo       Thu Feb  4 11:41:38 2021
@@ -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-XSA346) = c1962c037c5ab62c2f
 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

Added files:

Index: pkgsrc/sysutils/xenkernel411/patches/patch-XSA355
diff -u /dev/null pkgsrc/sysutils/xenkernel411/patches/patch-XSA355:1.1
--- /dev/null   Thu Feb  4 11:41:38 2021
+++ pkgsrc/sysutils/xenkernel411/patches/patch-XSA355   Thu Feb  4 11:41:38 2021
@@ -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