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

Colin Ian King colin.king at canonical.com
Fri Jul 31 10:21:44 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
> 
Sigh, I guess that needs to be done. Thanks for cornering this Paolo.
Are you going to keep monitoring the upstream driver so we can rip these
out once they fix their code?

Acked-by: Colin Ian King <colin.king at canonical.com>



More information about the kernel-team mailing list