diff options
author | RandomNobody | 2023-05-01 09:38:37 +0000 |
---|---|---|
committer | RandomNobody | 2023-05-01 02:38:37 -0700 |
commit | 8ceae8fe4cdf27e09111b0869ba35f44d090a4ac (patch) | |
tree | 95268d6567068a0816c832936d1e5689f9b69cc5 | |
parent | 169955a99231c93822bb1c2f62102a172e3902c5 (diff) | |
parent | 631830cf370204edf09b1de9fffd48ad7927277c (diff) | |
download | aur-8ceae8fe4cdf27e09111b0869ba35f44d090a4ac.tar.gz |
merged upstream
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 16 | ||||
-rw-r--r-- | vmnet.patch | 138 |
3 files changed, 151 insertions, 13 deletions
@@ -1,7 +1,7 @@ pkgbase = vmware-workstation-openrc pkgdesc = The industry standard for running multiple operating systems as virtual machines on a single Linux PC. Modified to use OpenRC. - pkgver = 17.0.1 - pkgrel = 2 + pkgver = 17.0.2 + pkgrel = 1 url = https://www.vmware.com/products/workstation-for-linux.html install = vmware-workstation.install arch = x86_64 @@ -30,7 +30,7 @@ pkgbase = vmware-workstation-openrc options = emptydirs backup = etc/vmware/config backup = etc/conf.d/vmware - source = https://download3.vmware.com/software/WKST-1701-LX/VMware-Workstation-Full-17.0.1-21139696.x86_64.bundle + source = https://download3.vmware.com/software/WKST-1702-LX/VMware-Workstation-Full-17.0.2-21581411.x86_64.bundle source = vmware-bootstrap source = vmware-vix-bootstrap source = config @@ -43,7 +43,7 @@ pkgbase = vmware-workstation-openrc source = Makefile source = vmmon.patch source = vmnet.patch - sha256sums = 95fd421b8705bf6e57b893f2a4570928d702129249bc49fc5cc34cf779defb65 + sha256sums = f4e361faebcbe1818d1b16e93d7d6658ef0fe2828f529c334ec28a0493711cc7 sha256sums = 67edc40e39686281f5101ced1a250648ae32e4cd5dffe4fd47bc3c7aed929d50 sha256sums = da1698bf4e73ae466c1c7fc93891eba4b9c4581856649635e6532275dbfea141 sha256sums = bcf24ce469527844c60f8fd50fda61a6b65cc326ff6bf026d5ae0576cf749c2c @@ -55,6 +55,6 @@ pkgbase = vmware-workstation-openrc sha256sums = 10562d11d50edab9abc2b29c8948714edcb9b084f99b3766d07ddd21259e372e sha256sums = 273d4357599a3e54259c78cc49054fef8ecfd2c2eda35cbcde3a53a62777a5ac sha256sums = 1060b5d45caeda5119b220fab4e1ece398af34d75131139a5dc6f74ee06672c3 - sha256sums = 7c3b6a7871b19e31fafdcc2631751dd9569196740d8e7c2026653d155c0c8da0 + sha256sums = 903e4792b559af4b021077f02f117342836cf870fc4b2e9d0aa6f73a026724ac pkgname = vmware-workstation-openrc @@ -15,10 +15,10 @@ #PKGEXT=.pkg.tar pkgname=vmware-workstation-openrc -pkgver=17.0.1 -_buildver=21139696 +pkgver=17.0.2 +_buildver=21581411 _pkgver=${pkgver}_${_buildver} -pkgrel=2 +pkgrel=1 pkgdesc='The industry standard for running multiple operating systems as virtual machines on a single Linux PC. Modified to use OpenRC.' arch=(x86_64) url='https://www.vmware.com/products/workstation-for-linux.html' @@ -77,7 +77,7 @@ source=( 'vmnet.patch' ) sha256sums=( - '95fd421b8705bf6e57b893f2a4570928d702129249bc49fc5cc34cf779defb65' + 'f4e361faebcbe1818d1b16e93d7d6658ef0fe2828f529c334ec28a0493711cc7' '67edc40e39686281f5101ced1a250648ae32e4cd5dffe4fd47bc3c7aed929d50' 'da1698bf4e73ae466c1c7fc93891eba4b9c4581856649635e6532275dbfea141' @@ -92,7 +92,7 @@ sha256sums=( '10562d11d50edab9abc2b29c8948714edcb9b084f99b3766d07ddd21259e372e' '273d4357599a3e54259c78cc49054fef8ecfd2c2eda35cbcde3a53a62777a5ac' '1060b5d45caeda5119b220fab4e1ece398af34d75131139a5dc6f74ee06672c3' - '7c3b6a7871b19e31fafdcc2631751dd9569196740d8e7c2026653d155c0c8da0' + '903e4792b559af4b021077f02f117342836cf870fc4b2e9d0aa6f73a026724ac' ) options=(!strip emptydirs) @@ -108,8 +108,8 @@ _isovirtualprinterimages=(Linux Windows) if [ -n "$_enable_macOS_guests" ]; then -_vmware_fusion_ver=13.0.1 -_vmware_fusion_buildver=21139760 +_vmware_fusion_ver=13.0.2 +_vmware_fusion_buildver=21581413 _vmware_fusion_ver_full=${_vmware_fusion_ver}_${_vmware_fusion_buildver} # List of VMware Fusion versions: https://softwareupdate.vmware.com/cds/vmw-desktop/fusion/ @@ -126,7 +126,7 @@ source+=( "efi-patches.txt" ) sha256sums+=( - 'e92ebc38fd5b1a693168f837a31932558a641c84fb57ad72f55e47c8ac4332df' + 'c86b40823b97334f20b4e6b475b488ec23faf06c986e291965b9e56f7b44c042' '8a61e03d0edbbf60c1c84a43aa87a6e950f82d2c71b968888f019345c2f684f3' '392c1effcdec516000e9f8ffc97f2586524d8953d3e7d6f2c5f93f2acd809d91' ) diff --git a/vmnet.patch b/vmnet.patch index 60fc5a12d86f..c70ba1f13296 100644 --- a/vmnet.patch +++ b/vmnet.patch @@ -12,3 +12,141 @@ # Header directory for the running kernel ifdef LINUXINCLUDE +From 650fb3abeb82f2b7d3a14f9579a7529d153636b7 Mon Sep 17 00:00:00 2001 +From: Michal Kubecek <mkubecek@suse.cz> +Date: Fri, 7 Oct 2022 12:56:44 +0200 +Subject: [PATCH] vmnet: work around field-spanning write warning (#195) + +While VMware 17.0.1 did work around the field-spanning write warning in +VNetEvent_Send() by wrapping struct VNet_EventHeader into a union, they +neglected to handle the same problem in VNetUserListenerEventHandler() so +that running 17.0.1 on kernel >= 6.1-rc1 still issues + + memcpy: detected field-spanning write (size 28) of single field "&t->event" + +only this time it happens on VM start rather than on module load. Apply the +same workaround as in 17.0.0 branch to avoid the warning. +--- + vmnet-only/vnet.h | 8 ++++++++ + vmnet-only/vnetEvent.c | 2 +- + vmnet-only/vnetUserListener.c | 2 +- + 3 files changed, 10 insertions(+), 2 deletions(-) + +diff --git a/vmnet-only/vnet.h b/vmnet-only/vnet.h +index d6691d5c..d5bb5572 100644 +--- a/vmnet-only/vnet.h ++++ b/vmnet-only/vnet.h +@@ -269,6 +269,7 @@ typedef struct VNet_EventHeader { + uint32 eventId; + uint32 classSet; + uint32 type; ++ char payload[]; + } VNet_EventHeader; + #pragma pack(pop) + +@@ -286,6 +287,13 @@ typedef struct VNet_LinkStateEvent { + } VNet_LinkStateEvent; + #pragma pack(pop) + ++static inline void VNet_Event_copy(VNet_EventHeader *dst, ++ const VNet_EventHeader *src) ++{ ++ *dst = *src; ++ memcpy(dst->payload, src->payload, src->size - sizeof(*src)); ++} ++ + /* + *---------------------------------------------------------------------------- + */ +diff --git a/vmnet-only/vnetEvent.c b/vmnet-only/vnetEvent.c +index f1579292..12036070 100644 +--- a/vmnet-only/vnetEvent.c ++++ b/vmnet-only/vnetEvent.c +@@ -401,7 +401,7 @@ VNetEvent_Send(VNetEvent_Sender *s, // IN: a sender + p->nextEvent = s->firstEvent; + s->firstEvent = p; + } +- memcpy(&p->event, e, e->size); ++ VNet_Event_copy(&p->event.header, e); + + /* send event */ + classSet = e->classSet; +diff --git a/vmnet-only/vnetUserListener.c b/vmnet-only/vnetUserListener.c +index 114f3907..e9f51755 100644 +--- a/vmnet-only/vnetUserListener.c ++++ b/vmnet-only/vnetUserListener.c +@@ -226,7 +226,7 @@ VNetUserListenerEventHandler(void *context, // IN: the user listener + return; + } + t->nextEvent = NULL; +- memcpy(&t->event, e, e->size); ++ VNet_Event_copy(&t->event, e); + + /* append event to event list */ + userListener = (VNetUserListener*)context; +From 0ca979d4bd06144204d720bb82f0a1e29024f9fa Mon Sep 17 00:00:00 2001 +From: Michal Kubecek <mkubecek@suse.cz> +Date: Wed, 18 Jan 2023 00:19:52 +0100 +Subject: [PATCH] vmnet: use explicit module_init() and module_exit() (#187) + +While vmmon module already uses explicit module_init() and module_exit() +for its init and cleanup function, vmnet relies on traditional magic names +init_module() and cleanup_module(). Apparently this has an unfortunate side +effect that the two functions are not identified as indirect call targets +by objdump and they get "sealed" when the module is built against and +loaded into an IBT enabled kernel. + +Starting with 6.3-rc1, objtool is going to warn about this issue, +indicating that the legacy module initialization is deprecated and +module_init() and module_exit() macros should be used instead so do that +for vmnet as well. +--- + vmnet-only/driver.c | 10 ++++++---- + 1 file changed, 6 insertions(+), 4 deletions(-) + +diff --git a/vmnet-only/driver.c b/vmnet-only/driver.c +index 197a213..b22cbfb 100644 +--- a/vmnet-only/driver.c ++++ b/vmnet-only/driver.c +@@ -279,7 +279,7 @@ VNetRemovePortFromList(const VNetPort *port) // IN: port to remove from list + /* + *---------------------------------------------------------------------- + * +- * init_module -- ++ * vmnet_init_module -- + * + * linux module entry point. Called by /sbin/insmod command. + * Initializes module and Registers this driver for a +@@ -296,7 +296,7 @@ VNetRemovePortFromList(const VNetPort *port) // IN: port to remove from list + */ + + int +-init_module(void) ++vmnet_init_module(void) + { + int retval; + +@@ -358,7 +358,7 @@ init_module(void) + /* + *---------------------------------------------------------------------- + * +- * cleanup_module -- ++ * vmnet_cleanup_module -- + * + * Called by /sbin/rmmod. Unregisters this driver for a + * vnet major #, and deinitializes the modules. The 64-bit +@@ -375,7 +375,7 @@ init_module(void) + */ + + void +-cleanup_module(void) ++vmnet_cleanup_module(void) + { + unregister_chrdev(VNET_MAJOR_NUMBER, "vmnet"); + VNetProtoUnregister(); +@@ -1670,3 +1670,5 @@ MODULE_LICENSE("GPL v2"); + * by default (i.e., neither mkinitrd nor modprobe will accept it). + */ + MODULE_INFO(supported, "external"); ++module_init(vmnet_init_module); ++module_exit(vmnet_cleanup_module); |