diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:17:34 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:17:34 +0000 |
commit | 8784fb72e8eee3d983d30ac46e0ec3709d4f0ab0 (patch) | |
tree | 041e487e60a900d7d85f57307892acb586640822 /debian/patches/fix-kernel-build.patch | |
parent | Adding upstream version 7.0.14-dfsg. (diff) | |
download | virtualbox-8784fb72e8eee3d983d30ac46e0ec3709d4f0ab0.tar.xz virtualbox-8784fb72e8eee3d983d30ac46e0ec3709d4f0ab0.zip |
Adding debian version 7.0.14-dfsg-4.debian/7.0.14-dfsg-4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/fix-kernel-build.patch')
-rw-r--r-- | debian/patches/fix-kernel-build.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/debian/patches/fix-kernel-build.patch b/debian/patches/fix-kernel-build.patch new file mode 100644 index 00000000..5645d89a --- /dev/null +++ b/debian/patches/fix-kernel-build.patch @@ -0,0 +1,39 @@ +Origin: https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/2053024 +Author: Xu Zhen (xuzhen666) +Forwarded: irc +diff --git a/src/VBox/HostDrivers/Support/SUPDrvTracer.cpp b/src/VBox/HostDrivers/Support/SUPDrvTracer.cpp +index 7b25b5cec..5cc50bf15 100644 +--- a/src/VBox/HostDrivers/Support/SUPDrvTracer.cpp ++++ b/src/VBox/HostDrivers/Support/SUPDrvTracer.cpp +@@ -1476,6 +1476,8 @@ SUPR0DECL(int) SUPR0TracerDeregisterImpl(void *hMod, PSUPDRVSESSION pSession) + SUPR0_EXPORT_SYMBOL(SUPR0TracerDeregisterImpl); + + ++#include <asm/nospec-branch.h> ++#include <asm/linkage.h> + /* + * The probe function is a bit more fun since we need tail jump optimizating. + * +@@ -1495,11 +1497,13 @@ SUPR0TracerFireProbe: \n\ + # if defined(RT_ARCH_AMD64) + __asm__("\ + movq g_pfnSupdrvProbeFireKernel(%rip), %rax \n\ ++ " ANNOTATE_RETPOLINE_SAFE " \n\ + jmp *%rax \n\ + "); + # elif defined(RT_ARCH_X86) + __asm__("\ + movl g_pfnSupdrvProbeFireKernel, %eax \n\ ++ " ANNOTATE_RETPOLINE_SAFE " \n\ + jmp *%eax \n\ + "); + # else +@@ -1511,7 +1515,7 @@ __asm__("\ + .type supdrvTracerProbeFireStub,@function \n\ + .global supdrvTracerProbeFireStub \n\ + supdrvTracerProbeFireStub: \n\ +- ret \n\ ++ " ASM_RET " \n\ + .size supdrvTracerProbeFireStub, . - supdrvTracerProbeFireStub \n\ + \n\ + .previous \n\ |