--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: linux: please add patch to support virtualbox on kernel 5.8
- From: Gianfranco Costamagna <locutusofborg@debian.org>
- Date: Mon, 24 Aug 2020 12:11:08 +0200
- Message-id: <0f557e7a-9b00-ff62-935a-61f0fbf4d71f@debian.org>
- References: <0f557e7a-9b00-ff62-935a-61f0fbf4d71f.ref@debian.org>
Source: linux
Version: 5.8.3-1~exp1
Severity: serious
tags: patch
Hello, as explained on upstream ticket [1], the new kernel broke virtualbox, and the only fix that has been found
so far is to export map_kernel_range and __get_vm_area_caller to modules
https://www.virtualbox.org/attachment/ticket/19644/local_patches
This trivial patch does the trick
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -325,6 +325,7 @@ int map_kernel_range(unsigned long start, unsigned long size, pgprot_t prot,
flush_cache_vmap(start, start + size);
return ret;
}
+EXPORT_SYMBOL(map_kernel_range);
int is_vmalloc_or_module_addr(const void *x)
{
@@ -2130,6 +2131,7 @@ struct vm_struct *__get_vm_area_caller(unsigned long size, unsigned long flags,
return __get_vm_area_node(size, 1, flags, start, end, NUMA_NO_NODE,
GFP_KERNEL, caller);
}
+EXPORT_SYMBOL(__get_vm_area_caller);
/**
* get_vm_area - reserve a contiguous kernel virtual area
[1] https://www.virtualbox.org/ticket/19644
thanks
Gianfranco
--- End Message ---
--- Begin Message ---
- To: 968940-done@bugs.debian.org
- Subject: Re: Bug#968940: linux: please add patch to support virtualbox on kernel 5.8
- From: Gianfranco Costamagna <locutusofborg@debian.org>
- Date: Mon, 7 Sep 2020 11:32:11 +0200
- Message-id: <56eaf4ba-4dc0-1f31-6da2-19d9506b7116@debian.org>
- In-reply-to: <20200824104251.jvtfvjdcnu7s6wxd@shell.thinkmo.de>
- References: <0f557e7a-9b00-ff62-935a-61f0fbf4d71f@debian.org> <20200824104251.jvtfvjdcnu7s6wxd@shell.thinkmo.de>
On Mon, 24 Aug 2020 12:42:51 +0200 Bastian Blank <waldi@debian.org> wrote:
> Control: severity -1 important
>
> On Mon, Aug 24, 2020 at 12:11:08PM +0200, Gianfranco Costamagna wrote:
> > Hello, as explained on upstream ticket [1], the new kernel broke virtualbox, and the only fix that has been found
> > so far is to export map_kernel_range and __get_vm_area_caller to modules
>
> Please talk to linux upstream.
>
> Bastian
>
> --
> "Get back to your stations!"
> "We're beaming down to the planet, sir."
> -- Kirk and Mr. Leslie, "This Side of Paradise",
> stardate 3417.3
>
>
fortunately the new virtualbox 6.1.14 fixes don't require such symbols anymore.
G.
--- End Message ---