Sisyphus repository
Last update: 27 september 2021 | SRPMs: 17343 | Visits: 21961205
en ru br
ALT Linux repos
S:6.1.26-alt1.330306.1
5.0: 3.0.4-alt0.M50.132635.16
4.1: 2.1.4-alt0.M41.132633.8.M41.5

Group :: System/Kernel and hardware
RPM: kernel-modules-virtualbox-std-def

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: vboxcommon-5.4.patch
Download


diff -ur kernel-source-virtualbox-5.2.34/kernel-source-vboxdrv-5.2.34/r0drv/linux/the-linux-kernel.h kernel-source-virtualbox-5.2.34.fixed/kernel-source-vboxdrv-5.2.34/r0drv/linux/the-linux-kernel.h
--- kernel-source-vboxdrv-5.2.34/r0drv/linux/the-linux-kernel.h	2019-10-21 19:05:14.000000000 +0000
+++ kernel-source-vboxdrv-5.2.34.new/r0drv/linux/the-linux-kernel.h	2019-12-12 01:08:42.695569567 +0000
@@ -327,6 +327,9 @@
 # if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0) /* The interface was removed, but we only need it for < 2.4.22, so who cares. */
 #  define MY_SET_PAGES_EXEC(pPages, cPages)     set_pages_x(pPages, cPages)
 #  define MY_SET_PAGES_NOEXEC(pPages, cPages)   set_pages_nx(pPages, cPages)
+# else
+#  define MY_SET_PAGES_EXEC(pPages, cPages)     do {} while (0)
+#  define MY_SET_PAGES_NOEXEC(pPages, cPages)   do {} while (0)
 # endif
 #else
 # define MY_SET_PAGES_EXEC(pPages, cPages) \
@@ -374,7 +378,7 @@
 {
 	/* use the set_pages_* API */
 	if (pgprot_val(prot) & _PAGE_NX)
-		set_pages_nx(page, numpages);
+		MY_SET_PAGES_NOEXEC(page, numpages);
 	set_pages_uc(page, numpages);
 	return 0;
 }
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin