Files
vmware-host-modules/vmmon-only/linux
Michal Kubecek da01b69af7 vmmon: open code alloc_vm_area() for crosspage allocation
Mainline commit 301fa9f2ddf7 ("mm: remove alloc_vm_area") in v5.10-rc1
removed alloc_vm_are() function used to allow allocating crosspage as
executable after vmap() silently sets NX flag since kernel 5.8.

Similar to what upstream did in Xen code, use apply_to_page_range() to fix
the crosspage flags, except we don't need to use get_vm_area() which is not
exported. Thanks to virtualbox for the hint that current->mm can be used
instead of init_mm (which is not exported either).
2020-12-09 10:48:14 +01:00
..