commit b6d5efad5d1cc513ae45593fd1e246cbeed6920b
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Sat Aug 12 07:51:55 2023 +0100
Add fix for kernel-6.4.10
VirtualBox-kmod.spec | 7 ++++++-
kernel-6.4.10.patch | 11 +++++++++++
2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/VirtualBox-kmod.spec b/VirtualBox-kmod.spec
index 0e3a852..8fce7b6 100644
--- a/VirtualBox-kmod.spec
+++ b/VirtualBox-kmod.spec
@@ -40,7 +40,7 @@
Name: VirtualBox-kmod
Version: 7.0.10
-Release: 1%{?dist}
+Release: 2%{?dist}
#Release: 1%%{?prerel:.%%{prerel}}%%{?dist}
Summary: Kernel module for VirtualBox
@@ -49,6 +49,7 @@ URL:
http://www.virtualbox.org/wiki/VirtualBox
# This filters out the XEN kernel, since we don't run on XEN
Source1: excludekernel-filter.txt
Patch1: fix_7.0.6_locking_problems.patch
+Patch2: kernel-6.4.10.patch
%global AkmodsBuildRequires %{_bindir}/kmodtool VirtualBox-kmodsrc = %{version} xz time
elfutils-libelf-devel gcc
@@ -71,6 +72,7 @@ Kernel module for VirtualBox
tar --use-compress-program xz -xf
%{_datadir}/%{name}-%{version}/%{name}-%{version}.tar.xz
pushd %{name}-%{version}
%patch -P 1 -p1
+%patch -P 2 -p1
popd
# error out if there was something wrong with kmodtool
@@ -133,6 +135,9 @@ DIRS=$(ls %{name}-%{version} |wc -l)
[ $MODS = $DIRS ] || [ $MODS = 0 ]
%changelog
+* Sat Aug 12 2023 Sérgio Basto <sergio(a)serjux.com> - 7.0.10-2
+- Add fix for kernel-6.4.10
+
* Wed Jul 19 2023 Sérgio Basto <sergio(a)serjux.com> - 7.0.10-1
- Update to 7.0.10
diff --git a/kernel-6.4.10.patch b/kernel-6.4.10.patch
new file mode 100644
index 0000000..6d3bf89
--- /dev/null
+++ b/kernel-6.4.10.patch
@@ -0,0 +1,11 @@
+--- VirtualBox-kmod-7.0.10/vboxnetflt/linux/VBoxNetFlt-linux.c.orig 2023-08-12
07:45:07.098973472 +0100
++++ VirtualBox-kmod-7.0.10/vboxnetflt/linux/VBoxNetFlt-linux.c 2023-08-12
07:46:27.453791783 +0100
+@@ -47,7 +47,7 @@
+ #if RTLNX_VER_MIN(2,6,24)
+ # include <linux/nsproxy.h>
+ #endif
+-#if RTLNX_VER_MIN(6,5,0)
++#if RTLNX_VER_MIN(6,4,10)
+ # include <net/gso.h>
+ #endif
+ #include <linux/netdevice.h>