From 7b412c0be3167ca0602807bff537d18fe85f917280c82cacf59899988e4623a9 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Wed, 12 Oct 2016 20:08:25 +0000 Subject: [PATCH 01/15] - Increase memory allowed in build to 10000 MB. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=277 --- _constraints | 2 +- virtualbox.changes | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/_constraints b/_constraints index 56c3463..7653839 100644 --- a/_constraints +++ b/_constraints @@ -2,7 +2,7 @@ - 8000 + 10000 diff --git a/virtualbox.changes b/virtualbox.changes index 47cb21f..ee18d72 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 12 20:07:16 UTC 2016 - Larry.Finger@lwfinger.net + +- Increase memory allowed in build to 10000 MB. + ------------------------------------------------------------------- Mon Sep 12 22:25:42 UTC 2016 - Larry.Finger@lwfinger.net From 28295250eb28b31105c4033b39e2adc28f939a191960652925c1842b59aee204 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Thu, 13 Oct 2016 16:15:22 +0000 Subject: [PATCH 02/15] - Builds keep running out of memory when building the web server part of the package. To help the memory pressure, I have forced make to run with "-j2", rather than use the number of processors. Such a change will slow the build, but will result in a higher rate of success. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=278 --- virtualbox.changes | 8 ++++++++ virtualbox.spec | 7 +------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/virtualbox.changes b/virtualbox.changes index ee18d72..70f7f3a 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Oct 13 16:11:14 UTC 2016 - Larry.Finger@lwfinger.net + +- Builds keep running out of memory when building the web server part of the package. + To help the memory pressure, I have forced make to run with "-j2", rather than use + the number of processors. Such a change will slow the build, but will result in a + higher rate of success. + ------------------------------------------------------------------- Wed Oct 12 20:07:16 UTC 2016 - Larry.Finger@lwfinger.net diff --git a/virtualbox.spec b/virtualbox.spec index a921b45..967ec1d 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -422,12 +422,7 @@ for vbox_module in out/linux.*/release/bin/src/vbox{drv,netflt,netadp,pci} \ $PWD/modules_build_dir/$flavor/$module_name fi # build the module for the specific flavor - %ifarch %ix86 - make -j2 \ - %else - make %{?_smp_mflags} \ - %endif - -C %{_prefix}/src/linux-obj/%{_target_cpu}/$flavor modules \ + make -j2 -C %{_prefix}/src/linux-obj/%{_target_cpu}/$flavor modules \ M=$PWD/modules_build_dir/$flavor/$module_name done done From 6334815d84132dd6ef915aff178936a25b3651b09c8e1cd327207399ca828fc1 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Thu, 13 Oct 2016 19:16:19 +0000 Subject: [PATCH 03/15] - Some builds still run out of memory and fail. Increase to 14000 MB. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=279 --- _constraints | 2 +- virtualbox.changes | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/_constraints b/_constraints index 7653839..3fad79e 100644 --- a/_constraints +++ b/_constraints @@ -2,7 +2,7 @@ - 10000 + 14000 diff --git a/virtualbox.changes b/virtualbox.changes index 70f7f3a..b021761 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 13 19:15:03 UTC 2016 - Larry.Finger@lwfinger.net + +- Some builds still run out of memory and fail. Increase to 14000 MB. + ------------------------------------------------------------------- Thu Oct 13 16:11:14 UTC 2016 - Larry.Finger@lwfinger.net From de69b33e9903fb9b8d2d80c765b45257d60010a055a26b37fb282fe2ed97ad83 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Tue, 18 Oct 2016 14:44:20 +0000 Subject: [PATCH 04/15] - Requesting 14000 MB is too much. Reduce the request to 12000 MB. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=280 --- _constraints | 2 +- virtualbox.changes | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/_constraints b/_constraints index 3fad79e..56d0a62 100644 --- a/_constraints +++ b/_constraints @@ -2,7 +2,7 @@ - 14000 + 12000 diff --git a/virtualbox.changes b/virtualbox.changes index b021761..5727a7e 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 18 14:43:04 UTC 2016 - Larry.Finger@lwfinger.net + +- Requesting 14000 MB is too much. Reduce the request to 12000 MB. + ------------------------------------------------------------------- Thu Oct 13 19:15:03 UTC 2016 - Larry.Finger@lwfinger.net From 366ee26cec8ff2210390db4f0f785d6fb4c4067a51864d2e227debc919f0f850 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Wed, 19 Oct 2016 15:57:33 +0000 Subject: [PATCH 05/15] - Fixes for VUL-0: CVE-2016-5501,CVE-2016-5538,CVE-2016-5605,CVE-2016-5608,CVE-2016-5610,CVE-2016-5611,CVE-2016-561313 boo #1005621. - Add patch file "vbox_remove_smp_mflags.patch" to limit number of simultaneous make jobs. - Version bump to 5.1.8 (released 2016-10-18 by Oracle) This is a maintenance release. The following items were fixed and/or added: GUI: fixed keyboard shortcut handling regressions (Mac OS X hosts only; bugs #15937 and #15938) GUI: fixed keyboard handling regression for separate UI (Windows hosts only; bugs #15928) NAT: don't exceed the maximum number of "search" suffixes. Patch from bug #15948. NAT: fixed parsing of port-forwarding rules with a name which contains a slash (bug #16002) NAT Network: when the host has only loopback nameserver that cannot be mapped to the guests (e.g. dnsmasq running on 127.0.1.1), make DHCP supply NAT Network DNS proxy as nameserver. Bridged Network: prevent flooding syslog with packet allocation error messages (bug #15569) Audio: now using Audio Queues on Mac OS X hosts Audio: fixed recording with the PulseAudio backend (5.1 regression) Audio: various bugfixes Snapshots: fixed regression in 5.1.4 for deleting snapshots with several disks (bug #15831) Snapshots: crash fix and better error reporting when snapshot deletion failed Storage: some fixes for the NVMe emulation with Windows guests API: fixed initialization of SAS controllers (bug #15972) Build system: make it possible to build VBox on systems which default to Python 3 Windows Additions / VGA: if the guest's power management turns a virtual screen off, blank the corresponding VM window rather than hide the window Windows Additions: fixed a generic bug which could lead to freezing shared folders (bug #15662) Linux hosts / guests: fix for kernels with CONFIG_CPUMASK_OFFSTACK set (bug #16020) Linux Additions: don't require all virtual consoles be in text mode. This should fix cases when the guest is booted with a graphical boot screen (bug #15683) Linux Additions: added depmod overrides for the vboxguest and vboxsf kernel modules to fix conflicts with modules shipped by certain Linux distributions X11 Additions: disable 3D on the guest if the host does not provide enough capabilities (bug #15860) OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=281 --- VirtualBox-5.1.6-patched.tar.bz2 | 3 --- VirtualBox-5.1.8-patched.tar.bz2 | 3 +++ vbox-python-detection.diff | 16 +++++++++------- vbox_remove_smp_mflags.patch | 26 +++++++++++++++++++++++++ virtualbox.changes | 33 ++++++++++++++++++++++++++++++++ virtualbox.spec | 14 +++++++------- 6 files changed, 78 insertions(+), 17 deletions(-) delete mode 100644 VirtualBox-5.1.6-patched.tar.bz2 create mode 100644 VirtualBox-5.1.8-patched.tar.bz2 create mode 100644 vbox_remove_smp_mflags.patch diff --git a/VirtualBox-5.1.6-patched.tar.bz2 b/VirtualBox-5.1.6-patched.tar.bz2 deleted file mode 100644 index 38d2ec7..0000000 --- a/VirtualBox-5.1.6-patched.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6bf464ab319df3ecb91e3e5cdc5a4b33c110342c6449359a091f484d7fcbcc7d -size 80064621 diff --git a/VirtualBox-5.1.8-patched.tar.bz2 b/VirtualBox-5.1.8-patched.tar.bz2 new file mode 100644 index 0000000..5ea2669 --- /dev/null +++ b/VirtualBox-5.1.8-patched.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a836c61e8f1d751236d0f25f609bfb5d52adc5d834fc102037778833cea4c1d +size 80056974 diff --git a/vbox-python-detection.diff b/vbox-python-detection.diff index eb67ec3..6337c0b 100644 --- a/vbox-python-detection.diff +++ b/vbox-python-detection.diff @@ -1,17 +1,17 @@ -Index: VirtualBox-5.1.6/src/libs/xpcom18a4/python/gen_python_deps.py +Index: VirtualBox-5.1.8/src/libs/xpcom18a4/python/gen_python_deps.py =================================================================== ---- VirtualBox-5.1.6.orig/src/libs/xpcom18a4/python/gen_python_deps.py -+++ VirtualBox-5.1.6/src/libs/xpcom18a4/python/gen_python_deps.py -@@ -85,7 +85,7 @@ def main(argv): +--- VirtualBox-5.1.8.orig/src/libs/xpcom18a4/python/gen_python_deps.py ++++ VirtualBox-5.1.8/src/libs/xpcom18a4/python/gen_python_deps.py +@@ -86,7 +86,7 @@ def main(argv): else: multi = 1 - if multi == 0: + if not multi: prefixes = ["/usr"] - versions = [str(sys.version_info[0])+'.'+str(sys.version_info[1])] - -@@ -112,22 +112,23 @@ def main(argv): + versions = [str(sys.version_info[0])+'.'+str(sys.version_info[1]), + str(sys.version_info[0])+'.'+str(sys.version_info[1])+'m'] +@@ -114,24 +114,25 @@ def main(argv): continue for p in prefixes: c = checkPair(p, v, dllpre, dllsuff, bitness_magic) @@ -37,6 +37,8 @@ Index: VirtualBox-5.1.6/src/libs/xpcom18a4/python/gen_python_deps.py + # this type of problem should be detected in configure + # print_vars("DEF", defaultpaths, sep, bitness_magic) + pass + else: + print(argv[0] + ": No Python development package found!", file=sys.stderr) + if multi: + for ver, paths in known.items(): + print_vars(ver.replace('.', '').upper(), paths, sep, bitness_magic) diff --git a/vbox_remove_smp_mflags.patch b/vbox_remove_smp_mflags.patch new file mode 100644 index 0000000..61bb787 --- /dev/null +++ b/vbox_remove_smp_mflags.patch @@ -0,0 +1,26 @@ +Index: VirtualBox-5.1.8/src/libs/libxml2-2.9.2/libxml.spec.in +=================================================================== +--- VirtualBox-5.1.8.orig/src/libs/libxml2-2.9.2/libxml.spec.in ++++ VirtualBox-5.1.8/src/libs/libxml2-2.9.2/libxml.spec.in +@@ -69,7 +69,7 @@ at parse time or later once the document + + %build + %configure +-make %{_smp_mflags} ++make + + %install + rm -fr %{buildroot} +Index: VirtualBox-5.1.8/src/libs/libxml2-2.9.2/libxml2.spec +=================================================================== +--- VirtualBox-5.1.8.orig/src/libs/libxml2-2.9.2/libxml2.spec ++++ VirtualBox-5.1.8/src/libs/libxml2-2.9.2/libxml2.spec +@@ -69,7 +69,7 @@ at parse time or later once the document + + %build + %configure +-make %{_smp_mflags} ++make + + %install + rm -fr %{buildroot} diff --git a/virtualbox.changes b/virtualbox.changes index 5727a7e..b71812b 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Wed Oct 19 15:42:56 UTC 2016 - Larry.Finger@lwfinger.net + +- Fixes for VUL-0: CVE-2016-5501,CVE-2016-5538,CVE-2016-5605,CVE-2016-5608,CVE-2016-5610,CVE-2016-5611,CVE-2016-561313 + boo #1005621. + +- Add patch file "vbox_remove_smp_mflags.patch" to limit number of simultaneous make jobs. + +- Version bump to 5.1.8 (released 2016-10-18 by Oracle) + +This is a maintenance release. The following items were fixed and/or added: + + GUI: fixed keyboard shortcut handling regressions (Mac OS X hosts only; bugs #15937 and #15938) + GUI: fixed keyboard handling regression for separate UI (Windows hosts only; bugs #15928) + NAT: don't exceed the maximum number of "search" suffixes. Patch from bug #15948. + NAT: fixed parsing of port-forwarding rules with a name which contains a slash (bug #16002) + NAT Network: when the host has only loopback nameserver that cannot be mapped to the guests (e.g. dnsmasq running on 127.0.1.1), make DHCP supply NAT Network DNS proxy as nameserver. + Bridged Network: prevent flooding syslog with packet allocation error messages (bug #15569) + Audio: now using Audio Queues on Mac OS X hosts + Audio: fixed recording with the PulseAudio backend (5.1 regression) + Audio: various bugfixes + Snapshots: fixed regression in 5.1.4 for deleting snapshots with several disks (bug #15831) + Snapshots: crash fix and better error reporting when snapshot deletion failed + Storage: some fixes for the NVMe emulation with Windows guests + API: fixed initialization of SAS controllers (bug #15972) + Build system: make it possible to build VBox on systems which default to Python 3 + Windows Additions / VGA: if the guest's power management turns a virtual screen off, blank the corresponding VM window rather than hide the window + Windows Additions: fixed a generic bug which could lead to freezing shared folders (bug #15662) + Linux hosts / guests: fix for kernels with CONFIG_CPUMASK_OFFSTACK set (bug #16020) + Linux Additions: don't require all virtual consoles be in text mode. This should fix cases when the guest is booted with a graphical boot screen (bug #15683) + Linux Additions: added depmod overrides for the vboxguest and vboxsf kernel modules to fix conflicts with modules shipped by certain Linux distributions + X11 Additions: disable 3D on the guest if the host does not provide enough capabilities (bug #15860) + ------------------------------------------------------------------- Tue Oct 18 14:43:04 UTC 2016 - Larry.Finger@lwfinger.net diff --git a/virtualbox.spec b/virtualbox.spec index 967ec1d..f7203f8 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -19,7 +19,7 @@ %define _vbox_instdir %{_libexecdir}/virtualbox %define _udevrulesdir %{_libexecdir}/udev/rules.d Name: virtualbox -Version: 5.1.6 +Version: 5.1.8 Release: 0 Summary: VirtualBox is an Emulator License: GPL-2.0+ @@ -86,6 +86,8 @@ Patch109: vbox-usb-warning.diff Patch111: vbox_prevent_wrong_SONAME.patch # Fix change in kernel API for ttm_bo_move_memcpy() Patch112: modify_for_4_8_bo_move.patch +# Remove all mention of _smp_mflags +Patch113: vbox_remove_smp_mflags.patch # BuildRequires: LibVNCServer-devel BuildRequires: SDL-devel @@ -319,6 +321,7 @@ This package contains icons for guest desktop files that were created on the des %patch109 -p1 %patch111 -p1 %patch112 -p1 +%patch113 -p1 #copy user manual cp %{SOURCE1} UserManual.pdf @@ -369,11 +372,8 @@ source ./env.sh # VBOX_PATH_PACKAGE_DOCS set propper path for link to pdf in .desktop file # VBOX_WITH_REGISTRATION_REQUEST= VBOX_WITH_UPDATE_REQUEST= just disable some functionality in gui echo "build basic parts" - %ifarch %ix86 - %{_bindir}/kmk -j2 \ - %else - %{_bindir}/kmk %{?_smp_mflags} \ - %endif +# To keep memory requirements within bounds, limit make to 2 jobs + %{_bindir}/kmk -j2 \ VBOX_GCC_WERR= \ KBUILD_VERBOSE=2 \ VBOX_USE_SYSTEM_XORG_HEADERS=1 \ @@ -459,7 +459,7 @@ do #and trought the all flavors for flavor in %{flavors_to_build}; do #to install modules use Makefile from %{_prefix}/src/linux-obj/%_target_cpu/$flavor and builds from $PWD/modules_build_dir/$flavor/$module_name - make %{?_smp_mflags} -C %{_prefix}/src/linux-obj/%{_target_cpu}/$flavor modules_install M=$PWD/modules_build_dir/$flavor/$module_name + make -C %{_prefix}/src/linux-obj/%{_target_cpu}/$flavor modules_install M=$PWD/modules_build_dir/$flavor/$module_name done done From 6ed2e5e823cd69080484ea3cca4677d21332991154a04b9fe6d3cf4653967d1a Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Wed, 19 Oct 2016 17:20:02 +0000 Subject: [PATCH 06/15] OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=282 --- UserManual.pdf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UserManual.pdf b/UserManual.pdf index 6884308..a8ac9d3 100644 --- a/UserManual.pdf +++ b/UserManual.pdf @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d0191d99ba1746d581920dace67d2acd65c8febc131dba9f27bde660e432ee91 -size 4338868 +oid sha256:545e897e079210e43c3e396732b1a954a37cf644ef0aac915f12e9e20d76eb91 +size 4350253 From fb4e8ea690402945c041ad3e71c81fb6a327883e990a611a266b7377abdc2c87 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Thu, 20 Oct 2016 12:59:26 +0000 Subject: [PATCH 07/15] - Fix build on kernel 4.9 using patch "vbox_fix_4.9_api_changes.patch". OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=283 --- virtualbox.changes | 5 +++++ virtualbox.spec | 3 +++ 2 files changed, 8 insertions(+) diff --git a/virtualbox.changes b/virtualbox.changes index b71812b..1ef8dcb 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 20 12:57:28 UTC 2016 - Larry.Finger@lwfinger.net + +- Fix build on kernel 4.9 using patch "vbox_fix_4.9_api_changes.patch". + ------------------------------------------------------------------- Wed Oct 19 15:42:56 UTC 2016 - Larry.Finger@lwfinger.net diff --git a/virtualbox.spec b/virtualbox.spec index f7203f8..08f03b9 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -88,6 +88,8 @@ Patch111: vbox_prevent_wrong_SONAME.patch Patch112: modify_for_4_8_bo_move.patch # Remove all mention of _smp_mflags Patch113: vbox_remove_smp_mflags.patch +# Fix build error on kernel 4.9 +Patch114: vbox_fix_4.9_api_changes.patch # BuildRequires: LibVNCServer-devel BuildRequires: SDL-devel @@ -322,6 +324,7 @@ This package contains icons for guest desktop files that were created on the des %patch111 -p1 %patch112 -p1 %patch113 -p1 +%patch114 -p1 #copy user manual cp %{SOURCE1} UserManual.pdf From 04db1af634579b5e76f6557874f9820f5c5c0907e48a6440f3340a661504ffa6 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Thu, 20 Oct 2016 13:52:35 +0000 Subject: [PATCH 08/15] OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=284 --- vbox_fix_4.9_api_changes.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 vbox_fix_4.9_api_changes.patch diff --git a/vbox_fix_4.9_api_changes.patch b/vbox_fix_4.9_api_changes.patch new file mode 100644 index 0000000..1b4c4d7 --- /dev/null +++ b/vbox_fix_4.9_api_changes.patch @@ -0,0 +1,19 @@ +Index: VirtualBox-5.1.8/src/VBox/Additions/linux/sharedfolders/dirops.c +=================================================================== +--- VirtualBox-5.1.8.orig/src/VBox/Additions/linux/sharedfolders/dirops.c ++++ VirtualBox-5.1.8/src/VBox/Additions/linux/sharedfolders/dirops.c +@@ -747,8 +747,14 @@ static int sf_rmdir(struct inode *parent + * @param new_dentry new directory cache entry + * @returns 0 on success, Linux error code otherwise + */ ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 0) + static int sf_rename(struct inode *old_parent, struct dentry *old_dentry, + struct inode *new_parent, struct dentry *new_dentry) ++#else ++static int sf_rename(struct inode *old_parent, struct dentry *old_dentry, ++ struct inode *new_parent, struct dentry *new_dentry, ++ unsigned int flags) ++#endif + { + int err = 0, rc = VINF_SUCCESS; + struct sf_glob_info *sf_g = GET_GLOB_INFO(old_parent->i_sb); From 6ff234623b575409cb94917a9b864e71c1fbbe27deca4d42393b2e9b5bcc19a5 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Fri, 21 Oct 2016 02:07:42 +0000 Subject: [PATCH 09/15] - Make another 4.9 API change. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=285 --- vbox_fix_4.9_api_changes.patch | 14 ++++++++++++++ virtualbox.changes | 5 +++++ 2 files changed, 19 insertions(+) diff --git a/vbox_fix_4.9_api_changes.patch b/vbox_fix_4.9_api_changes.patch index 1b4c4d7..6fe6b34 100644 --- a/vbox_fix_4.9_api_changes.patch +++ b/vbox_fix_4.9_api_changes.patch @@ -17,3 +17,17 @@ Index: VirtualBox-5.1.8/src/VBox/Additions/linux/sharedfolders/dirops.c { int err = 0, rc = VINF_SUCCESS; struct sf_glob_info *sf_g = GET_GLOB_INFO(old_parent->i_sb); +Index: VirtualBox-5.1.8/src/VBox/Additions/linux/drm/vbox_ttm.c +=================================================================== +--- VirtualBox-5.1.8.orig/src/VBox/Additions/linux/drm/vbox_ttm.c ++++ VirtualBox-5.1.8/src/VBox/Additions/linux/drm/vbox_ttm.c +@@ -221,7 +221,8 @@ static int vbox_bo_move(struct ttm_buffe + struct ttm_mem_reg *new_mem) + { + int r; +-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0) ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0) || ++ LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0) + r = ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem); + #else + r = ttm_bo_move_memcpy(bo, evict, interruptible, no_wait_gpu, new_mem); diff --git a/virtualbox.changes b/virtualbox.changes index 1ef8dcb..037bd28 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 20 23:04:09 UTC 2016 - Larry.Finger@lwfinger.net + +- Make another 4.9 API change. + ------------------------------------------------------------------- Thu Oct 20 12:57:28 UTC 2016 - Larry.Finger@lwfinger.net From 0bcfefc0a18b5c8a9e38b5bda49d9c619d55357c69da167c7723385e8a672afa Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Fri, 21 Oct 2016 16:06:09 +0000 Subject: [PATCH 10/15] - Fix typo in "vbox_fix_4.9_api_changes.patch". OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=286 --- vbox_fix_4.9_api_changes.patch | 2 +- virtualbox.changes | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/vbox_fix_4.9_api_changes.patch b/vbox_fix_4.9_api_changes.patch index 6fe6b34..0fba3ed 100644 --- a/vbox_fix_4.9_api_changes.patch +++ b/vbox_fix_4.9_api_changes.patch @@ -26,7 +26,7 @@ Index: VirtualBox-5.1.8/src/VBox/Additions/linux/drm/vbox_ttm.c { int r; -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0) -+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0) || ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0) || \ + LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0) r = ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem); #else diff --git a/virtualbox.changes b/virtualbox.changes index 037bd28..64c7163 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 21 16:05:13 UTC 2016 - Larry.Finger@lwfinger.net + +- Fix typo in "vbox_fix_4.9_api_changes.patch". + ------------------------------------------------------------------- Thu Oct 20 23:04:09 UTC 2016 - Larry.Finger@lwfinger.net From 6f64fe1da59ebda6988d940b84acd322ab942d372bff5127a058f2bb8450c021 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Wed, 26 Oct 2016 17:09:38 +0000 Subject: [PATCH 11/15] - Found and fixed another API change for kernel 4.9. In addition, the libreadline6 package is now needed. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=287 --- vbox_fix_4.9_api_changes.patch | 33 +++++++++++++++++++++++++++++++++ virtualbox.changes | 5 +++++ virtualbox.spec | 1 + 3 files changed, 39 insertions(+) diff --git a/vbox_fix_4.9_api_changes.patch b/vbox_fix_4.9_api_changes.patch index 0fba3ed..8c87295 100644 --- a/vbox_fix_4.9_api_changes.patch +++ b/vbox_fix_4.9_api_changes.patch @@ -31,3 +31,36 @@ Index: VirtualBox-5.1.8/src/VBox/Additions/linux/drm/vbox_ttm.c r = ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem); #else r = ttm_bo_move_memcpy(bo, evict, interruptible, no_wait_gpu, new_mem); +Index: VirtualBox-5.1.8/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c +=================================================================== +--- VirtualBox-5.1.8.orig/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c ++++ VirtualBox-5.1.8/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c +@@ -1045,7 +1045,27 @@ DECLHIDDEN(int) rtR0MemObjNativeLockUser + /* + * Get user pages. + */ +-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0) ++ if (R0Process == RTR0ProcHandleSelf()) ++ rc = get_user_pages(R3Ptr, /* Where from. */ ++ cPages, /* How many pages. */ ++ fWrite, /* Write to memory. */ ++ &pMemLnx->apPages[0], /* Page array. */ ++ papVMAs); /* vmas */ ++ /* ++ * Actually this should not happen at the moment as call this function ++ * only for our own process. ++ */ ++ else ++ rc = get_user_pages_remote( ++ pTask, /* Task for fault accounting. */ ++ pTask->mm, /* Whose pages. */ ++ R3Ptr, /* Where from. */ ++ cPages, /* How many pages. */ ++ fWrite, /* Write to memory. */ ++ &pMemLnx->apPages[0], /* Page array. */ ++ papVMAs); /* vmas */ ++#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0) + if (R0Process == RTR0ProcHandleSelf()) + rc = get_user_pages(R3Ptr, /* Where from. */ + cPages, /* How many pages. */ diff --git a/virtualbox.changes b/virtualbox.changes index 64c7163..ce9d170 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 26 17:08:03 UTC 2016 - Larry.Finger@lwfinger.net + +- Found and fixed another API change for kernel 4.9. In addition, the libreadline6 package is now needed. + ------------------------------------------------------------------- Fri Oct 21 16:05:13 UTC 2016 - Larry.Finger@lwfinger.net diff --git a/virtualbox.spec b/virtualbox.spec index 08f03b9..b11ffa7 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -116,6 +116,7 @@ BuildRequires: libopenssl-devel BuildRequires: libqt5-linguist BuildRequires: libqt5-qtbase-devel BuildRequires: libqt5-qtx11extras-devel +BuildRequires: libreadline6 BuildRequires: libvpx-devel BuildRequires: libxslt-devel BuildRequires: module-init-tools From 1574e3fe26e50a21c2fa71aab81b5174e8de770717d8efd787a3c0efaff25b85 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Sun, 30 Oct 2016 00:30:37 +0000 Subject: [PATCH 12/15] - Replaced libreadline6 with libreadline7. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=288 --- virtualbox.changes | 5 +++++ virtualbox.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/virtualbox.changes b/virtualbox.changes index ce9d170..fea59a5 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Oct 30 00:29:50 UTC 2016 - Larry.Finger@lwfinger.net + +- Replaced libreadline6 with libreadline7. + ------------------------------------------------------------------- Wed Oct 26 17:08:03 UTC 2016 - Larry.Finger@lwfinger.net diff --git a/virtualbox.spec b/virtualbox.spec index b11ffa7..b3171c3 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -116,7 +116,7 @@ BuildRequires: libopenssl-devel BuildRequires: libqt5-linguist BuildRequires: libqt5-qtbase-devel BuildRequires: libqt5-qtx11extras-devel -BuildRequires: libreadline6 +BuildRequires: libreadline7 BuildRequires: libvpx-devel BuildRequires: libxslt-devel BuildRequires: module-init-tools From a49197369167f89a24a021eb262327eaf51a4e5c46edd510e311ff70ae1de706 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Sun, 30 Oct 2016 20:59:35 +0000 Subject: [PATCH 13/15] OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=289 --- virtualbox.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/virtualbox.spec b/virtualbox.spec index b3171c3..08f03b9 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -116,7 +116,6 @@ BuildRequires: libopenssl-devel BuildRequires: libqt5-linguist BuildRequires: libqt5-qtbase-devel BuildRequires: libqt5-qtx11extras-devel -BuildRequires: libreadline7 BuildRequires: libvpx-devel BuildRequires: libxslt-devel BuildRequires: module-init-tools From 128d47aae29f8a4b7a99b7c64f11722f1b5ae69e801d809ab61b73b748ef79bf Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Tue, 1 Nov 2016 15:32:30 +0000 Subject: [PATCH 14/15] - Remove all references to libreadline. I misinterpreted a previous error message. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=290 --- virtualbox.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/virtualbox.changes b/virtualbox.changes index fea59a5..4df5028 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Nov 1 15:31:03 UTC 2016 - Larry.Finger@lwfinger.net + +- Remove all references to libreadline. I misinterpreted a previous error message. + ------------------------------------------------------------------- Sun Oct 30 00:29:50 UTC 2016 - Larry.Finger@lwfinger.net From c98afd24435873ffb7aa39120d0a6fe9d92406e2f416d1975b17531040bf5a19 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Mon, 7 Nov 2016 15:30:23 +0000 Subject: [PATCH 15/15] - Fixes for VUL-0: CVE-2016-5501,CVE-2016-5538,CVE-2016-5605,CVE-2016-5608,CVE-2016-5610,CVE-2016-5611,CVE-2016-561313 boo #1005621. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=291 --- virtualbox.changes | 2 ++ 1 file changed, 2 insertions(+) diff --git a/virtualbox.changes b/virtualbox.changes index 4df5028..a6cc1b6 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -2,6 +2,8 @@ Tue Nov 1 15:31:03 UTC 2016 - Larry.Finger@lwfinger.net - Remove all references to libreadline. I misinterpreted a previous error message. +- Fixes for VUL-0: CVE-2016-5501,CVE-2016-5538,CVE-2016-5605,CVE-2016-5608,CVE-2016-5610,CVE-2016-5611,CVE-2016-561313 + boo #1005621. ------------------------------------------------------------------- Sun Oct 30 00:29:50 UTC 2016 - Larry.Finger@lwfinger.net