[PATCH] [Groovy] UBUNTU: SAUCE: export __get_vm_area_caller() and map_kernel_range()

Colin Ian King colin.king at canonical.com
Fri Jul 31 15:58:41 UTC 2020


On 31/07/2020 10:55, Paolo Pisati wrote:
> As explained here:
> 
> https://www.virtualbox.org/ticket/19644
> 
> and in the recent virtualbox DKMS upload changelog:
> 
> https://metadata.ftp-master.debian.org/changelogs/contrib/v/virtualbox/virtualbox_6.1.12-dfsg-8_changelog
> 
> Virtualbox DKMS now requires access to these two kernel functions to fix a FTBFS
> against Linux 5.8, so until they rewrite their VM code (something that is not
> happening anytime soon, see comment 8 in the first link), export these two
> symbols.
> 
> Signed-off-by: Paolo Pisati <paolo.pisati at canonical.com>
> ---
>  mm/vmalloc.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/mm/vmalloc.c b/mm/vmalloc.c
> index 317afdc7d247..dffac67ba7f7 100644
> --- a/mm/vmalloc.c
> +++ b/mm/vmalloc.c
> @@ -326,6 +326,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
> 

I just spotted this:


    https://sources.debian.org/src/virtualbox/6.1.12-dfsg-8/debian/patches/

https://sources.debian.org/data/contrib/v/virtualbox/6.1.12-dfsg-8/debian/patches/kernel-5.8-1.patch

https://sources.debian.org/data/contrib/v/virtualbox/6.1.12-dfsg-8/debian/patches/kernel-5.8-2.patch

https://sources.debian.org/data/contrib/v/virtualbox/6.1.12-dfsg-8/debian/patches/kernel-5.8-3.patch

Maybe that is worth looking at.

Colin



More information about the kernel-team mailing list