047483513a
xen-4.6.0-testing-src.tar.bz2 mini-os.tar.bz2 blktap2-no-uninit.patch stubdom-have-iovec.patch - Renamed xsa149.patch to CVE-2015-7969-xsa149.patch - Dropped patches now contained in tarball or unnecessary xen-4.5.2-testing-src.tar.bz2 54c2553c-grant-table-use-uint16_t-consistently-for-offset-and-length.patch 54ca33bc-grant-table-refactor-grant-copy-to-reduce-duplicate-code.patch 54ca340e-grant-table-defer-releasing-pages-acquired-in-a-grant-copy.patch 54f4985f-libxl-fix-libvirtd-double-free.patch 55103616-vm-assist-prepare-for-discontiguous-used-bit-numbers.patch 551ac326-xentop-add-support-for-qdisk.patch 552d0fd2-x86-hvm-don-t-include-asm-spinlock-h.patch 552d0fe8-x86-mtrr-include-asm-atomic.h.patch 552d293b-x86-vMSI-X-honor-all-mask-requests.patch 552d2966-x86-vMSI-X-add-valid-bits-for-read-acceleration.patch 5537a4d8-libxl-use-DEBUG-log-level-instead-of-INFO.patch 5548e903-domctl-don-t-truncate-XEN_DOMCTL_max_mem-requests.patch 5548e95d-x86-allow-to-suppress-M2P-user-mode-exposure.patch 554c7aee-x86-provide-arch_fetch_and_add.patch 554c7b00-arm-provide-arch_fetch_and_add.patch 554cc211-libxl-add-qxl.patch 55534b0a-x86-provide-add_sized.patch 55534b25-arm-provide-add_sized.patch 5555a4f8-use-ticket-locks-for-spin-locks.patch 5555a5b9-x86-arm-remove-asm-spinlock-h.patch 5555a8ec-introduce-non-contiguous-allocation.patch 556d973f-unmodified-drivers-tolerate-IRQF_DISABLED-being-undefined.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=387
120 lines
4.3 KiB
Diff
120 lines
4.3 KiB
Diff
# HG changeset patch
|
|
# Parent 02ec826cab1e4acb25b364a180a1597ace1149f9
|
|
stubdom: fix errors in newlib
|
|
|
|
rpm post-build-checks found a few code bugs in newlib, and marks them as
|
|
errors. Add another newlib patch and apply it during stubdom build.
|
|
|
|
I: A function uses a 'return;' statement, but has actually a value
|
|
to return, like an integer ('return 42;') or similar.
|
|
W: xen voidreturn ../../../../newlib-1.16.0/libgloss/i386/cygmon-gmon.c:117, 125, 146, 157, 330
|
|
|
|
I: Program is using implicit definitions of special functions.
|
|
these functions need to use their correct prototypes to allow
|
|
the lightweight buffer overflow checking to work.
|
|
- Implicit memory/string functions need #include <string.h>.
|
|
- Implicit *printf functions need #include <stdio.h>.
|
|
- Implicit *printf functions need #include <stdio.h>.
|
|
- Implicit *read* functions need #include <unistd.h>.
|
|
- Implicit *recv* functions need #include <sys/socket.h>.
|
|
E: xen implicit-fortify-decl ../../../../newlib-1.16.0/libgloss/i386/cygmon-gmon.c:119
|
|
|
|
I: Program returns random data in a function
|
|
E: xen no-return-in-nonvoid-function ../../../../newlib-1.16.0/libgloss/i386/cygmon-gmon.c:362
|
|
|
|
Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|
|
|
Index: xen-4.6.0-testing/stubdom/Makefile
|
|
===================================================================
|
|
--- xen-4.6.0-testing.orig/stubdom/Makefile
|
|
+++ xen-4.6.0-testing/stubdom/Makefile
|
|
@@ -80,6 +80,8 @@ newlib-$(NEWLIB_VERSION): newlib-$(NEWLI
|
|
patch -d $@ -p0 < newlib.patch
|
|
patch -d $@ -p0 < newlib-chk.patch
|
|
patch -d $@ -p1 < newlib-stdint-size_max-fix-from-1.17.0.patch
|
|
+ patch -d $@ -p1 < newlib-cygmon-gmon.patch
|
|
+ patch -d $@ -p1 < newlib-makedoc.patch
|
|
find $@ -type f | xargs perl -i.bak \
|
|
-pe 's/\b_(tzname|daylight|timezone)\b/$$1/g'
|
|
touch $@
|
|
Index: xen-4.6.0-testing/stubdom/newlib-cygmon-gmon.patch
|
|
===================================================================
|
|
--- /dev/null
|
|
+++ xen-4.6.0-testing/stubdom/newlib-cygmon-gmon.patch
|
|
@@ -0,0 +1,60 @@
|
|
+
|
|
+I: A function uses a 'return;' statement, but has actually a value
|
|
+ to return, like an integer ('return 42;') or similar.
|
|
+W: xen voidreturn ../../../../newlib-1.16.0/libgloss/i386/cygmon-gmon.c:117, 125, 146, 157, 330
|
|
+
|
|
+I: Program is using implicit definitions of special functions.
|
|
+ these functions need to use their correct prototypes to allow
|
|
+ the lightweight buffer overflow checking to work.
|
|
+ - Implicit memory/string functions need #include <string.h>.
|
|
+ - Implicit *printf functions need #include <stdio.h>.
|
|
+ - Implicit *printf functions need #include <stdio.h>.
|
|
+ - Implicit *read* functions need #include <unistd.h>.
|
|
+ - Implicit *recv* functions need #include <sys/socket.h>.
|
|
+E: xen implicit-fortify-decl ../../../../newlib-1.16.0/libgloss/i386/cygmon-gmon.c:119
|
|
+
|
|
+I: Program returns random data in a function
|
|
+E: xen no-return-in-nonvoid-function ../../../../newlib-1.16.0/libgloss/i386/cygmon-gmon.c:362
|
|
+
|
|
+---
|
|
+ libgloss/i386/cygmon-gmon.c | 6 +++++-
|
|
+ 1 file changed, 5 insertions(+), 1 deletion(-)
|
|
+
|
|
+Index: newlib-1.16.0/libgloss/i386/cygmon-gmon.c
|
|
+===================================================================
|
|
+--- newlib-1.16.0.orig/libgloss/i386/cygmon-gmon.c
|
|
++++ newlib-1.16.0/libgloss/i386/cygmon-gmon.c
|
|
+@@ -61,6 +61,8 @@
|
|
+ static char sccsid[] = "@(#)gmon.c 5.3 (Berkeley) 5/22/91";
|
|
+ #endif /* not lint */
|
|
+
|
|
++#include <string.h>
|
|
++#include <unistd.h>
|
|
+ #define DEBUG
|
|
+ #ifdef DEBUG
|
|
+ #include <stdio.h>
|
|
+@@ -89,7 +91,7 @@ static int s_scale;
|
|
+
|
|
+ extern int errno;
|
|
+
|
|
+-int
|
|
++void
|
|
+ monstartup(lowpc, highpc)
|
|
+ char *lowpc;
|
|
+ char *highpc;
|
|
+@@ -199,6 +201,7 @@ _mcleanup()
|
|
+
|
|
+ static char already_setup = 0;
|
|
+
|
|
++void
|
|
+ _mcount()
|
|
+ {
|
|
+ register char *selfpc;
|
|
+@@ -341,6 +344,7 @@ overflow:
|
|
+ * profiling is what mcount checks to see if
|
|
+ * all the data structures are ready.
|
|
+ */
|
|
++void
|
|
+ moncontrol(mode)
|
|
+ int mode;
|
|
+ {
|
|
Index: xen-4.6.0-testing/stubdom/newlib-makedoc.patch
|
|
===================================================================
|
|
--- /dev/null
|
|
+++ xen-4.6.0-testing/stubdom/newlib-makedoc.patch
|
|
@@ -0,0 +1,10 @@
|
|
+--- newlib-1.16.0/newlib/doc/makedoc.c.orig 2015-04-08 11:56:39.283090914 +0200
|
|
++++ newlib-1.16.0/newlib/doc/makedoc.c 2015-04-08 11:56:51.245227742 +0200
|
|
+@@ -39,6 +39,7 @@
|
|
+ #include <stdio.h>
|
|
+ #include <stdlib.h>
|
|
+ #include <ctype.h>
|
|
++#include <string.h>
|
|
+
|
|
+ #define DEF_SIZE 5000
|
|
+ #define STACK 50
|